Skip to contentSkip to conversation

CVE-2026-99586: iommu/arm-smmu-v3: Handle ARM erratum for CONT under invalidation with SVA

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 20

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/arm-smmu-v3: Handle ARM erratum for CONT under invalidation with SVA

The erratum (MMU-700: #3777127, S3: #3673557) deals with under invalidation of a CONT PTE grouping in the SMMU. The recommended work around is to use a range invalidation that spans the entire CONT. The only user of CONT in the kernel right now is through SVA sharing a CPU page table that contains a CONT created by the mm.

Previously it was thought that this errata was dealt with because the driver always uses range invalidation. However, there is a subtle detail in the errata that the invalidation range must fully enclose the entire CONT for it to work.

It seems that two sequential range invalidations, with a split point falling inside a CONT grouping, will not prevent the errata.

The SMMU's range invalidation generation algorithm does not produce a single invalidation for a single SVA invalidation request, nor does the mm carefully align the SVA invalidation ranges to accommodate the splitting of the invalidation into several ranges.

Thus, when processing a SVA invalidation, the range invalidation splitting routine can generate a range invalidation that is split in the middle of the CONT and risk under invalidation from this errata. This condition could be triggered by a malicious userspace manipulating the TLB gathers via mmap/mprotect/munmap.

Update the errata list to the include the S3 variation, detect the IOMMUs that have it, and then have SVA invalidations use a simplified version of the over invalidation algorithm from the tlbi rework series. This ensures that a single range invalidation is issued for a single MMU notifier callback and now the range invalidation is guarenteed to cover any posible CONT.

Future work to add CONT to iommu_domain page tables should either use this one-invalidate/one-range invalidation algorithm or disable CONT support in the iommu_domain.

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

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

	Issue introduced in 5.10 with commit 3f1ce8e85ee06dbe6a8b2e037e9b35f6b32e9ab3 and fixed in 7.3.5 with commit 96ecddc5141c967c5a59fa85ccbdfdb3cec61209
	Issue introduced in 5.10 with commit 3f1ce8e85ee06dbe6a8b2e037e9b35f6b32e9ab3 and fixed in 7.4-rc1 with commit 84c6089a365ff5547f9ea30cb407dc5fe3124fd3

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

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:

	Documentation/arch/arm64/silicon-errata.rst
	drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3-sva.c
	drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c
	drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.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/96ecddc5141c967c5a59fa85ccbdfdb3cec61209
	https://git.kernel.org/stable/c/84c6089a365ff5547f9ea30cb407dc5fe3124fd3