{"id":"CVE-2026-99945","aliases":["CVE-2026-99945"],"related":[],"kind":"vulnerability","state":"published","title":"gpiolib: don't report -ENOMEM for a requested line without a label","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpiolib: don't report -ENOMEM for a requested line without a label\n\ngpiod_request_commit() sets GPIOD_FLAG_REQUESTED, calls ->request() and\nonly then sets the label. A line in between has no label, so\ngpiochip_dup_line_label() passes NULL to kstrdup() and returns\nERR_PTR(-ENOMEM), which for_each_hwgpio() then passes to kfree():\n\n  BUG: unable to handle page fault for address: ffcc73074355ffc8\n  Call Trace:\n   gpio_sim_dbg_show\n   gpiolib_seq_show\n   seq_read_iter\n\nReturn NULL for such a line, as for an unrequested one.\n\nReproduced with gpio-sim: reading /sys/kernel/debug/gpio in a loop while\nlines are requested and released oopses within seconds; with this\nchange, 100000 cycles pass.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ngpiolib: don't report -ENOMEM for a requested line without a label\n\ngpiod_request_commit() sets GPIOD_FLAG_REQUESTED, calls ->request() and\nonly then sets the label. A line in between has no label, so\ngpiochip_dup_line_label() passes NULL to kstrdup() and returns\nERR_PTR(-ENOMEM), which for_each_hwgpio() then passes to kfree():\n\n  BUG: unable to handle page fault for address: ffcc73074355ffc8\n  Call Trace:\n   gpio_sim_dbg_show\n   gpiolib_seq_show\n   seq_read_iter\n\nReturn NULL for such a line, as for an unrequested one.\n\nReproduced with gpio-sim: reading /sys/kernel/debug/gpio in a loop while\nlines are requested and released oopses within seconds; with this\nchange, 100000 cycles pass.","source":"cvelist"}],"published":"2026-11-30T13:18:31.147Z","modified":"2026-11-30T14:20:31.623Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"35b545332b809a439aa1bf3fde5305e6eb243cf0","fixed":"32eb5deaba546813b1aa59484e5150e7b44b0775","status":"affected"},{"type":"git","introduced":"35b545332b809a439aa1bf3fde5305e6eb243cf0","fixed":"930132f707c7ea67bc9cb8099ef784195cb6ca8c","status":"affected"},{"type":"git","introduced":"35b545332b809a439aa1bf3fde5305e6eb243cf0","fixed":"ed99cc40d65a23c2294fb022b020efd57c2c8b07","status":"affected"},{"type":"git","introduced":"35b545332b809a439aa1bf3fde5305e6eb243cf0","fixed":"dae739137441667d67fbfcc4d303a0ecc6618662","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.9","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/32eb5deaba546813b1aa59484e5150e7b44b0775","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/930132f707c7ea67bc9cb8099ef784195cb6ca8c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ed99cc40d65a23c2294fb022b020efd57c2c8b07","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dae739137441667d67fbfcc4d303a0ecc6618662","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99945","url":"https://www.cve.org/CVERecord?id=CVE-2026-99945","licence":"CVE Terms of Use","modified":"2026-11-30T13:18:31.147Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99945","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99945","licence":"Public domain","modified":"2026-11-30T14:20:31.623Z"}],"updatedAt":"2026-11-30T14:33:49.934Z","epss":{"score":0.00309,"percentile":0.25604,"date":"2026-12-01T12:00:22.000Z"}}