Bug 2586163 (CVE-2026-99945) - CVE-2026-99945 kernel: kernel: Denial of Service via invalid memory free in GPIO subsystem
Summary: CVE-2026-99945 kernel: kernel: Denial of Service via invalid memory free in G...
Keywords:
Status: NEW
Alias: CVE-2026-99945
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-30 13:33 UTC by OSIDB Bzimport
Modified: 2026-11-30 16:04 UTC (History)
17 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-11-30 13:33:09 UTC
In the Linux kernel, the following vulnerability has been resolved:

gpiolib: don't report -ENOMEM for a requested line without a label

gpiod_request_commit() sets GPIOD_FLAG_REQUESTED, calls ->request() and
only then sets the label. A line in between has no label, so
gpiochip_dup_line_label() passes NULL to kstrdup() and returns
ERR_PTR(-ENOMEM), which for_each_hwgpio() then passes to kfree():

  BUG: unable to handle page fault for address: ffcc73074355ffc8
  Call Trace:
   gpio_sim_dbg_show
   gpiolib_seq_show
   seq_read_iter

Return NULL for such a line, as for an unrequested one.

Reproduced with gpio-sim: reading /sys/kernel/debug/gpio in a loop while
lines are requested and released oopses within seconds; with this
change, 100000 cycles pass.


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