NULL pointer dereference in Linux
CVE-2025-21783
- CVSS v3
- 5.5 Medium
- Public exploits
- None known
- EPSS
- 0.002 · 12.7th percentile
- Published
- 2025-02-27
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
- Attack Vector
- Local
AV:L - Attack Complexity
- Low
AC:L - Privileges Required
- Low
PR:L - User Interaction
- None
UI:N - Scope
- Unchanged
S:U - Confidentiality
- None
C:N - Integrity
- None
I:N - Availability
- High
A:H
EPSS exploit prediction
EPSS 0.002, 12.7th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Linux — versions 55b2395e4e92adc492c6b30ac109eb78250dcd9d, 6.6, 0
- Linux Kernel — versions 6.14
Weakness classification (CWE)
References
- git.kernel.org/stable/c/4d9b2b62e1136d10f661ec4c0c268140b6f74f4f (Patch, Mailing List)
- git.kernel.org/stable/c/a7052afa9eae2239e25943baa8817a6a56e8aa68 (Patch, Mailing List)
- git.kernel.org/stable/c/189fb76215e479c10731baabb50f1a352d2078f5 (Patch, Mailing List)
- git.kernel.org/stable/c/7b4aebeecbbd5b5fe73e35fad3f62ed21aa7ef44 (Patch, Mailing List)