CVE-2026-99190

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

Published Oct 28, 2026 CVSS 3.1 · 3.3 Low EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The Linux kernel's gpiolib subsystem contains a logic error in the function that sets pin values for multiple GPIOs. When gpiochip_set_multiple() fails, the subsequent call to gpiod_set_array_value() returns early, bypassing the cleanup of allocated bitmaps. This oversight leads to memory leaks on error paths. While the flaw does not expose any information or allow execution of arbitrary code, the repeated leaking of memory can degrade system availability by exhausting kernel memory, potentially causing panics or crashes.

Affected Systems

The issue manifests in all Linux kernel versions that include the vulnerable gpiod_set_array_value_complex() implementation. No specific vendor or product variant is singled out; the affected component is the generic Linux kernel itself. Any system running a kernel that has not incorporated the patch will be susceptible.

Risk and Exploitability

The vulnerability is exploitability technically constrained to scenarios where an error path is triggered—specifically after a failed call to gpiochip_set_multiple(). The attack likely requires inducing such a failure, possibly through malformed driver input or a faulty device. The resulting impact is a denial of service via memory consumption rather than direct compromise of confidentiality or integrity. The EPSS score is < 1% and the CVSS score is 3.3, indicating a very low likelihood of exploitation and low severity. The vulnerability is not listed in the CISA KEV catalog. Given the specialized nature of the trigger, the overall risk is moderate, but in high‑availability environments repeated failures could be detrimental.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the gpiod_set_array_value_complex() patch.
  • Ensure all custom drivers that interact with GPIO subsystems perform proper error handling on gpiochip_set_multiple() return values.
  • Monitor system memory usage for abnormal growth and apply kernel updates promptly when new patches are released.

Generated by OpenCVE AI on October 29, 2026 at 15:04 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-772
References
Metrics threat_severity

None

cvssV3_1

{'score': 3.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L'}

threat_severity

Low

Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-401
Type Values Removed Values Added
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.
Title gpiolib: fix memory leak in gpiod_set_array_value_complex() on error paths
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-401

    Missing Release of Memory after Effective Lifetime

  • CWE-772

    Missing Release of Resource after Effective Lifetime

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 30, 2026, 12:42 PM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Oct 28, 2026, 11:17 AM
Modified
Oct 30, 2026, 1:21 PM
Severity
Low
Public date
Oct 28, 2026, 12:00 AM