CVE-2026-139285
publishedgpiolib: fix memory leak in gpiod_set_array_value_complex() EPERM error path
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux92ac7de3175e3c17cbb76ae752b598cfb9dadf49 to < d617afb485c111a15eccb687a724e7fb51898425 · 92ac7de3175e3c17cbb76ae752b598cfb9dadf49 to < d271dafede0f3ed47827c663feacd47da8234224 · 92ac7de3175e3c17cbb76ae752b598cfb9dadf49 to < 138d7365c20efe47b4caa92c46f086ec39b81f78 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.16 (affected) · 0 to < 6.16 (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected; Pending Fix | Not stated | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 92ac7de3175e3c17cbb76ae752b598cfb9dadf49 to < d617afb485c111a15eccb687a724e7fb51898425 (affected · git)92ac7de3175e3c17cbb76ae752b598cfb9dadf49 to < d271dafede0f3ed47827c663feacd47da8234224 (affected · git)92ac7de3175e3c17cbb76ae752b598cfb9dadf49 to < 138d7365c20efe47b4caa92c46f086ec39b81f78 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.16 (affected)0 to < 6.16 (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
1Linux · cna
gpiolib: fix memory leak in gpiod_set_array_value_complex() EPERM error path
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 7b1f9fd9159d2ff148a9c880b5d7563d8dd1e6342f6f103f454f84dca54e31c0
- Ingested
- 30 Nov 2026, 13:42:23 UTC
- Source record
- Official CVE record