CVE-2025-38275: phy: qcom-qmp-usb: Fix an NULL vs IS_ERR() bug

Published Jul 10, 2025
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

phy: qcom-qmp-usb: Fix an NULL vs ISERR() bug

The qmpusbiomap() helper function currently returns the raw result of devmioremap() for non-exclusive mappings. Since devmioremap() may return a NULL pointer and the caller only checks error pointers with ISERR(), NULL could bypass the check and lead to an invalid dereference.

Fix the issue by checking if devmioremap() returns NULL. When it does, qmpusbiomap() now returns an error pointer via IOMEMERRPTR(-ENOMEM), ensuring safe and consistent error handling.

Affected Software

8 affected componentsFixes available
Linux Linux kernel>=5.15.93<5.16
Linux Linux kernel>=6.1<6.1.142
Linux Linux kernel>=6.2<6.6.94
Linux Linux kernel>=6.7<6.12.34
Linux Linux kernel>=6.13<6.15.3
Debian Debian Linux=11.0
Microsoft azl3 kernel 6.6.92.2-2
Microsoft cbl2 kernel 5.15.186.1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Linux kernel (phy: qcom-qmp-usb) to a version that resolves this vulnerability.

    Patch phy: qcom-qmp-usb: Fix an NULL vs IS_ERR() bug
  2. Configuration

    Update qmp_usb_iomap() to check devm_ioremap() for NULL and return an error pointer using IOMEM_ERR_PTR(-ENOMEM), so callers that use IS_ERR() handle failures safely and consistently.

    phy: qcom-qmp-usb (qmp_usb_iomap helper) Return value when devm_ioremap() returns NULL = IOMEM_ERR_PTR(-ENOMEM)

Event History

Jul 10, 2025
CVE Published
via MITRE·07:41 AM
Data Sourced
via MITRE·07:41 AM
Description
Data Sourced
via Red Hat·08:03 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·08:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Aug 7, 2025
Data Sourced
via Microsoft·12:00 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity
Updated
via Microsoft·07:00 AM
SeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-38275?

CVE-2025-38275 has been classified as a high severity vulnerability in the Linux kernel.

2

How do I fix CVE-2025-38275?

To fix CVE-2025-38275, update to the latest version of the Linux kernel that addresses this vulnerability.

3

Which versions of the Linux kernel are affected by CVE-2025-38275?

CVE-2025-38275 affects Linux kernel versions from 5.15.93 to 5.16, 6.1 to 6.1.142, 6.2 to 6.6.94, 6.7 to 6.12.34, and 6.13 to 6.15.3.

4

What is the nature of the vulnerability in CVE-2025-38275?

CVE-2025-38275 involves a NULL pointer dereference due to a bug in the qmp_usb_iomap() helper function.

5

Is there a workaround for CVE-2025-38275?

Currently, the recommended solution for CVE-2025-38275 is to apply the kernel update instead of a workaround.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203