# CVE-2026-99989: gpiolib: Free chip resources when allocating the label fails

- 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.29%, higher than 22% of CVEs (2026-12-01)
- Published: 2026-11-30T13:18:55.638Z
- Modified: 2026-11-30T14:20:42.107Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

gpiolib: Free chip resources when allocating the label fails

If desc_set_label() fails after the chip's request callback succeeds,
gpiod_request_commit() clears GPIOD_FLAG_REQUESTED without calling the
free callback. The caller receives an error and has no GPIO to release,
leaving resources acquired by the request callback held.

Call the chip's free callback, if present, before clearing the requested
bit on label allocation failure. Leave request callback errors on the
existing path to avoid freeing a failed request.

(As written by CVE List.)

## Affected

- Linux Linux: from 1f2bcb8c8ccdf9dc2e46f7986e1e22408506a6d6 before 3f81b2472c606695780b47b04525fecdd9ebe50a; from 1f2bcb8c8ccdf9dc2e46f7986e1e22408506a6d6 before 0fad7fba30c8ba80968a9867a765987b3ffa6cb2; from 1f2bcb8c8ccdf9dc2e46f7986e1e22408506a6d6 before 63f3307bc2901fc5a149027de718c0a78a92554f; from 1f2bcb8c8ccdf9dc2e46f7986e1e22408506a6d6 before 8381e1f15e27087fcb6f07046a526ac8b9b9b2b9; 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/3f81b2472c606695780b47b04525fecdd9ebe50a>
- <https://git.kernel.org/stable/c/0fad7fba30c8ba80968a9867a765987b3ffa6cb2>
- <https://git.kernel.org/stable/c/63f3307bc2901fc5a149027de718c0a78a92554f>
- <https://git.kernel.org/stable/c/8381e1f15e27087fcb6f07046a526ac8b9b9b2b9>

## Sources

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

---

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