CVE-2026-99945
publishedgpiolib: don't report -ENOMEM for a requested line without a label
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux35b545332b809a439aa1bf3fde5305e6eb243cf0 to < 32eb5deaba546813b1aa59484e5150e7b44b0775 · 35b545332b809a439aa1bf3fde5305e6eb243cf0 to < 930132f707c7ea67bc9cb8099ef784195cb6ca8c · 35b545332b809a439aa1bf3fde5305e6eb243cf0 to < ed99cc40d65a23c2294fb022b020efd57c2c8b07 · 35b545332b809a439aa1bf3fde5305e6eb243cf0 to < dae739137441667d67fbfcc4d303a0ecc6618662 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.9 (affected) · 0 to < 6.9 (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected; Pending Fix | Not stated | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 35b545332b809a439aa1bf3fde5305e6eb243cf0 to < 32eb5deaba546813b1aa59484e5150e7b44b0775 (affected · git)35b545332b809a439aa1bf3fde5305e6eb243cf0 to < 930132f707c7ea67bc9cb8099ef784195cb6ca8c (affected · git)35b545332b809a439aa1bf3fde5305e6eb243cf0 to < ed99cc40d65a23c2294fb022b020efd57c2c8b07 (affected · git)35b545332b809a439aa1bf3fde5305e6eb243cf0 to < dae739137441667d67fbfcc4d303a0ecc6618662 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.9 (affected)0 to < 6.9 (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
4Provider assertions
1Linux · cna
gpiolib: don't report -ENOMEM for a requested line without a label
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- cae9e6fe73ce5eceadfa3f86f32507ba4a1dee9083ecd5957de217c6e4419340
- Ingested
- 30 Nov 2026, 13:30:07 UTC
- Source record
- Official CVE record