gpiolib: fix memory leak in gpiod_set_array_value_complex() on error paths
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| LinuxLinux | — | Not listed |
| LinuxKernel |
≥ 6.12.114, < 6.12.115→ 6.12.115 ≥ 6.15.0, < 6.18.59→ 6.18.59 ≥ 6.19.0, < 7.2.13→ 7.2.13 |
6.12.115 6.18.59 7.2.13 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- BellSoft Alpaquita BELL-CVE-2026-99190 linux-lts Fix available
- Debian DEBIAN-CVE-2026-99190 linux Fix available
- Ubuntu UBUNTU-CVE-2026-99190 linux-vmware, linux-riscv, linux-realtime +13 more Fix available
Original description The description as published by the source.
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: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory nvd.nist.gov
- advisory github.com
- package git.kernel.org
- REDHAT Red Hat
- web git.kernel.org
- web git.kernel.org
- web git.kernel.org
- web github.com
- web git.kernel.org