CVE-2024-50240 phy: qcom: qmp-usb: fix NULL-deref on runtime suspend

Medium 5.5 Published Updated

A NULL pointer dereference in the Qualcomm QMP USB PHY driver causes a kernel crash during runtime suspend, requiring manual sysfs configuration to trigger.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-50240?

CVE-2024-50240 is a medium-severity vulnerability in Linux kernel, published on 9 Nov 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Weakness: CWE-476

Which versions are affected by CVE-2024-50240?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-50240?

Apply the vendor's patch.

Is CVE-2024-50240 being exploited?

There is no known exploitation of CVE-2024-50240 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as AZL-53166, BELL-CVE-2024-50240, DEBIAN-CVE-2024-50240, GHSA-2fwq-2wwr-qrww, UBUNTU-CVE-2024-50240.

Is CVE-2024-50240 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free