[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025022625-CVE-2022-49676-d16b@gregkh>
Date: Wed, 26 Feb 2025 03:23:59 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Subject: CVE-2022-49676: memory: samsung: exynos5422-dmc: Fix refcount leak in of_get_dram_timings
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
memory: samsung: exynos5422-dmc: Fix refcount leak in of_get_dram_timings
of_parse_phandle() returns a node pointer with refcount
incremented, we should use of_node_put() on it when not need anymore.
This function doesn't call of_node_put() in some error paths.
To unify the structure, Add put_node label and goto it on errors.
The Linux kernel CVE team has assigned CVE-2022-49676 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.5 with commit 6e7674c3c6df565ab47d02b4f2e608e3477cdf86 and fixed in 5.10.127 with commit 889aad2203e09eed2071ca8985c25e9d6aea5735
Issue introduced in 5.5 with commit 6e7674c3c6df565ab47d02b4f2e608e3477cdf86 and fixed in 5.15.51 with commit cde4480b5ab06195b9164184b0c02ced71e601b4
Issue introduced in 5.5 with commit 6e7674c3c6df565ab47d02b4f2e608e3477cdf86 and fixed in 5.18.8 with commit bb2a481778c60f912c363e271ae46b55ff8132db
Issue introduced in 5.5 with commit 6e7674c3c6df565ab47d02b4f2e608e3477cdf86 and fixed in 5.19 with commit 1332661e09304b7b8e84e5edc11811ba08d12abe
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-49676
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:
drivers/memory/samsung/exynos5422-dmc.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/889aad2203e09eed2071ca8985c25e9d6aea5735
https://git.kernel.org/stable/c/cde4480b5ab06195b9164184b0c02ced71e601b4
https://git.kernel.org/stable/c/bb2a481778c60f912c363e271ae46b55ff8132db
https://git.kernel.org/stable/c/1332661e09304b7b8e84e5edc11811ba08d12abe
Powered by blists - more mailing lists