Skip to contentSkip to conversation

CVE-2026-43130: iommu/vt-d: Flush dev-IOTLB only when PCIe device is accessible in scalable mode

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 6

lore
Share & tools
lore
#0 lore raw

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

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

iommu/vt-d: Flush dev-IOTLB only when PCIe device is accessible in scalable mode

Commit 4fc82cd907ac ("iommu/vt-d: Don't issue ATS Invalidation request when device is disconnected") relies on pci_dev_is_disconnected() to skip ATS invalidation for safely-removed devices, but it does not cover link-down caused by faults, which can still hard-lock the system.

For example, if a VM fails to connect to the PCIe device, "virsh destroy" is executed to release resources and isolate the fault, but a hard-lockup occurs while releasing the group fd.

Call Trace:
 qi_submit_sync
 qi_flush_dev_iotlb
 intel_pasid_tear_down_entry
 device_block_translation
 blocking_domain_attach_dev
 __iommu_attach_device
 __iommu_device_set_domain
 __iommu_group_set_domain_internal
 iommu_detach_group
 vfio_iommu_type1_detach_group
 vfio_group_detach_container
 vfio_group_fops_release
 __fput

Although pci_device_is_present() is slower than pci_dev_is_disconnected(), it still takes only ~70 µs on a ConnectX-5 (8 GT/s, x2) and becomes even faster as PCIe speed and width increase.

Besides, devtlb_invalidation_with_pasid() is called only in the paths below, which are far less frequent than memory map/unmap.

1. mm-struct release
2. {attach,release}_dev
3. set/remove PASID
4. dirty-tracking setup

The gain in system stability far outweighs the negligible cost of using pci_device_is_present() instead of pci_dev_is_disconnected() to decide when to skip ATS invalidation, especially under GDR high-load conditions.

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

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

	Issue introduced in 5.10.214 with commit f873b85ec762c5a6abe94a7ddb31df5d3ba07d85 and fixed in 5.10.252 with commit 581ce094d9eafb78ec4f9de77bd24b780c151236
	Issue introduced in 5.15.153 with commit d70f1c85113cd8c2aa8373f491ca5d1b22ec0554 and fixed in 5.15.202 with commit e2c78c69f8faf2885ea4ceee08c71ac738f401a0
	Issue introduced in 6.1.83 with commit 34a7b30f56d30114bf4d436e4dc793afe326fbcf and fixed in 6.1.165 with commit ead67d0378e90f419e385a43af29435242d80c12
	Issue introduced in 6.6.23 with commit 2b74b2a92e524d7c8dec8e02e95ecf18b667c062 and fixed in 6.6.128 with commit 01aed2f1d7cb8fdf4c60c5bb4727608cb82b401d
	Issue introduced in 6.9 with commit 4fc82cd907ac075648789cc3a00877778aa1838b and fixed in 6.12.75 with commit 9813306610d0d718c863aaa70928bf57d7570ec0
	Issue introduced in 6.9 with commit 4fc82cd907ac075648789cc3a00877778aa1838b and fixed in 6.18.16 with commit 9deaacc8dcaddb6ddc5b52e1e63b457450ec0f94
	Issue introduced in 6.9 with commit 4fc82cd907ac075648789cc3a00877778aa1838b and fixed in 6.19.6 with commit 0da6697e577023d8867c7beb2d16a22510e4eea9
	Issue introduced in 6.9 with commit 4fc82cd907ac075648789cc3a00877778aa1838b and fixed in 7.0 with commit 10e60d87813989e20eac1f3eda30b3bae461e7f9
	Issue introduced in 6.7.11 with commit c04f2780919f20e2cc4846764221f5e802555868
	Issue introduced in 6.8.2 with commit 025bc6b41e020aeb1e71f84ae3ffce945026de05

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-43130

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/iommu/intel/pasid.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/581ce094d9eafb78ec4f9de77bd24b780c151236
	https://git.kernel.org/stable/c/e2c78c69f8faf2885ea4ceee08c71ac738f401a0
	https://git.kernel.org/stable/c/ead67d0378e90f419e385a43af29435242d80c12
	https://git.kernel.org/stable/c/01aed2f1d7cb8fdf4c60c5bb4727608cb82b401d
	https://git.kernel.org/stable/c/9813306610d0d718c863aaa70928bf57d7570ec0
	https://git.kernel.org/stable/c/9deaacc8dcaddb6ddc5b52e1e63b457450ec0f94
	https://git.kernel.org/stable/c/0da6697e577023d8867c7beb2d16a22510e4eea9
	https://git.kernel.org/stable/c/10e60d87813989e20eac1f3eda30b3bae461e7f9