Skip to contentSkip to conversation

CVE-2026-53322: vfio/pci: Clean up DMABUFs before disabling function

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 26

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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.

The Linux kernel CVE team has assigned CVE-2026-53322 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.19 with commit 5d74781ebc86c5fa9e9d6934024c505412de9b52 and fixed in 7.0.10 with commit 4f1000a30f67cf7d328059242776a858611d5ef9
	Issue introduced in 6.19 with commit 5d74781ebc86c5fa9e9d6934024c505412de9b52 and fixed in 7.1 with commit d97708701434ce72968e771976aaf9d3438fcafd

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-53322

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
drivers/vfio/pci/vfio_pci_core.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/4f1000a30f67cf7d328059242776a858611d5ef9
	https://git.kernel.org/stable/c/d97708701434ce72968e771976aaf9d3438fcafd