Skip to main content

Linux Kernel EUVDEUVD-2026-26545

| CVE-2026-31732 MEDIUM
Memory Leak (CWE-401)
2026-05-01 Linux
5.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Gain local system access
  2. Delivery
    Load GPIO driver module
  3. Exploit
    Trigger initialization error condition
  4. Install
    Device reference not released
  5. C2
    Repeat module load-unload cycles
  6. Execute
    Exhaust kernel memory pools
  7. Impact
    Kernel denial of service

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Resource cleanup, leak prevention
Exploitation Conditions

The vulnerability requires local access to the system (AV:L). Exploitation specifically requires that the gpiochip_add_data_with_key() function is invoked and fails after device_initialize() has been called but before successful registration completes-this occurs during GPIO driver module load/unload cycles or dynamic GPIO chip addition, and the system must support such operations. The attacker must have the ability to trigger device initialization failures repeatedly, which typically requires unprivileged user privileges (PR:L) sufficient to load/unload kernel modules or interact with GPIO device interfaces. Default Linux installations with GPIO support compiled and module-loading not restricted are affected; however, systems with disabled GPIO functionality or module-loading restrictions are not vulnerable. The vulnerability does not require authentication beyond local user access.

Impact

CVSS 5.5 (Local, Low Complexity, Low Privilege, No User Interaction) indicates a local privilege escalation or denial-of-service vector, but the 0.02% EPSS score (4th percentile) reveals minimal real-world exploitation probability. The vulnerability requires local access (AV:L) and low privileges (PR:L), significantly limiting attack surface compared to network-accessible flaws. The impact is availability-only (A:H, C:N, I:N), manifesting as denial of service through memory leaks rather than data breach or privilege escalation. Absence from CISA KEV and no known public exploits suggest this is a defensive code-quality fix rather than an actively exploited bug. The mismatch between CVSS severity and EPSS probability indicates low attacker motivation: triggering repeated gpiochip initialization failures requires specific kernel module interactions, specialized hardware, or deliberate fault injection-not typical attack scenarios. Organizations should prioritize this as a moderate-priority patch during routine kernel maintenance, not as an emergency.

Exploit ScenarioDerived

A local attacker with unprivileged user access (PR:L) repeatedly triggers gpiochip initialization failures-for example, by rapidly loading and unloading GPIO device driver modules or manipulating device tree parameters if the kernel supports dynamic GPIO addition. Each failed initialization leaks kernel memory in the gdev->dev structure. After sufficient iterations, kernel memory pools become exhausted, causing system-wide denial of service as the kernel can no longer allocate memory for critical operations, forcing system hang or reboot.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 07, 2026

Resource leaks in the Linux kernel GPIO subsystem allow local attackers with low privileges to cause denial of service through memory exhaustion during gpiochip initialization error handling. The vulnerability arises from improper reference counting in gpiochip_add_data_with_key() after device initialization, where error paths fail to release device references, leading to memory not being freed on function failure. CVSS 5.5 with EPSS 0.02% indicates low real-world exploitation probability despite local attack vector.

RemediationAI

Apply vendor-released patches from stable kernel branches: Linux 6.18.22 (commit f0cf9c7b7c281956cc0dec163132cd96f76e1d60), 6.19.12 (commit fb4584d2b324c522404c733c65840a1a6519ada8), or 7.0 and later (commit 16fdabe143fce2cbf89139677728e17e21b46c28), available at https://git.kernel.org/stable/. Users on long-term support kernels should check their distribution's stable update channels for backported fixes. If immediate patching is not feasible, disable GPIO module loading where GPIO hardware is not required, reducing attack surface; however, this impacts any user-space GPIO control via sysfs or device libraries. No workarounds exist short of hardware-level GPIO disabling or avoiding gpiochip initialization failures through stable hardware and driver configurations.

Affected VersionsENISA

Linux aab5c6f200238ac45001bec3d5494fff8438a8dc <fb4584d2b324c522404c733c65840a1a6519ada8
Linux patch: 0
Linux patch: 6.18.22
Linux patch: 6.19.12
Linux patch: 7.0
Linux 6.9
Linux aab5c6f200238ac45001bec3d5494fff8438a8dc <f0cf9c7b7c281956cc0dec163132cd96f76e1d60
Linux aab5c6f200238ac45001bec3d5494fff8438a8dc <16fdabe143fce2cbf89139677728e17e21b46c28

Affected Packages

euvd linux no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The Linux kernel GPIO (General Purpose Input/Output) subsystem manages GPIO chip registration through the gpiochip_add_data_with_key() function. After commit aab5c6f20023 introduced device-type setting, the gdev->dev.release callback became unset, breaking the automatic reference-counting mechanism that normally guarantees resource cleanup through device_put(). The vulnerability is rooted in CWE-401 (Missing Release of Memory after Effective Lifetime), where allocated device structures are not freed when error paths are taken after device_initialize() but before successful registration. The fix reorders initialization stages to establish clear error zones: an early zone for allocation failures (handled by direct kfree) and a later zone where gpiodev_release() assumes responsibility for cleanup, preventing double-frees.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
SUSE MEDIUM
Red Hat 5.5 LOW

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

5
CVSS changed
May 07, 2026 - 15:52 NVD
5.5 (MEDIUM)
Patch available
May 01, 2026 - 16:02 EUVD
Patch released
May 01, 2026 - 15:24 nvd
Patch available
CVE Published
May 01, 2026 - 14:14 nvd
MEDIUM 5.5
CVE Published
May 01, 2026 - 14:14 nvd
N/A

DescriptionNVD

In the Linux kernel, the following vulnerability has been resolved:

gpio: Fix resource leaks on errors in gpiochip_add_data_with_key()

Since commit aab5c6f20023 ("gpio: set device type for GPIO chips"), gdev->dev.release is unset. As a result, the reference count to gdev->dev isn't dropped on the error handling paths.

Drop the reference on errors.

Also reorder the instructions to make the error handling simpler. Now gpiochip_add_data_with_key() roughly looks like:

>>> Some memory allocation. Go to ERR ZONE 1 on errors. >>> device_initialize().

gpiodev_release() takes over the responsibility for freeing the resources of gdev->dev. The subsequent error handling paths shouldn't go through ERR ZONE 1 again which leads to double free.

>>> Some initialization mainly on gdev. >>> The rest of initialization. Go to ERR ZONE 2 on errors. >>> Chip registration success and exit.

>>> ERR ZONE 2. gpio_device_put() and exit. >>> ERR ZONE 1.

Threat Intelligence Overview

EPSS Score
0.0%
Top 96% exploitable
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy