CVE-2026-99945

medium

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.

References

https://git.kernel.org/stable/c/ed99cc40d65a23c2294fb022b020efd57c2c8b07

https://git.kernel.org/stable/c/dae739137441667d67fbfcc4d303a0ecc6618662

https://git.kernel.org/stable/c/930132f707c7ea67bc9cb8099ef784195cb6ca8c

https://git.kernel.org/stable/c/32eb5deaba546813b1aa59484e5150e7b44b0775

https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-138433

Details

Source: Mitre, NVD

Published: 2026-11-30

Updated: 2026-11-30

Risk Information

CVSS v2

Base Score: 4.9

Vector: CVSS2#AV:L/AC:L/Au:N/C:N/I:N/A:C

Severity: Medium

CVSS v3

Base Score: 5.5

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Severity: Medium