[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025032701-CVE-2022-49756-7fd9@gregkh>
Date: Thu, 27 Mar 2025 17:43:14 +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-49756: phy: usb: sunplus: Fix potential null-ptr-deref in sp_usb_phy_probe()
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
phy: usb: sunplus: Fix potential null-ptr-deref in sp_usb_phy_probe()
sp_usb_phy_probe() will call platform_get_resource_byname() that may fail
and return NULL. devm_ioremap() will use usbphy->moon4_res_mem->start as
input, which may causes null-ptr-deref. Check the ret value of
platform_get_resource_byname() to avoid the null-ptr-deref.
The Linux kernel CVE team has assigned CVE-2022-49756 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.1 with commit 99d9ccd97385208b78b3d88e756451f4b70119fc and fixed in 6.1.9 with commit d838b5c99bcecd593b4710a93fce8fdbf122395b
Issue introduced in 6.1 with commit 99d9ccd97385208b78b3d88e756451f4b70119fc and fixed in 6.2 with commit 17eee264ef386ef30a69dd70e36f29893b85c170
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-49756
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/phy/sunplus/phy-sunplus-usb2.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/d838b5c99bcecd593b4710a93fce8fdbf122395b
https://git.kernel.org/stable/c/17eee264ef386ef30a69dd70e36f29893b85c170
Powered by blists - more mailing lists