Linux
vfio/pci: Clean up DMABUFs before disabling function
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 5d74781ebc86c5fa9e9d6934024c505412de9b52, < 4f1000a30f67cf7d328059242776a858611d5ef9
- >= 5d74781ebc86c5fa9e9d6934024c505412de9b52, < d97708701434ce72968e771976aaf9d3438fcafd
Fixed in 4f1000a30f67cf7d328059242776a858611d5ef9, d97708701434ce72968e771976aaf9d3438fcafd
- 6.19
Fixed in 0, 7.0.10, 7.1
Mitigation
Upgrade Linux to 4f1000a30f67cf7d328059242776a858611d5ef9 or d97708701434ce72968e771976aaf9d3438fcafd or later.
Upgrade Linux to 0 or 7.0.10 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.