VULNERABILITY INTELLIGENCE
CVE-2025-21783
CVSS score5.5 MEDIUM
EPSS probability0.22%
CISA KEVNot currently listed
Published2025-02-27
Last modified2026-06-17
CVSS vectorCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
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.
Weakness classification
- nvd@nist.gov: CWE-476
- 134c704f-9b21-4f2e-91b3-4a467353bcc0: CWE-476
Primary references
- 416baaa9-dc9f-4396-8d5f-8c081fb06d67 — Mailing List, Patch
- 416baaa9-dc9f-4396-8d5f-8c081fb06d67 — Mailing List, Patch
- 416baaa9-dc9f-4396-8d5f-8c081fb06d67 — Mailing List, Patch
- 416baaa9-dc9f-4396-8d5f-8c081fb06d67 — Mailing List, Patch