CVE-2022-50539: ARM: OMAP2+: omap4-common: Fix refcount leak bug
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ARM: OMAP2+: omap4-common: Fix refcount leak bug
In omap4_sram_init(), of_find_compatible_node() will return a node pointer with refcount incremented. We should use of_node_put() when it is not used anymore.
The Linux kernel CVE team has assigned CVE-2022-50539 to this issue.
Affected and fixed versions
===========================
Fixed in 6.1.16 with commit 1d9452ae3bdb830f9309cf10a2f65977999cb14e Fixed in 6.2.3 with commit 049875b76660bbdc4873a915afb294f954eb7320 Fixed in 6.3 with commit 7c32919a378782c95c72bc028b5c30dfe8c11f82
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-50539
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/omap4-common.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/1d9452ae3bdb830f9309cf10a2f65977999cb14e https://git.kernel.org/stable/c/049875b76660bbdc4873a915afb294f954eb7320 https://git.kernel.org/stable/c/7c32919a378782c95c72bc028b5c30dfe8c11f82