All reports
Low

kernel: gpiolib: fix memory leak in gpiod_set_array_value_complex() on error paths

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-99190

Probability of exploitation in the next 30 days: 0.18%

FIRST EPSS · 2026-11-19

Description

In the Linux kernel, the following vulnerability has been resolved: gpiolib: fix memory leak in gpiod_set_array_value_complex() on error paths A drive-by review by Sashiko reports that, after a failed call to gpiochip_set_multiple(), gpiod_set_array_value() returns abruptly, bypassing the freeing of possibly alloced bitmaps, potentially leaking memory. It is an unlikely error path, but is possible. Defer the return code check until after the bitmap_free() block.

A flaw was found in the Linux kernel's GPIO (General Purpose Input/Output) subsystem. When an operation setting multiple GPIO values encounters an error, the function exits early without releasing previously allocated memory buffers. A local user could trigger this error condition to cause a memory leak, potentially leading to system resource exhaustion and a Denial of Service (DoS).