CVE-2026-139285
JSON

Not scored

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

Severity
Not scored
Exploit likelihood
0.20% (higher than 10% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List

References

Sources

SourceRecordLicence
CVE ListCVE-2026-139285 changed 2026-11-30CVE Terms of Use
NVDCVE-2026-139285 changed 2026-11-30Public domain