CVE-2026-31735: iommupt: Fix short gather if the unmap goes into a large mapping
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
iommupt: Fix short gather if the unmap goes into a large mapping
unmap has the odd behavior that it can unmap more than requested if the ending point lands within the middle of a large or contiguous IOPTE.
In this case the gather should flush everything unmapped which can be larger than what was requested to be unmapped. The gather was only flushing the range requested to be unmapped, not extending to the extra range, resulting in a short invalidation if the caller hits this special condition.
This was found by the new invalidation/gather test I am adding in preparation for ARMv8. Claude deduced the root cause.
As far as I remember nothing relies on unmapping a large entry, so this is likely not a triggerable bug.
The Linux kernel CVE team has assigned CVE-2026-31735 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.19 with commit 7c53f4238aa8bfb476e177263133ead2eeb8d55d and fixed in 6.19.12 with commit 50ecd96a28f712f8b682c0441f4cb9b086d28816 Issue introduced in 6.19 with commit 7c53f4238aa8bfb476e177263133ead2eeb8d55d and fixed in 7.0 with commit ee6e69d032550687a3422504bfca3f834c7b5061
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-31735
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/generic_pt/iommu_pt.h
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/50ecd96a28f712f8b682c0441f4cb9b086d28816 https://git.kernel.org/stable/c/ee6e69d032550687a3422504bfca3f834c7b5061