CVE-2025-38275 phy: qcom-qmp-usb: Fix an NULL vs IS_ERR() bug
A NULL pointer dereference in the Qualcomm QMP USB PHY driver can cause a kernel crash, requiring a patch to fix error handling.
- 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-2025-38275?
CVE-2025-38275 is a medium-severity vulnerability in Debian Debian Linux, published on 10 Jul 2025. 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 an NULL vs IS_ERR() bug
The qmp_usb_iomap() helper function currently returns the raw result of devm_ioremap() for non-exclusive mappings. Since devm_ioremap() may return a NULL pointer and the caller only checks error pointers with IS_ERR(), NULL could bypass the check and lead to an invalid dereference.
Fix the issue by checking if devm_ioremap() returns NULL. When it does, qmp_usb_iomap() now returns an error pointer via IOMEM_ERR_PTR(-ENOMEM), ensuring safe and consistent error handling.
Weakness: CWE-476
Which versions are affected by CVE-2025-38275?
It affects 2 products.
Products include Debian Debian Linux, Linux kernel.
How do I fix CVE-2025-38275?
Apply the vendor's patch.
Is CVE-2025-38275 being exploited?
There is no known exploitation of CVE-2025-38275 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as AZL-64989, BELL-CVE-2025-38275, DEBIAN-CVE-2025-38275, GHSA-c5h2-x786-2cv9, ROOT-OS-UBUNTU-2204-CVE-2025-38275, ROOT-OS-UBUNTU-2404-CVE-2025-38275 and 1 more.