# CVE-2026-99190: gpiolib: fix memory leak in gpiod_set_array_value_complex() on error paths

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2026-10-28T10:35:47.107Z
- Modified: 2026-10-30T13:21:52.150Z
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from d73d2a569e6212f58d89efc6e66ffbb2386a47b1 before 68a2cd5381b8d89dc80bd16dd9cc9ca2d5c25e7f; from 9b407312755fd5db012413ca005f0f3a661db8dd before 78189c0e35abbcdab3b8ab0b764d578c02900734; from 9b407312755fd5db012413ca005f0f3a661db8dd before 890c3bf08e0fc09eff788a6cfeded7d21b4d3e9d; from 9b407312755fd5db012413ca005f0f3a661db8dd before c28846ca1ac6134881114d272314623c8433e372; from 6.12.114 before 6.12.115; 6.15 (not affected: before 6.15; from 6.12.115 up to 6.12.*; from 6.18.59 up to 6.18.*; from 7.2.13 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/68a2cd5381b8d89dc80bd16dd9cc9ca2d5c25e7f>
- <https://git.kernel.org/stable/c/78189c0e35abbcdab3b8ab0b764d578c02900734>
- <https://git.kernel.org/stable/c/890c3bf08e0fc09eff788a6cfeded7d21b4d3e9d>
- <https://git.kernel.org/stable/c/c28846ca1ac6134881114d272314623c8433e372>

## Sources

- CVE List: [CVE-2026-99190](https://www.cve.org/CVERecord?id=CVE-2026-99190), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2026-99190](https://nvd.nist.gov/vuln/detail/CVE-2026-99190), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-99190 · Whole record: https://cve.day/CVE-2026-99190.json · Rebuilt by cve.day 2026-11-25T22:59:47.595Z
