gpiolib: Free chip resources when allocating the label fails
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Sep 25, 2026
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.
| Product | Versions |
|---|---|
| Linux Linux | 1f2bcb8c8ccdf9dc2e46f7986e1e22408506a6d6 to before 3f81b2472c606695780b47b04525fecdd9ebe50a Affected1f2bcb8c8ccdf9dc2e46f7986e1e22408506a6d6 to before 0fad7fba30c8ba80968a9867a765987b3ffa6cb2 Affected1f2bcb8c8ccdf9dc2e46f7986e1e22408506a6d6 to before 63f3307bc2901fc5a149027de718c0a78a92554f Affected1f2bcb8c8ccdf9dc2e46f7986e1e22408506a6d6 to before 8381e1f15e27087fcb6f07046a526ac8b9b9b2b9 Affected |
| Linux Linux | 6.9 Affectedbefore 6.9 Not Affected6.12.117 through 6.12.* Not Affected6.18.63 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.