Bug 2348511 (CVE-2025-21783) - CVE-2025-21783 kernel: gpiolib: Fix crash on error in gpiochip_get_ngpios()
Summary: CVE-2025-21783 kernel: gpiolib: Fix crash on error in gpiochip_get_ngpios()
Keywords:
Status: NEW
Alias: CVE-2025-21783
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-27 03:01 UTC by OSIDB Bzimport
Modified: 2025-03-11 06:17 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-02-27 03:01:18 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.