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.
Published: 2026-07-19
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

In the Linux kernel gpio aggregator subsystem, an error path frees a memory pointer (aggr->lookups->dev_id) before it removes the corresponding entry from the lookup table. If a concurrent thread calls gpiod_find() in the narrow window before the removal, it may traverse the list and call gpiod_match_lookup_table(), which unconditionally dereferences dev_id. This results in a use‑after‑free (CWE‑825) that can corrupt kernel memory, potentially leading to code execution or a system crash. The vulnerability was addressed by reversing the order of cleanup so that the entry is removed prior to freeing dev_id.

Affected Systems

Affected vendors and products are any Linux distributions that ship with an unpatched Linux kernel containing the vulnerable gpio aggregator code. No explicit version range is listed in the CVE record, so any kernel build that has not yet incorporated the commit that fixes the use‑after‑free is considered vulnerable. The impact is limited to the kernel component and not to user‑space applications directly.

Risk and Exploitability

The CVSS score of 7.8 reflects a high severity, while the EPSS score of < 1 % indicates that exploitation is considered unlikely at this time. The vulnerability is not listed in the CISA KEV catalogue. The likely attack path requires a local user or compromised process to trigger the race condition between gpiod_find() and the cleanup logic; remote exploitation or network interaction is not required. Because it relies on timing between concurrent operations, devising a reliable exploit is non‑trivial, but kernel memory corruption could grant arbitrary code execution or a denial‑of‑service condition if successfully triggered.

Generated by OpenCVE AI on August 3, 2026 at 01:37 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply a Linux kernel update that includes the gpio aggregator use‑after‑free fix (e.g., a kernel build containing commit 30c073cab97afb31901f94de9605177b6b84367e).
  • If a direct kernel upgrade is not available, manually apply the upstream patch from the commit that reverses the cleanup order or backport it to the current kernel source.
  • As a temporary mitigation, limit or deny concurrent access to the GPIO aggregator by restricting permissions on /dev/gpio devices or configuring SELinux/AppArmor to prevent untrusted code from invoking the vulnerable interface.

Generated by OpenCVE AI on August 3, 2026 at 01:37 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
History

Sun, 26 Jul 2026 08:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-362
CWE-416

Wed, 22 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-362
CWE-416

Wed, 22 Jul 2026 12:15:00 +0000


Mon, 20 Jul 2026 14:45:00 +0000

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'}


Sun, 19 Jul 2026 15:45:00 +0000

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

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-05T12:38:17.707Z

Reserved: 2026-07-19T07:54:57.027Z

Link: CVE-2026-64023

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

Severity :

Publid Date: 2026-07-19T00:00:00Z

Links: CVE-2026-64023 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T01:45:02Z

Weaknesses
  • CWE-825

    Expired Pointer Dereference