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

Published Updated

CVSS score

Not scored

No CVSS score published yet
Exploited in the wild
Not known
Not in CISA's KEV catalogue
Exploit code
None known
No public exploit found
Fix
Available
See affected versions
Attack path
Not stated

What is CVE-2026-139285?

CVE-2026-139285 is a vulnerability in Linux, published on 30 Nov 2026.

Official 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.

Which versions are affected by CVE-2026-139285?

How do I fix CVE-2026-139285?

Upgrade to a fixed version.

Is CVE-2026-139285 being exploited?

There is no known exploitation of CVE-2026-139285 in the wild and no public exploit code.

Sources

Also known as BELL-CVE-2026-139285, DEBIAN-CVE-2026-139285, GHSA-w2xc-5f96-pgmq, UBUNTU-CVE-2026-139285.

Is CVE-2026-139285 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free