CVE-2026-139285

Source
https://cve.org/CVERecord?id=CVE-2026-139285
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139285.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-139285
Downstream
Published
2026-11-30T13:33:20Z
Modified
2026-11-30T15:01:28Z
Summary
gpiolib: fix memory leak in gpiod_set_array_value_complex() EPERM error path
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139285.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
92ac7de3175e3c17cbb76ae752b598cfb9dadf49
Fixed
d617afb485c111a15eccb687a724e7fb51898425
Fixed
d271dafede0f3ed47827c663feacd47da8234224
Fixed
138d7365c20efe47b4caa92c46f086ec39b81f78

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139285.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.16.0
Fixed
6.18.65
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139285.json"