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-05-15T11:53:39.258338706Z
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

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.6.0
Fixed
6.6.79
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.16
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.13.4

Database specific

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