CVE-2025-38516

pinctrl: qcom: msm: mark certain pins as invalid for interrupts

State
Published
Severity
Not scored
Published
Aug 16, 2025
Updated
May 11, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

Description

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

pinctrl: qcom: msm: mark certain pins as invalid for interrupts

On some platforms, the UFS-reset pin has no interrupt logic in TLMM but is nevertheless registered as a GPIO in the kernel. This enables the user-space to trigger a BUG() in the pinctrl-msm driver by running, for example: `gpiomon -c 0 113` on RB2.

The exact culprit is requesting pins whose intr_detection_width setting is not 1 or 2 for interrupts. This hits a BUG() in msm_gpio_irq_set_type(). Potentially crashing the kernel due to an invalid request from user-space is not optimal, so let's go through the pins and mark those that would fail the check as invalid for the irq chip as we should not even register them as available irqs.

This function can be extended if we determine that there are more corner-cases like this.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • f365be0925729508fd8e62f8bdb504ef896cb6e0 to before 6a89563ccf9cd0d745e2291302878a061508573fAffected
  • f365be0925729508fd8e62f8bdb504ef896cb6e0 to before 3f8fc02c2582c1dfad1785e9c7bc8b4e1521af0aAffected
  • f365be0925729508fd8e62f8bdb504ef896cb6e0 to before cb4b08a095b1fa4b3fca782757517e4e9a917d8eAffected
  • f365be0925729508fd8e62f8bdb504ef896cb6e0 to before cc145e02d6b8494c48f91958d52fa76b7e577f7bAffected
  • f365be0925729508fd8e62f8bdb504ef896cb6e0 to before 1d57f7132662e96aace3b8a000616efde289aae1Affected
  • f365be0925729508fd8e62f8bdb504ef896cb6e0 to before 275605a8b48002fe98675a5c06f3e39c09067ff2Affected
  • f365be0925729508fd8e62f8bdb504ef896cb6e0 to before 97c9c7daeeb00c6e1d5e84084041f79c2d2dce22Affected
  • f365be0925729508fd8e62f8bdb504ef896cb6e0 to before 93712205ce2f1fb047739494c0399a26ea4f0890Affected
LinuxLinux
  • 3.14Affected
  • before 3.14Not affected
  • 5.4.296 through 5.4.*Not affected
  • 5.10.240 through 5.10.*Not affected
  • 5.15.189 through 5.15.*Not affected
  • 6.1.146 through 6.1.*Not affected
  • 6.6.99 through 6.6.*Not affected
  • 6.12.39 through 6.12.*Not affected
  • 6.15.7 through 6.15.*Not affected
  • 6.16 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.