CVE-2025-21783

Source
https://cve.org/CVERecord?id=CVE-2025-21783
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21783.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-21783
Downstream
Related
Published
2025-02-27T02:18:24.980Z
Modified
2026-03-09T23:57:30.177736Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
gpiolib: Fix crash on error in gpiochip_get_ngpios()
Details

In the Linux kernel, the following vulnerability has been resolved:

gpiolib: Fix crash on error in gpiochipgetngpios()

The gpiochipgetngpios() 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 bgpioinit(). 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.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21783.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
55b2395e4e92adc492c6b30ac109eb78250dcd9d
Fixed
4d9b2b62e1136d10f661ec4c0c268140b6f74f4f
Fixed
a7052afa9eae2239e25943baa8817a6a56e8aa68
Fixed
189fb76215e479c10731baabb50f1a352d2078f5
Fixed
7b4aebeecbbd5b5fe73e35fad3f62ed21aa7ef44

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-21783.json"