pinctrl: qcom: msm: mark certain pins as invalid for interrupts (Linux Linux)

CVE-2025-38516
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.17 % · percentile 6 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

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.

Weaknesses (CWE)

  • CWE-476 — NULL Pointer Dereference

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected f365be0925729508fd8e62f8bdb504ef896cb6e0 < 6a89563ccf9cd0d745e2291302878a061508573f ; affected f365be0925729508fd8e62f8bdb504ef896cb6e0 < 3f8fc02c2582c1dfad1785e9c7bc8b4e1521af0a ; affected f365be0925729508fd8e62f8bdb504ef896cb6e0 < cb4b08a095b1fa4b3fca782757517e4e9a917d8e ; affected f365be0925729508fd8e62f8bdb504ef896cb6e0 < cc145e02d6b8494c48f91958d52fa76b7e577f7b ; affected f365be0925729508fd8e62f8bdb504ef896cb6e0 < 1d57f7132662e96aace3b8a000616efde289aae1 ; affected f365be0925729508fd8e62f8bdb504ef896cb6e0 < 275605a8b48002fe98675a5c06f3e39c09067ff2
Linux · Linuxaffected 3.14 ; unaffected 0 < 3.14 ; unaffected 5.4.296 ≤ 5.4.* ; unaffected 5.10.240 ≤ 5.10.* ; unaffected 5.15.189 ≤ 5.15.* ; unaffected 6.1.146 ≤ 6.1.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD