# CVE-2026-139285: gpiolib: fix memory leak in gpiod_set_array_value_complex() EPERM error path

- 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.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2026-11-30T13:33:20.434Z
- Modified: 2026-11-30T14:18:52.083Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

gpiolib: fix memory leak in gpiod_set_array_value_complex() EPERM error path

A drive-by review by Sashiko reports that, where the line has not been
configured as an output, gpiod_set_array_value_complex() can return
without freeing potentially alloced bitmaps, thus leaking memory.

Cleanup the bitmaps before returning.

(As written by CVE List.)

## Affected

- Linux Linux: from 92ac7de3175e3c17cbb76ae752b598cfb9dadf49 before d617afb485c111a15eccb687a724e7fb51898425; from 92ac7de3175e3c17cbb76ae752b598cfb9dadf49 before d271dafede0f3ed47827c663feacd47da8234224; from 92ac7de3175e3c17cbb76ae752b598cfb9dadf49 before 138d7365c20efe47b4caa92c46f086ec39b81f78; 6.16 (not affected: before 6.16; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/d617afb485c111a15eccb687a724e7fb51898425>
- <https://git.kernel.org/stable/c/d271dafede0f3ed47827c663feacd47da8234224>
- <https://git.kernel.org/stable/c/138d7365c20efe47b4caa92c46f086ec39b81f78>

## Sources

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

---

Page: https://cve.day/CVE-2026-139285 · Whole record: https://cve.day/CVE-2026-139285.json · Rebuilt by cve.day 2026-11-30T14:33:01.559Z
