CVE-2026-53312: iommu/riscv: Remove overflows on the invalidation path
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
iommu/riscv: Remove overflows on the invalidation path
Since RISC-V supports a sign extended page table it should support a gather->end of ULONG_MAX, but if this happens it will infinite loop because of the overflow.
Also avoid overflow computing the length by moving the +1 to the other side of the <
The Linux kernel CVE team has assigned CVE-2026-53312 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.13 with commit 488ffbf181718b9ad8c1838cb249d60973e78eda and fixed in 6.18.33 with commit 9f0632b0d4246675fa221aa1a3bffadf9c6bd9ac Issue introduced in 6.13 with commit 488ffbf181718b9ad8c1838cb249d60973e78eda and fixed in 7.0.10 with commit e4b7687784153481de45fd39fb97ba3919605c0c Issue introduced in 6.13 with commit 488ffbf181718b9ad8c1838cb249d60973e78eda and fixed in 7.1 with commit 40a13b49957937427bc23e78eb50679df4396a47
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-53312
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/riscv/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/9f0632b0d4246675fa221aa1a3bffadf9c6bd9ac https://git.kernel.org/stable/c/e4b7687784153481de45fd39fb97ba3919605c0c https://git.kernel.org/stable/c/40a13b49957937427bc23e78eb50679df4396a47