CVE-2026-99568: Linux kernel iommufd dirty-page bitmap writes past the caller’s buffer when the requested range ends inside a large page-table entry

ByLinuxtastic

December 1, 2026 #CVE, #Linux Kernel

Live migration of a VM with a passed-through device needs to know which guest pages the device wrote, and iommufd provides that as a dirty bitmap over IOVA space that user space reads in steps. The kernel CNA record describes what happened when a step ended in the wrong place: “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.” Red Hat rates it Important at 7.8, Ubuntu Low because the interface is root-only, SUSE Moderate. If a host uses iommufd (VFIO with the iommufd backend, dirty tracking for migration) and anyone but the administrator can open /dev/iommu, upgrade it to a kernel at or above 6.1.193, 6.6.163, 6.12.118, 6.18.64 or 7.3.5 and reboot.

CVE-2026-99568 at a glance.

ComponentLinux kernel, iommufd: iova_bitmap_set() in drivers/iommu/iommufd/iova_bitmap.c, the helper that marks IOVA ranges dirty in the bitmap user space supplied to IOMMU_HWPT_GET_DIRTY_BITMAP; the uAPI comment in include/uapi/linux/iommufd.h
Affected versionsmainline 6.1 up to 7.4-rc1 (from commit 58ccf019, “vfio: Add an IOVA bitmap support”); 6.1.x below 6.1.193, 6.6.x below 6.6.163, 6.12.x below 6.12.118, 6.18.x below 6.18.64, 7.3.x below 7.3.5. Kernels before 6.1 have no IOVA bitmap
Fixed inmainline 7.4-rc1 (commit e21952d7, the one Debian and Ubuntu cite) and stable 6.1.193, 6.6.163, 6.12.118, 6.18.64, 7.3.5; six fix commits in the record. The fix rejects a set whose range falls outside the bitmap with -EPROTO instead of writing, and documents that a requested range must fully enclose any page-table entry it touches; 18 lines added in two files
SeverityRed Hat Important, CVSS 3.1 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H), CWE-787, score marked draft; Ubuntu Low (“exploitation requires root or equivalent administrative privileges to access /dev/iommu”, which is mode 0660, plus a device bound to VFIO); SUSE Moderate, 5.5 (A:H only); the kernel CNA gives no score and NVD is Received with no score, CWE or CPE. The vendors differ on who can reach the interface
Exploited in the wildNot on the CISA KEV catalogue (2026.11.30). EPSS 0.00206 (11th percentile) on 1 December 2026
Who is exposedHosts that use iommufd for device assignment with dirty tracking, which is the VFIO iommufd backend in QEMU and other VMMs when a device supports IOMMU dirty tracking, and on which a process other than the administrator can open /dev/iommu and bind a device. Red Hat’s statement: it “requires local attacker with iommufd interface access, unprivileged users without device access cannot trigger” it. The write goes to the bitmap buffer user space supplied, so the memory corrupted is the caller’s own mapping; the kernel-side risk is in what the write does to that mapping and to the kernel’s accounting of it
PublishedCVE record 20 November 2026 (kernel CNA, updated 23 November with the stable backports); this page built 1 December 2026, last updated 1 December 2026

What it is

An IOMMU that tracks dirty pages records them per page-table entry, and a large entry, a 2 MiB or 1 GiB mapping, has one dirty bit for the whole range. iommufd exposes the dirty state through IOMMU_HWPT_GET_DIRTY_BITMAP: user space passes an IOVA range and a bitmap buffer, the kernel walks the page tables for that range, and for each dirty entry it calls iova_bitmap_set() with the entry’s whole IOVA extent. A VMM that reads the bitmap in steps, which is how migration loops work, can choose a step boundary that lands inside a large entry. The record describes both consequences. The first step sees the entry dirty, reports it to the end of its own bitmap, and clears the bit as part of the read; the second step starts inside the same entry, sees it clean, and reports clean, so the part of the entry that fell into the second step is never reported, which is the lost dirties. The second consequence is the CVE: iova_bitmap_set() was told to mark the whole entry, the entry extends past the end of the first step’s bitmap, and the function had no bounds check, so it wrote past the buffer.

