Incident response on call, 24/7: +385 98 1900 984NewIR Retainer: a team on contract before an attack
HR · EN
PendingCVE-2026-139285

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

Published 30/11/2026 · Updated 30/11/2026 · 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 products and versions

Linux Linux92ac7de3175e3c17cbb76ae752b598cfb9dadf49 – < d617afb485c111a15eccb687a724e7fb51898425 · 92ac7de3175e3c17cbb76ae752b598cfb9dadf49 – < d271dafede0f3ed47827c663feacd47da8234224 · 92ac7de3175e3c17cbb76ae752b598cfb9dadf49 – < 138d7365c20efe47b4caa92c46f086ec39b81f78Fixed in: d617afb485c111a15eccb687a724e7fb51898425 · d271dafede0f3ed47827c663feacd47da8234224 · 138d7365c20efe47b4caa92c46f086ec39b81f78
Linux Linux6.16Fixed in: 6.18.65 · 7.3.6 · 7.4-rc1

References

Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.