CVE-2025-21783gpiolib: Fix crash on error in gpiochip_get_ngpios()
- 5.5MediumCVSS base score
- 0.22%Exploitation in 30 daysEPSS · top 87% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
In the Linux kernel, the following vulnerability has been resolved: gpiolib: Fix crash on error in gpiochip_get_ngpios() The gpiochip_get_ngpios() uses chip_*() macros to print messages. However these macros rely on gpiodev to be initialised and set, which is not the case when called via bgpio_init(). In such a case the printing messages will crash on NULL pointer dereference. Replace chip_*() macros by the respective dev_*() ones to avoid such crash.
Timeline
ID reserved
By Linux
- 2 months later
· 2 months later
Published
- 15 months later
· 15 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| CISA-ADPADP (enrichment) | 3.1 | Medium5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVDNVD · Modified | 3.1 | Medium5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 0.22% · top 87% of all CVEs (12 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.5.
Affected products
- affected 55b2395e4e92adc492c6b30ac109eb78250dcd9d – < 4d9b2b62e1136d10f661ec4c0c268140b6f74f4f
- affected 55b2395e4e92adc492c6b30ac109eb78250dcd9d – < a7052afa9eae2239e25943baa8817a6a56e8aa68
- affected 55b2395e4e92adc492c6b30ac109eb78250dcd9d – < 189fb76215e479c10731baabb50f1a352d2078f5
- affected 55b2395e4e92adc492c6b30ac109eb78250dcd9d – < 7b4aebeecbbd5b5fe73e35fad3f62ed21aa7ef44
- affected 6.6
- unaffected < 6.6
- unaffected 6.6.79 – ≤ 6.6.*
- unaffected 6.12.16 – ≤ 6.12.*
- unaffected 6.13.4 – ≤ 6.13.*
- unaffected 6.14 – ≤ *
References
References4
- https://git.kernel.org/stable/c/4d9b2b62e1136d10f661ec4c0c268140b6f74f4f (opens in a new tab)
- https://git.kernel.org/stable/c/a7052afa9eae2239e25943baa8817a6a56e8aa68 (opens in a new tab)
- https://git.kernel.org/stable/c/189fb76215e479c10731baabb50f1a352d2078f5 (opens in a new tab)
- https://git.kernel.org/stable/c/7b4aebeecbbd5b5fe73e35fad3f62ed21aa7ef44 (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2025-5146 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2025-21783)Record last updated .