CVE-2026-64292

iommufd: Move vevent memory allocation outside spinlock

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

iommufd: Move vevent memory allocation outside spinlock

The veventq memory allocation happens inside the spinlock. Given its depth
is decided by the user space, this leaves a vulnerability, where userspace
can allocate large queues to exhaust atomic memory reserves.

Move the allocation outside the spinlock and use GFP_NOWAIT, which can fail
fast under memory pressure without dipping into the GFP_ATOMIC reserves or
direct-reclaiming from the threaded IRQ handler. On allocation failure,
queue the lost_events_header (so userspace learns of the drop) and return
-ENOMEM so the caller learns of the kernel-side memory pressure.

This is intentionally distinct from the queue-overflow path, which also
queues the lost_events_header but returns 0: a full queue is an expected
userspace-pacing condition rather than a kernel error.

A subsequent change will cap the upper bound of the veventq_depth.

Analysis

AI-generated

Technical impact

The Linux kernel’s iommufd component previously allocated memory for its vevent queue while holding a spinlock. Because the queue depth is supplied by user‑space, an attacker could request a depth large enough that the kernel would attempt to allocate a correspondingly large amount of atomic memory. This memory allocation occurs inside the spinlock, allowing the allocation to consume the kernel’s limited atomic memory reserves. The result is a kernel scenario where subsequent atomic‑allocation attempts fail or the system may become unstable, potentially causing a denial‑of‑service. The flaw combines improper memory management (CWE‑401) with unnecessary resource allocation (CWE‑770).

Affected Systems

All Linux kernel releases that implement the original vevent queue logic before the commit introducing the fix are potentially vulnerable. The advisory does not list specific release numbers; therefore, any kernel tree that does not contain the commit 6c5fc40200… is considered at risk. Vendors maintain their own kernel branches, so users should verify whether their distribution includes the fix.

Risk and Exploitability

The CVSS v3.1 score of 5.5 places the vulnerability in the medium severity band. The EPSS score is below 1 %, indicating a low probability of exploitation in the current threat landscape. The vulnerability is not listed in CISA’s KEV catalog, and no publicly known exploits exist. Exploitation remains local; an attacker would need the ability to invoke iommufd and supply an unusually large queue depth. (Inferred: iommufd is usually accessed by privileged processes or device daemon applications, so privileged access is likely required.) If an attacker succeeds, the resulting kernel memory exhaustion could lead to system hangs or crashes, impacting availability.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the kernel to a version that includes the iommufd fix (commit 6c5fc40200…) which moves the allocation outside the spinlock and uses GFP_NOWAIT.
  • If a kernel upgrade is not possible, limit the maximum vevent queue depth or disable the iommufd feature in environments where it is not needed; for example, set appropriate sysctl values or pass kernel command‑line parameters to enforce a safe maximum size.
  • Continuously monitor system logs for –ENOMEM return codes from iommufd calls and watch overall memory usage to detect potential atomic memory exhaustion; configure alerts if usage approaches critical thresholds.

Generated by OpenCVE AI on August 13, 2026 at 12:03 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8726-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8727-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-1 Linux kernel (GCP) vulnerabilities
Ubuntu USN Ubuntu USN USN-8760-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8726-2 Linux kernel (Raspberry Pi) vulnerabilities
Ubuntu USN Ubuntu USN USN-8726-3 Linux kernel (IBM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8800-1 Linux kernel (NVIDIA BaseOS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8760-2 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8726-4 Linux kernel 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
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-401
Type Values Removed Values Added
Weaknesses CWE-789
Type Values Removed Values Added
Weaknesses CWE-770
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-789
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: iommufd: Move vevent memory allocation outside spinlock The veventq memory allocation happens inside the spinlock. Given its depth is decided by the user space, this leaves a vulnerability, where userspace can allocate large queues to exhaust atomic memory reserves. Move the allocation outside the spinlock and use GFP_NOWAIT, which can fail fast under memory pressure without dipping into the GFP_ATOMIC reserves or direct-reclaiming from the threaded IRQ handler. On allocation failure, queue the lost_events_header (so userspace learns of the drop) and return -ENOMEM so the caller learns of the kernel-side memory pressure. This is intentionally distinct from the queue-overflow path, which also queues the lost_events_header but returns 0: a full queue is an expected userspace-pacing condition rather than a kernel error. A subsequent change will cap the upper bound of the veventq_depth.
Title iommufd: Move vevent memory allocation outside spinlock
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-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 6, 2026, 4:34 PM
Reserved
Jul 19, 2026, 3:36 PM
Status
Analyzed
Published
Jul 25, 2026, 10:17 AM
Modified
Nov 6, 2026, 5:18 PM
Severity
Moderate
Public date
Jul 25, 2026, 12:00 AM