[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025032700-CVE-2022-49752-19a3@gregkh>
Date: Thu, 27 Mar 2025 17:43:10 +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-49752: device property: fix of node refcount leak in fwnode_graph_get_next_endpoint()
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
device property: fix of node refcount leak in fwnode_graph_get_next_endpoint()
The 'parent' returned by fwnode_graph_get_port_parent()
with refcount incremented when 'prev' is not NULL, it
needs be put when finish using it.
Because the parent is const, introduce a new variable to
store the returned fwnode, then put it before returning
from fwnode_graph_get_next_endpoint().
The Linux kernel CVE team has assigned CVE-2022-49752 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.15 with commit b5b41ab6b0c1bb70fe37a0d193006c969e3b5909 and fixed in 5.15.91 with commit 7701a4bd45c11f9a289d8f262fad05705a012339
Issue introduced in 5.15 with commit b5b41ab6b0c1bb70fe37a0d193006c969e3b5909 and fixed in 6.1.9 with commit e75485fc589ec729cc182aa9b41dfb6c15ae6f6e
Issue introduced in 5.15 with commit b5b41ab6b0c1bb70fe37a0d193006c969e3b5909 and fixed in 6.2 with commit 39af728649b05e88a2b40e714feeee6451c3f18e
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-49752
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/base/property.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/7701a4bd45c11f9a289d8f262fad05705a012339
https://git.kernel.org/stable/c/e75485fc589ec729cc182aa9b41dfb6c15ae6f6e
https://git.kernel.org/stable/c/39af728649b05e88a2b40e714feeee6451c3f18e
Powered by blists - more mailing lists