CVE-2024-50240: phy: qcom: qmp-usb: fix NULL-deref on runtime suspend
In the Linux kernel, the following vulnerability has been resolved:
phy: qcom: qmp-usb: fix NULL-deref on runtime suspend
Commit 413db06c05e7 ("phy: qcom-qmp-usb: clean up probe initialisation") removed most users of the platform device driver data, but mistakenly also removed the initialisation despite the data still being used in the runtime PM callbacks.
Restore the driver data initialisation at probe to avoid a NULL-pointer dereference on runtime suspend.
Apparently no one uses runtime PM, which currently needs to be enabled manually through sysfs, with this driver.
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-50240?
CVE-2024-50240 is categorized as a medium-severity vulnerability in the Linux kernel.
How do I fix CVE-2024-50240?
To fix CVE-2024-50240, update to the patched versions of the Linux kernel, such as 6.12.12-1, 6.12.15-1, or later.
Which versions of the Linux kernel are affected by CVE-2024-50240?
CVE-2024-50240 affects Linux kernel versions between 6.2 to 6.6.60, 6.7 to 6.11.7, and specific release candidates 6.12-rc1 through 6.12-rc5.
What type of vulnerability is CVE-2024-50240?
CVE-2024-50240 is a NULL dereference vulnerability that can occur during runtime suspend in the Linux kernel.
Is there a workaround for CVE-2024-50240?
There are no specific workarounds for CVE-2024-50240; the recommended resolution is to update the kernel to a secure version.