CVE-2024-46674: usb: dwc3: st: fix probed platform device ref count on probe error path
In the Linux kernel, the following vulnerability has been resolved:
usb: dwc3: st: fix probed platform device ref count on probe error path
The probe function never performs any paltform device allocation, thus error path "undoplatformdevalloc" is entirely bogus. It drops the reference count from the platform device being probed. If error path is triggered, this will lead to unbalanced device reference counts and premature release of device resources, thus possible use-after-free when releasing remaining devm-managed resources.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.1.176-1Fixed in 6.1.190-1Fixed in 6.12.107-1Fixed in 6.12.113-1Fixed in 7.2.12-1Fixed in 7.2.13-1
Event History
Frequently Asked Questions
What is the severity of CVE-2024-46674?
CVE-2024-46674 has been acknowledged as a medium severity vulnerability in the Linux kernel.
How do I fix CVE-2024-46674?
To fix CVE-2024-46674, update your Linux kernel to the latest version that includes the patch provided for this vulnerability.
Which Linux kernel versions are affected by CVE-2024-46674?
CVE-2024-46674 affects Linux kernel versions between 3.18 and 6.11-rc5.
What type of vulnerability is CVE-2024-46674?
CVE-2024-46674 is a reference counting issue in the platform device probe process within the Linux kernel.
Is there any known exploit for CVE-2024-46674?
As of now, there are no known public exploits specifically targeting CVE-2024-46674.