CVE-2026-64023

gpio: aggregator: fix a potential use-after-free

Published Jul 19, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

gpio: aggregator: fix a potential use-after-free

On error we free aggr->lookups->dev_id before removing the entry from
the lookup table. If a concurrent thread calls gpiod_find() before we
remove the entry, it could iterate over the list and call
gpiod_match_lookup_table() which unconditionally dereferences dev_id
when calling strcmp(). Reverse the order of cleanup.

Analysis

AI-generated

Technical impact

In the Linux kernel's gpio aggregator subsystem, an error path frees a memory pointer (aggr->lookups->dev_id) before removing the related entry from the lookup table. If another thread calls gpiod_find() before the entry is removed, it may traverse the list and invoke gpiod_match_lookup_table(), which blindly dereferences dev_id during a strcmp() call. This sequence causes a use‑after‑free, leading to kernel memory corruption, and potentially arbitrary kernel code execution or a system crash. The weakness is marked as CWE‑416 (Use After Free) and CWE‑825 (Uncontrolled Memory Allocation).

Affected Systems

Affected systems are any machine running a Linux kernel that has not yet incorporated the commit that reverses the cleanup order. The CVE references include kernel releases 7.1 rc1 through rc4 and all other Linux kernels, indicating the issue existed prior to those releases. Therefore, any Linux distribution shipping a kernel version older than the commit is potentially vulnerable. The vulnerability is limited to the kernel component; no direct impact on user‑space applications is described.

Risk and Exploitability

The CVSS score of 7.8 reflects a high severity. The EPSS score of < 1 % indicates exploitation is considered unlikely at the current time, and the vulnerability is not listed in the CISA KEV catalog. Based on the description, it is inferred that the attack vector is local, requiring an attacker or compromised process to trigger the race condition between gpiod_find() and the error‑cleanup path by performing concurrent operations. Remote exploitation or network‑based attack is not indicated. The risk is that a successful exploit could corrupt kernel memory, potentially enabling privilege escalation or a denial‑of‑service if the kernel crashes.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Install a kernel update that includes the gpio aggregator use‑after‑free fix (e.g., commit 30c073cab97afb31901f94de9605177b6b84367e).
  • If no official update is available, apply the upstream patch that reverses the cleanup order or backport it to the current kernel source.
  • As a temporary mitigation, restrict or deny concurrent access to the GPIO aggregator by limiting permissions on /dev/gpio devices or configuring SELinux/AppArmor to block untrusted code from calling the vulnerable interface.

Generated by OpenCVE AI on October 17, 2026 at 10:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8593-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8603-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8618-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8663-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8664-1 Linux kernel (NVIDIA BaseOS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-1 Linux kernel (GCP) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-3 Linux kernel (Oracle) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-416
CPEs cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.1:rc4:*:*:*:*:*:*
Type Values Removed Values Added
Weaknesses CWE-362
CWE-416
Type Values Removed Values Added
Weaknesses CWE-362
CWE-416
Type Values Removed Values Added
Metrics cvssV3_1

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

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: gpio: aggregator: fix a potential use-after-free On error we free aggr->lookups->dev_id before removing the entry from the lookup table. If a concurrent thread calls gpiod_find() before we remove the entry, it could iterate over the list and call gpiod_match_lookup_table() which unconditionally dereferences dev_id when calling strcmp(). Reverse the order of cleanup.
Title gpio: aggregator: fix a potential use-after-free
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Aug 5, 2026, 12:38 PM
Reserved
Jul 19, 2026, 7:54 AM
Status
Analyzed
Published
Jul 19, 2026, 4:17 PM
Modified
Oct 13, 2026, 2:57 PM
Severity
Public date
Jul 19, 2026, 12:00 AM