Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3BA4B284B35 for ; Wed, 18 Jun 2025 11:15:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750245335; cv=none; b=NSyDortbRckhKVR2GcSfAfKPrthXNQmfRoATrqaDfZ+2QWxXQdD1VZBY2dnnlP/TWuK83da2i3WjCIXgOQXkkH0P4d+ckh6okKq8F+dV6ysQfnxY7rJ0MRoA2Y3E3TICHZrXn/ir/tO213SIbnXlaMTEFwJN/SYvKqzpcT/hwHo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750245335; c=relaxed/simple; bh=9J2P08/SD3e/s8ncp5uelUX57HqbBIbJnpCJAPti9XI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QDMUvNmrpWeQ6a97p4jVaS0ZPYq709xwPD6F4F9cZSHr5PMngAdCD112JaQDRALQAVzM8TKxwaT9uqm9qFpTwzblQhB4kvt3xolAuNqaFl0n8oPa4BQYH2YDBb7Yc6rh4Z3iz+EAY6oGRDT+Znc+qF2k+K/dMeehZt/LxJ3qSmQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0Oetet1G; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="0Oetet1G" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6D1B8C4CEE7; Wed, 18 Jun 2025 11:15:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750245334; bh=9J2P08/SD3e/s8ncp5uelUX57HqbBIbJnpCJAPti9XI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=0Oetet1GsMuw/Rq1OMSwpx86tWvyi1Pc7mlwsRfloGV84iZyCKQ4nz0qdamoLpH9p JzFHV1xMqBx9C60H4E4yGe1QkyAUmJ9n87VBLO7+DIT5fTzMJlU+LXLtmmrFHE6tBG pfvVGDngEozgimYZJna60w9uy0RAPCK56/zfFUrg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50199: ARM: OMAP2+: Fix refcount leak in omapdss_init_of Date: Wed, 18 Jun 2025 13:04:24 +0200 Message-ID: <2025061839-CVE-2022-50199-582d@gregkh> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2943; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=w1jdK68gc4fplLntFrFY49gELNcP3osDlHIZYCE2gpo=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBcybPfj4/9JnSMubDLxe3rj2056FuAKtJpvjUNWl9P R8zK1qMOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiyRIMs1lW88zZflQ55zzP Erbek3o/+TxsHjPMs3rsPV1fKtXphsS73RN33qwWiig9BgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: ARM: OMAP2+: Fix refcount leak in omapdss_init_of omapdss_find_dss_of_node() calls of_find_compatible_node() to get device node. of_find_compatible_node() returns a node pointer with refcount incremented, we should use of_node_put() on it when done. Add missing of_node_put() in later error path and normal path. The Linux kernel CVE team has assigned CVE-2022-50199 to this issue. Affected and fixed versions =========================== Issue introduced in 4.20 with commit e0c827aca0730b51f38081aa4e8ecf0912aab55f and fixed in 5.4.211 with commit 935035cf97c8cd6794044b500fb0a44a6d30ffa1 Issue introduced in 4.20 with commit e0c827aca0730b51f38081aa4e8ecf0912aab55f and fixed in 5.10.137 with commit 14bac0c7035bf920e190a63c7e1b113c72eadbf4 Issue introduced in 4.20 with commit e0c827aca0730b51f38081aa4e8ecf0912aab55f and fixed in 5.15.61 with commit 230ad40a59c9a9ee8f3822b9a7bec09404102ebc Issue introduced in 4.20 with commit e0c827aca0730b51f38081aa4e8ecf0912aab55f and fixed in 5.18.18 with commit a32dc6829e33c54e751346aa3e08ddb6d0e1a6a0 Issue introduced in 4.20 with commit e0c827aca0730b51f38081aa4e8ecf0912aab55f and fixed in 5.19.2 with commit 507159facf002d113c4878fec67f37d62f187887 Issue introduced in 4.20 with commit e0c827aca0730b51f38081aa4e8ecf0912aab55f and fixed in 6.0 with commit 9705db1eff38d6b9114121f9e253746199b759c9 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2022-50199 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: arch/arm/mach-omap2/display.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/935035cf97c8cd6794044b500fb0a44a6d30ffa1 https://git.kernel.org/stable/c/14bac0c7035bf920e190a63c7e1b113c72eadbf4 https://git.kernel.org/stable/c/230ad40a59c9a9ee8f3822b9a7bec09404102ebc https://git.kernel.org/stable/c/a32dc6829e33c54e751346aa3e08ddb6d0e1a6a0 https://git.kernel.org/stable/c/507159facf002d113c4878fec67f37d62f187887 https://git.kernel.org/stable/c/9705db1eff38d6b9114121f9e253746199b759c9