CVE-2025-38516

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-38516
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38516.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-38516
Downstream
Related
Published
2025-08-16T10:55:03.161Z
Modified
2025-11-27T19:35:47.280728Z
Summary
pinctrl: qcom: msm: mark certain pins as invalid for interrupts
Details

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 intrdetectionwidth setting is not 1 or 2 for interrupts. This hits a BUG() in msmgpioirqsettype(). 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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/blob/ee626f5d79d5817bb21d6f048dc0da4c4e383443/cves/2025/38xxx/CVE-2025-38516.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f365be0925729508fd8e62f8bdb504ef896cb6e0
Fixed
6a89563ccf9cd0d745e2291302878a061508573f
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f365be0925729508fd8e62f8bdb504ef896cb6e0
Fixed
3f8fc02c2582c1dfad1785e9c7bc8b4e1521af0a
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f365be0925729508fd8e62f8bdb504ef896cb6e0
Fixed
cb4b08a095b1fa4b3fca782757517e4e9a917d8e
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f365be0925729508fd8e62f8bdb504ef896cb6e0
Fixed
cc145e02d6b8494c48f91958d52fa76b7e577f7b
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f365be0925729508fd8e62f8bdb504ef896cb6e0
Fixed
1d57f7132662e96aace3b8a000616efde289aae1
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f365be0925729508fd8e62f8bdb504ef896cb6e0
Fixed
275605a8b48002fe98675a5c06f3e39c09067ff2
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f365be0925729508fd8e62f8bdb504ef896cb6e0
Fixed
97c9c7daeeb00c6e1d5e84084041f79c2d2dce22
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
f365be0925729508fd8e62f8bdb504ef896cb6e0
Fixed
93712205ce2f1fb047739494c0399a26ea4f0890

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.14.0
Fixed
5.4.296
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.240
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.189
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.146
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.99
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.39
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.15.7