The fix on GitHub, by Andrea Parri and committed by Jason Gunthorpe, adds a check at the top of iova_bitmap_set(): a zero length, a length larger than the bitmap, a start below the bitmap’s IOVA or a range that runs past its end returns early and records -EPROTO in the bitmap’s error field if none is set, so the ioctl fails instead of writing. The uAPI header gains a comment on struct iommu_hwpt_get_dirty_bitmap saying the IOVA range must fully enclose any page-table entry it touches, that the ioctl fails if the range starts or ends inside a dirty entry, and that after such a failure the dirty state is unknown and user space must restart its read. The fix is therefore a contract change as much as a bounds check: a VMM that chose bad step boundaries now gets an error where it used to get silently wrong data.

Who can get there is the whole of the severity argument. /dev/iommu is root-owned and group-readable by nobody by default, and using it needs a device bound to VFIO, which is why Ubuntu rates the record Low and SUSE scores only availability. Red Hat’s 7.8 is the standard local-privileged-to-kernel-memory vector and its statement says the same thing about who can trigger it; the difference is one of policy about how to score an interface that a host may have handed to a non-root VMM user. A host that runs QEMU as a dedicated user with access to /dev/iommu, which libvirt setups do, has a user in that position. git.kernel.org and lore.kernel.org refused our reader, so the backports are described from the record and the mainline commit from its GitHub mirror.

Who is affected on Linux

Each row is what the distribution’s own security tracker said on 1 December 2026; the link in the row is the tracker page, which will be newer than this one. The IOVA bitmap arrived in 6.1, so 5.x kernels and RHEL 8 are out of range; on 1 December only Debian trixie-security and openSUSE Tumbleweed had the fix out.

DistributionStatusFixed package
AlpineNot consulted for this page—
DebianFixed in trixie-security (6.12.118-1), forky and sid (7.3.6-1); trixie (6.12.117-1) and bookworm (6.1.192-3) vulnerable; no DSA named on the pagetrixie 6.12.118-1; unstable 7.3.5-1; nothing for bookworm on 1 December 2026
UbuntuLow (root needed for /dev/iommu); linux needed in 26.04 LTS and 24.04 LTS, pending in 26.10 (7.3.0-12.13); 22.04 and older not affected; no USNnothing released on 1 December 2026
RHEL, Rocky, Alma, CentOS StreamImportant, 7.8, CWE-787 (bug 2577664, “out-of-bounds memory write in iommufd via missing bounds check in IOVA bitmap”); RHEL 9 and 10 affected, RHEL 8 and older not affected; OpenShift CoreOS 9 and 10 images affected; no errata on 1 Decembernot yet
openSUSE/SLEModerate, 5.5, state Pending, bug 1291029; affected on SLE 15 SP7, 16.1, SL Micro 6.0 and 6.1, Leap 16.1; 16.0, SL Micro 6.2, Leap 16.0 and every LTSS line not affectednothing for SLE on 1 December 2026
Fedora, Arch; self-built kernelsNot consulted; upstream stable versions apply6.1.193 / 6.6.163 / 6.12.118 / 6.18.64 / 7.3.5 or later

How to check

Three questions, in order: which kernel is running, is iommufd in use at all, and who can open the device. The third is the precondition every vendor argues about; the first two decide whether the argument matters on this host.

# 1. the running kernel (compare with the fixed stable version for its series)
uname -r

