CVE-2026-100067: iommufd: Keep dmabuf PFNs MMIO when filling another domain
In the Linux kernel, the following vulnerability has been resolved:
iommufd: Keep dmabuf PFNs MMIO when filling another domain
A VFIO PCI dmabuf mapped into an IOAS is mapped with IOMMUMMIO only in the domains present when it is mapped. A domain added later, or a copy of the area into another IOAS, maps the same BAR as cacheable CPU memory: IOMMUCACHE set and IOMMUMMIO clear.
Once the area is in pages->domainsitree, pfnreaderfillspan() reads its PFNs back from the storage domain through batchfromdomain(), which adds them with batchaddpfn() as BATCHCPUMEMORY. Only a hole in the span reaches pfnreaderfilldmabuf() and gets BATCHMMIO, so batchtodomain() programs the later domain with the wrong prot.
The effect depends on the page table format. io-pgtable-arm maps the BAR as Normal cacheable instead of Device memory, the AMDv1 and x8664 genericpt formats set the SME C-bit on it when the tables are encrypted, and the RISC-V format with Svpbmt maps it as normal memory instead of IO.
Read dmabuf PFNs from the recorded phys for every span, before the xarray and domain paths. The phys range is always available, and the read-back from a domain only serves to avoid re-pinning user pages.
Sashiko pointed this out while reviewing an RFC that plumbs the dma-buf memory type through pfnreaderfilldmabuf().
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1
Event History
Frequently Asked Questions
Which configurations are exposed to the incorrect mapping attributes?
The issue affects VFIO PCI DMA-BUF mappings in an IOAS when the same BAR is later mapped into a newly added domain or when the area is copied into another IOAS. Domains present when the DMA-BUF was initially mapped receive the MMIO mapping attribute correctly.
What platform-specific effects can result from the wrong mapping type?
On io-pgtable-arm, the BAR can be mapped as Normal cacheable memory rather than Device memory. AMDv1 and x86_64 generic_pt can set the SME C-bit when page tables are encrypted, while RISC-V with Svpbmt can map the BAR as normal memory instead of I/O.