CVE-2026-99945

Source
https://cve.org/CVERecord?id=CVE-2026-99945
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99945.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-99945
Downstream
Published
2026-11-30T13:18:31Z
Modified
2026-11-30T15:02:32Z
Summary
gpiolib: don't report -ENOMEM for a requested line without a label
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99945.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
35b545332b809a439aa1bf3fde5305e6eb243cf0
Fixed
32eb5deaba546813b1aa59484e5150e7b44b0775
Fixed
930132f707c7ea67bc9cb8099ef784195cb6ca8c
Fixed
ed99cc40d65a23c2294fb022b020efd57c2c8b07
Fixed
dae739137441667d67fbfcc4d303a0ecc6618662

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99945.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.9.0
Fixed
6.12.117
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.63
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-99945.json"