CVE-2026-99568: iommufd/iova_bitmap: Ensure that iova_bitmap_set() handles the full IOVA
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
iommufd/iova_bitmap: Ensure that iova_bitmap_set() handles the full IOVA
Generally userspace is going to step the dirty bitmap through the IOVA space. However if the bitmap ends in the middle of a large PTE this is problematic. The first step will clear the dirty bit and report dirty to the end of its bitmap while the second step will see the clear'd dirty and report clean for the start of the bitmap. If it happens this ends up losing dirties.
Further this function is missing bounds checking so if this does happen ther is a good chance it will write memory beyond what the userspace was expecting.
Return an error code if this illegal condition happens.
The Linux kernel CVE team has assigned CVE-2026-99568 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.1 with commit 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1 and fixed in 6.12.118 with commit f41d317be00767e81ce0a664fa37ab829654ab8d Issue introduced in 6.1 with commit 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1 and fixed in 6.18.64 with commit 63ff69e265bec1712d2b7105e7c1556f73a3080f Issue introduced in 6.1 with commit 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1 and fixed in 7.3.5 with commit dd2f8565e68cac312451926ce2e3883923caf081 Issue introduced in 6.1 with commit 58ccf0190d19d9a8a41f8a02b9e06742b58df4a1 and fixed in 7.4-rc1 with commit e21952d72b4740f08a272d694cca223b6b0099ca
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-99568
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/iommufd/iova_bitmap.c
include/uapi/linux/iommufd.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/f41d317be00767e81ce0a664fa37ab829654ab8d https://git.kernel.org/stable/c/63ff69e265bec1712d2b7105e7c1556f73a3080f https://git.kernel.org/stable/c/dd2f8565e68cac312451926ce2e3883923caf081 https://git.kernel.org/stable/c/e21952d72b4740f08a272d694cca223b6b0099ca