gpiolib: fix memory leak in gpiod_set_array_value_complex() EPERM error path
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
gpiolib: fix memory leak in gpiod_set_array_value_complex() EPERM error path
A drive-by review by Sashiko reports that, where the line has not been configured as an output, gpiod_set_array_value_complex() can return without freeing potentially alloced bitmaps, thus leaking memory.
Cleanup the bitmaps before returning.
| Product | Versions |
|---|---|
| Linux Linux | 92ac7de3175e3c17cbb76ae752b598cfb9dadf49 to before d617afb485c111a15eccb687a724e7fb51898425 Affected92ac7de3175e3c17cbb76ae752b598cfb9dadf49 to before d271dafede0f3ed47827c663feacd47da8234224 Affected92ac7de3175e3c17cbb76ae752b598cfb9dadf49 to before 138d7365c20efe47b4caa92c46f086ec39b81f78 Affected |
| Linux Linux | 6.16 Affectedbefore 6.16 Not Affected6.18.65 through 6.18.* Not Affected7.3.6 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.