CVE-2025-38275
phy: qcom-qmp-usb: Fix an NULL vs IS_ERR() bug
Check your servers for CVE-2025-38275
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-38275 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.2% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from a5d6b1ac56cbd6b5850a3a54e35f1cb71e8e8cdd, before 0b979a409e40457ca1b5cb48755d1f34eee58805 affected from a5d6b1ac56cbd6b5850a3a54e35f1cb71e8e8cdd, before 127dfb4f1c5a2b622039c5d203f321380ea36665 affected from a5d6b1ac56cbd6b5850a3a54e35f1cb71e8e8cdd, before 5072c1749197fc28b27d7efc0d80320d7cac9572 affected from a5d6b1ac56cbd6b5850a3a54e35f1cb71e8e8cdd, before 0c33117f00c8c5363c22676931b22ae5041f7603 affected from a5d6b1ac56cbd6b5850a3a54e35f1cb71e8e8cdd, before d14402a38c2d868cacb1facaf9be908ca6558e59 affected 368ea32e0ad0335bdf3180067875a928e35387c6 affected from 5.15.93, before 5.16
Other versions: unaffected
|
| Linux |
affected 6.1 unaffected before 6.1 unaffected from 6.1.142 up to and including 6.1.* unaffected from 6.6.94 up to and including 6.6.* unaffected from 6.12.34 up to and including 6.12.* unaffected from 6.15.3 up to and including 6.15.* unaffected 6.16 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-38275 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38275
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-38275
trivy image --scanners vuln IMAGE | grep CVE-2025-38275
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/0b979a409e40457ca1b5cb48755d1f34eee58805 git.kernel.org
- https://git.kernel.org/stable/c/127dfb4f1c5a2b622039c5d203f321380ea36665 git.kernel.org
- https://git.kernel.org/stable/c/5072c1749197fc28b27d7efc0d80320d7cac9572 git.kernel.org
- https://git.kernel.org/stable/c/0c33117f00c8c5363c22676931b22ae5041f7603 git.kernel.org
- https://git.kernel.org/stable/c/d14402a38c2d868cacb1facaf9be908ca6558e59 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html lists.debian.org
Source: the record CVE-2025-38275 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse