CVE-2024-53204: phy: realtek: usb: fix NULL deref in rtk_usb3phy_probe
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
phy: realtek: usb: fix NULL deref in rtk_usb3phy_probe
In rtk_usb3phy_probe() devm_kzalloc() may return NULL but this returned value is not checked.
The Linux kernel CVE team has assigned CVE-2024-53204 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.6 with commit adda6e82a7de7d6d478f6c8ef127f0ac51c510a1 and fixed in 6.11.11 with commit 48d52d3168749e10c1c37cd4ceccd18625851741 Issue introduced in 6.6 with commit adda6e82a7de7d6d478f6c8ef127f0ac51c510a1 and fixed in 6.12.2 with commit 776f13ad1f88485206f1dca5ef138553106950e5 Issue introduced in 6.6 with commit adda6e82a7de7d6d478f6c8ef127f0ac51c510a1 and fixed in 6.13-rc1 with commit bf373d2919d98f3d1fe1b19a0304f72fe74386d9
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-2024-53204
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/realtek/phy-rtk-usb3.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/48d52d3168749e10c1c37cd4ceccd18625851741 https://git.kernel.org/stable/c/776f13ad1f88485206f1dca5ef138553106950e5 https://git.kernel.org/stable/c/bf373d2919d98f3d1fe1b19a0304f72fe74386d9