CVE-2025-21783 json
gpiolib: Fix crash on error in gpiochip_get_ngpios()
published 2025-02-27 20 mo ago modified 2026-06-17 4 mo ago also EUVD-2025-5146
- cvss
- 5.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 12%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Linux Linux 6.6.79, 6.12.16, 6.13.4, 6.14
- linux Debian 14, Debian 13 6.12.16-1
debian advisories DEBIAN-CVE-2025-21783
- linux Ubuntu 24.04 LTS 6.8.0-78.78
- linux-aws Ubuntu 24.04 LTS 6.8.0-1035.37
- linux-gcp Ubuntu 24.04 LTS 6.8.0-1036.38
- linux-gke Ubuntu 24.04 LTS 6.8.0-1032.36
- linux-ibm Ubuntu 24.04 LTS 6.8.0-1033.33
- linux-azure Ubuntu 24.04 LTS 6.8.0-1034.39
- linux-gkeop Ubuntu 24.04 LTS 6.8.0-1019.21
- linux-raspi Ubuntu 24.04 LTS 6.8.0-1035.39
ubuntu advisories UBUNTU-CVE-2025-21783
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-21783 updated cvss 5.5
kernel: gpiolib: Fix crash on error in gpiochip_get_ngpios()
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 moreaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat Enterprise Linux 10 kernelaffected: no fix available “Fix deferred”
-
Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 13 mo ago
Exploit prediction
0.22% chance of exploitation in the next 30 days, higher than 12% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| CNA | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-476 NULL Pointer Dereference
- Technology feeds
References
-
git.kernel.org
/stable/c/4d9b2b62e1136d10f661ec4c0c268140b6f74f4f
mailing-list, patch
-
git.kernel.org
/stable/c/a7052afa9eae2239e25943baa8817a6a56e8aa68
mailing-list, patch
-
git.kernel.org
/stable/c/189fb76215e479c10731baabb50f1a352d2078f5
mailing-list, patch
-
git.kernel.org
/stable/c/7b4aebeecbbd5b5fe73e35fad3f62ed21aa7ef44
mailing-list, patch
Sources
- CVE List CVE-2025-21783
- NVD CVE-2025-21783
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.