Skip to contentSkip to conversation

CVE-2026-90240: iommu/vt-d: Flush context cache with correct SID when tearing down aliases

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

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 context cache with correct SID when tearing down aliases

domain_context_clear_one() and device_pasid_table_teardown() are both invoked once per DMA alias of a device. Each function locates the context entry using the bus/devfn pair provided by the pci_for_each_dma_alias() callback, then calls intel_context_flush_no_pasid(), which constructs a device-selective context-cache invalidation from info->bus and info->devfn (that is, always the requester ID of the device itself).

As a result, for every alias other than the device’s own RID, the context entry that was just cleared in memory is never invalidated in the context cache. Hardware may continue using that stale cached entry. In the scalable-mode teardown path, intel_pasid_free_table() can then free the PASID directory still referenced by that stale entry, allowing the IOMMU to walk freed memory.

Fix this by passing the source ID of the entry being torn down to intel_context_flush_no_pasid(), instead of deriving it from @info.

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

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

	Issue introduced in 6.11 with commit f90584f4beb84211c4d21b319cc13f391fe9f3c2 and fixed in 6.18.52 with commit a803141597d61dc0511f7cd849625e17d042ca8a
	Issue introduced in 6.11 with commit f90584f4beb84211c4d21b319cc13f391fe9f3c2 and fixed in 7.2.6 with commit 5baddf100b3be730912485648cbaae5e3a251923
	Issue introduced in 6.11 with commit f90584f4beb84211c4d21b319cc13f391fe9f3c2 and fixed in 7.3-rc1 with commit c54e4ae971b98e8d650400137d332cee56c03f55

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

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/iommu.c
drivers/iommu/intel/iommu.h
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/a803141597d61dc0511f7cd849625e17d042ca8a
	https://git.kernel.org/stable/c/5baddf100b3be730912485648cbaae5e3a251923
	https://git.kernel.org/stable/c/c54e4ae971b98e8d650400137d332cee56c03f55