gpiolib: fix memory leak in gpiod_set_array_value_complex() on error paths
Historical advisory recorded 28 Oct 2026 11:27:43 UTC. Read the latest advisory.
cve-program · CVE-2026-99190
PublishedIn 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.
Read the publisher's advisoryAffected versions, risk and source history
cve-program · CVE-2026-99190
Publishedgpiolib: fix memory leak in gpiod_set_array_value_complex() on error paths
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.
- Source published
- 28 Oct 2026 10:35:47 UTC
- Source modified
- 28 Oct 2026 10:35:47 UTC
- Saved here
- 28 Oct 2026 11:27:43 UTC
- Source terms
- CVE Program Terms of Use
Original source record · Cite this exact observation · Complete original publisher JSON
Source: cve-program · CVE Program Terms of Use. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.