CVE-2024-50238 phy: qcom: qmp-usbc: fix NULL-deref on runtime suspend

Medium 5.5 Published Updated

A NULL pointer dereference in the Qualcomm QMP USBC PHY driver causes a kernel crash during runtime suspend, requiring manual 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-50238?

CVE-2024-50238 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-usbc: 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 from the qcom-qmp-usb driver, but mistakenly also removed the initialisation despite the data still being used in the runtime PM callbacks. This bug was later reproduced when the driver was copied to create the qmp-usbc driver.

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 these drivers.

Weakness: CWE-476

Which versions are affected by CVE-2024-50238?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-50238?

Apply the vendor's patch.

Is CVE-2024-50238 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-50238, DEBIAN-CVE-2024-50238, GHSA-9fm4-j993-vwrj, UBUNTU-CVE-2024-50238.

Is CVE-2024-50238 in your software?

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

Check your SBOMs for free