CVE-2026-53322

vfio/pci: Clean up DMABUFs before disabling function

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

vfio/pci: Clean up DMABUFs before disabling function

On device shutdown, make vfio_pci_core_close_device() call
vfio_pci_dma_buf_cleanup() before the function is disabled via
vfio_pci_core_disable(). This ensures that all access via DMABUFs is
revoked before the function's BARs become inaccessible.

This fixes an issue where, if the function is disabled first, a tiny
window exists in which the function's MSE is cleared and yet BARs
could still be accessed via the DMABUF. The resources would also be
freed and up for grabs by a different driver.

Analysis

AI-generated

Technical impact

The Linux kernel VFIO‑PCI subsystem contained a race condition in device shutdown. The function associated with a PCI device was disabled before the kernel cleaned up its DMA buffer (DMABUF) references. During the narrow window between disabling the function and clearing the Memory Selection Enable bit, a DMABUF handle could still access the device's Base Address Registers (BARs). This permitted an attacker to read or write hardware registers and memory that should have been protected, which could be used to manipulate device internals and potentially elevate privileges or destabilise the system. Although the advisory does not explicitly state privilege escalation, the ability to access protected device registers is inferred to enable such an outcome.

Affected Systems

All Linux kernel releases prior to the commit series referenced in the CVE links are affected. The vulnerability resides in the vfio_pci module of the kernel source; any kernel image that does not include the linked patches is vulnerable. Systems that run kernels lacking those changes must upgrade.

Risk and Exploitability

The flaw carries a CVSS score of 8.8, denoting high severity, and an EPSS score of <1%, indicating a low probability of exploitation in the wild. It is not listed in CISA’s KEV catalog. Exploitation requires a process with sufficient privileges to trigger a VFIO‑PCI device shutdown or to load a malicious driver that performs the race. The likely attack vector therefore involves an elevated or compromised driver or privileged user initiating the device shutdown, creating the narrow race window for exploitation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the kernel patch that incorporates the commits linked in the CVE references
  • Reboot the system to load the updated kernel
  • Disable the VFIO‑PCI module or restrict its loading to trusted drivers if the device is not needed

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

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8566-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8568-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8569-1 Linux kernel (HWE) vulnerabilities
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-419
CWE-829
Type Values Removed Values Added
Weaknesses CWE-419
CWE-829
Type Values Removed Values Added
Weaknesses CWE-409
Type Values Removed Values Added
Metrics cvssV3_1

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

Type Values Removed Values Added
Weaknesses CWE-409
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: vfio/pci: Clean up DMABUFs before disabling function On device shutdown, make vfio_pci_core_close_device() call vfio_pci_dma_buf_cleanup() before the function is disabled via vfio_pci_core_disable(). This ensures that all access via DMABUFs is revoked before the function's BARs become inaccessible. This fixes an issue where, if the function is disabled first, a tiny window exists in which the function's MSE is cleared and yet BARs could still be accessed via the DMABUF. The resources would also be freed and up for grabs by a different driver.
Title vfio/pci: Clean up DMABUFs before disabling function
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-415

    Double Free

  • CWE-826

    Premature Release of Resource During Expected Lifetime

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Sep 9, 2026, 12:04 PM
Reserved
Jun 9, 2026, 7:44 AM
Status
Modified
Published
Jun 26, 2026, 8:17 PM
Modified
Sep 9, 2026, 1:20 PM
Severity
Important
Public date
Jun 26, 2026, 12:00 AM