# 2. is iommufd built and in use (the device node, the module, and VMMs holding it open)
ls -l /dev/iommu 2>/dev/null
lsmod | grep -E '^(iommufd|vfio_iommufd)'
grep -l iommufd /proc/*/maps 2>/dev/null | head; fuser -v /dev/iommu 2>/dev/null
# a QEMU on the iommufd backend has "-object iommufd" or "iommufd=" on its command line
pgrep -af 'qemu' | grep -E 'iommufd'

# 3. the precondition: who can open /dev/iommu, and are any devices bound to vfio-pci
stat -c '%U:%G %a' /dev/iommu 2>/dev/null; getfacl /dev/iommu 2>/dev/null | grep -E '^(user|group):'
ls /sys/bus/pci/drivers/vfio-pci/ 2>/dev/null | grep -E '^[0-9a-f]{4}:'

A kernel at or above the fixed stable version for its series is done. A host with no /dev/iommu, or one nobody holds open, is not in the path; so is a host whose VFIO still uses the legacy container interface rather than iommufd. A host with a VMM on the iommufd backend is in range, and the question is which user that VMM runs as: if it is root, the bug is a crash a root process can cause itself with a bad step boundary, which is a bug but not an escalation; if it is a dedicated account with access to the device, that account is the attacker in every vendor’s vector. The fixed kernel’s symptom is new: an IOMMU_HWPT_GET_DIRTY_BITMAP ioctl that fails with EPROTO where it used to succeed, which means the VMM chose a range that splits a large entry and must restart its read.

How to fix it

Install the fixed kernel and reboot the host; a VM with a passed-through device cannot be live-migrated off a host while the dirty-tracking code under it is the thing being replaced, so plan the reboot as a maintenance window for those guests. Debian trixie-security and Tumbleweed had the fix out on 1 December; Ubuntu, Red Hat and SUSE’s enterprise kernels were pending.

# Debian trixie-security / forky / sid
apt update && apt install linux-image-amd64 && systemctl reboot       # or linux-image-arm64
# Ubuntu, RHEL family, SUSE: when the pending builds land
apt update && apt full-upgrade && systemctl reboot
dnf upgrade kernel && systemctl reboot
zypper patch && systemctl reboot
uname -r

Until the reboot, the control is access to the device: /dev/iommu should be openable only by the account that runs the VMM, and that account should be the one the host already trusts with the assigned device, since VFIO already gives it DMA from the device into guest memory. There is no sysctl or module option that bounds the bitmap write. What not to do: do not disable IOMMU dirty tracking in the VMM to avoid this on a host that migrates guests; the fallback is a full-copy migration or none, and the fixed kernel’s new error is the safer version of the same configuration. And read the uAPI note with the fix: a VMM updated to handle EPROTO is part of the fix on hosts where the step boundaries are the VMM’s to choose.

Sources

  • CVE-2026-99568 at CVE.org — the kernel CNA record (20 November 2026, updated 23 November): the commit message with the large-PTE step case and the “write memory beyond what the userspace was expecting” sentence, the git and version ranges, drivers/iommu/iommufd/iova_bitmap.c, include/uapi/linux/iommufd.h
  • Fix commits on git.kernel.org: e21952d7 (mainline, 7.4-rc1) and the backports dc089da0, 668874bf, f41d317b, 63ff69e2, dd2f8565; git.kernel.org refuses automated readers, so the mainline commit was read on GitHub: Andrea Parri, committed by Jason Gunthorpe, the Fixes: 58ccf019 tag, the bounds check with -EPROTO and the uAPI comment on iommu_hwpt_get_dirty_bitmap
  • NVD entry — Received on 20 November 2026; no NVD score, CWE or CPE on 1 December
  • Distribution trackers: Debian (trixie-security 6.12.118-1 fixed, trixie and bookworm vulnerable) · Ubuntu (Low; needed in 26.04 and 24.04, 26.10 pending) · Red Hat (Important 7.8, CWE-787, RHEL 9 and 10 affected, no errata; bug 2577664) · SUSE (Moderate 5.5; bug 1291029)
  • CISA KEV catalogue 2026.11.30, not listed · EPSS 0.00206 (percentile 0.112) on 1 December 2026

Related reading

This advisory page was assembled from the primary sources listed above on 1 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.