# CVE-2026-99945: gpiolib: don't report -ENOMEM for a requested line without a label

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 25% of CVEs (2026-12-01)
- Published: 2026-11-30T13:18:31.147Z
- Modified: 2026-11-30T14:20:31.623Z
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 35b545332b809a439aa1bf3fde5305e6eb243cf0 before 32eb5deaba546813b1aa59484e5150e7b44b0775; from 35b545332b809a439aa1bf3fde5305e6eb243cf0 before 930132f707c7ea67bc9cb8099ef784195cb6ca8c; from 35b545332b809a439aa1bf3fde5305e6eb243cf0 before ed99cc40d65a23c2294fb022b020efd57c2c8b07; from 35b545332b809a439aa1bf3fde5305e6eb243cf0 before dae739137441667d67fbfcc4d303a0ecc6618662; 6.9 (not affected: before 6.9; from 6.12.117 up to 6.12.*; from 6.18.63 up to 6.18.*; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/32eb5deaba546813b1aa59484e5150e7b44b0775>
- <https://git.kernel.org/stable/c/930132f707c7ea67bc9cb8099ef784195cb6ca8c>
- <https://git.kernel.org/stable/c/ed99cc40d65a23c2294fb022b020efd57c2c8b07>
- <https://git.kernel.org/stable/c/dae739137441667d67fbfcc4d303a0ecc6618662>

## Sources

- CVE List: [CVE-2026-99945](https://www.cve.org/CVERecord?id=CVE-2026-99945), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-99945](https://nvd.nist.gov/vuln/detail/CVE-2026-99945), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-99945 · Whole record: https://cve.day/CVE-2026-99945.json · Rebuilt by cve.day 2026-11-30T14:33:49.934Z
