gpiolib: fix memory leak in gpiod_set_array_value_complex() on error paths
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
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2026-99190 · CVE overview and exploitation status
cve-program · CVE-2026-99190
Related changes
Linked by CVE identifier- gpiolib: fix memory leak in gpiod_set_array_value_complex() on error paths · Affected-version evidence changed · 30 Oct 2026
- gpiolib: fix memory leak in gpiod_set_array_value_complex() on error paths · Newly collected advisory · 28 Oct 2026