gpiolib: fix memory leak in gpiod_set_array_value_complex() on error paths
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 68a2cd5381b8d89dc80bd16dd9cc9ca2d5c25e7f, Kernel 78189c0e35abbcdab3b8ab0b764d578c02900734, Kernel 890c3bf08e0fc09eff788a6cfeded7d21b4d3e9d and 4 more.
In the Linux kernel, the following vulnerability has been resolved: gpiolib: fix memory leak in gpiod_set_array_value_complex() on error paths A drive-by review by Sashiko reports that, after a failed call to gpiochip_set_multiple(), gpiod_set_array_value() returns abruptly, bypassing the freeing of possibly alloced bitmaps, potentially leaking memory. It is an unlikely error path, but is possible. Defer the return code check until after the bitmap_free() block.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=d73d2a569e6212f58d89efc6e66ffbb2386a47b1 <68a2cd5381b8d89dc80bd16dd9cc9ca2d5c25e7f, >=9b407312755fd5db012413ca005f0f3a661db8dd <78189c0e35abbcdab3b8ab0b764d578c02900734, >=9b407312755fd5db012413ca005f0f3a661db8dd <890c3bf08e0fc09eff788a6cfeded7d21b4d3e9d, >=9b407312755fd5db012413ca005f0f3a661db8dd <c28846ca1ac6134881114d272314623c8433e372, =6.15, >=6.12.114 <6.12.115 | 68a2cd5381b8d89dc80bd16dd9cc9ca2d5c25e7f, 78189c0e35abbcdab3b8ab0b764d578c02900734, 890c3bf08e0fc09eff788a6cfeded7d21b4d3e9d, c28846ca1ac6134881114d272314623c8433e372, 6.12.115 |
| linux-kernel: Kernel | >=6.15.0 <6.18.59, >=6.19.0 <7.2.13, >=6.12.114 <6.12.115 | 6.18.59, 7.2.13, 6.12.115 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket