CVE-2026-90243: iommu/vt-d: Clear Present bit before tearing down copied context entry
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
iommu/vt-d: Clear Present bit before tearing down copied context entry
copied_context_tear_down() zeroes the 128-bit context entry with context_clear_entry() while the Present bit is still set, and only then issues the context-cache and IOTLB invalidations. This leaves a window in which hardware can fetch a torn entry, with some fields already zeroed while Present is still set, leading to unpredictable behaviour or spurious faults. While x86 provides strong write ordering, the compiler may reorder the writes to the two 64-bit halves of the entry, and the hardware fetch is not guaranteed to be atomic with respect to multiple CPU writes.
There is no cacheline flush before the invalidation either, so on an IOMMU without coherent access to the context table the zeroed entry may not be visible to hardware at the point the invalidation is submitted.
Apply the same ownership handshake described in the VT-d spec, Section 6.5.3.3 ("Guidance to Software for Invalidations"): clear only the Present bit, flush it out to the IOMMU, perform the invalidations, and only then zero the remainder of the entry.
The Linux kernel CVE team has assigned CVE-2026-90243 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.12 with commit c7191984e5aade540f1a3845a116537c89572655 and fixed in 6.12.110 with commit 97750a8dce79c1a9b2b2d2a020b61b800141996c Issue introduced in 6.12 with commit c7191984e5aade540f1a3845a116537c89572655 and fixed in 6.18.52 with commit 3c88cfedc7768b1ae2dc7ddc71547ae9a1aaff7d Issue introduced in 6.12 with commit c7191984e5aade540f1a3845a116537c89572655 and fixed in 7.2.6 with commit 6b822d18c33af9d1e16a8e5e6aa6e656987b09de Issue introduced in 6.12 with commit c7191984e5aade540f1a3845a116537c89572655 and fixed in 7.3-rc1 with commit f532c57985b1a7d6b7e37e05506b46d413e5cca4
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-90243
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
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/97750a8dce79c1a9b2b2d2a020b61b800141996c https://git.kernel.org/stable/c/3c88cfedc7768b1ae2dc7ddc71547ae9a1aaff7d https://git.kernel.org/stable/c/6b822d18c33af9d1e16a8e5e6aa6e656987b09de https://git.kernel.org/stable/c/f532c57985b1a7d6b7e37e05506b46d413e5cca4