CVE-2026-99809: Linux kernel vfio-platform leaves VM_MAYWRITE on read-only region mappings, so userspace can upgrade them to writable with mprotect()

ByLinuxtastic

December 2, 2026 #CVE, #Linux Kernel

The vfio-platform driver hands MMIO regions of platform devices to userspace, usually to a VMM or a DPDK-style application, through mmap(). The kernel CNA record says vfio_platform_mmap() “rejects writable mappings of regions without the WRITE flag, but leaves VM_MAYWRITE set. Userspace can map such a region read-only and then upgrade the mapping to writable with mprotect().” The same pattern was fixed in drm/vc4 (CVE-2026-68445), drm/panthor (CVE-2024-53071) and the vmclock PTP driver, and the record is candid that this one is “defensive hardening: no in-tree platform driver currently publishes a region without the WRITE flag.” Red Hat nevertheless rates it Important. On hosts that use vfio-platform, take the kernel update when your distribution ships it; there is nothing to do by hand, and nothing in-tree to exploit today.

CVE-2026-99809 at a glance.

ComponentLinux kernel, VFIO platform driver (drivers/vfio/platform/vfio_platform_common.c, function vfio_platform_mmap()); the vfio-platform and vfio-amba modules
Affected versionsfrom fad4d5b1f042 (“vfio/platform: support MMAP of MMIO regions”): 4.1 up to 5.10 before 5.10.276, 5.15 before 5.15.227, 6.6 before 6.6.163, 6.12 before 6.12.119, 6.18 before 6.18.65, 7.3 before 7.3.6 and 7.4 before 7.4-rc1. The CVE record was updated on 1 December 2026 to add the 5.10 and 5.15 backports; NVD’s copy, read on 2 December 2026, still lists only five fix commits
Fixed inmainline 7.4-rc1 (commit 420bed91, Abdifatah Suruur, authored 29 September 2026, committed by Alex Williamson; vfio_platform_common.c +7/−3: still returns -EINVAL for a writable mapping of a non-WRITE region and additionally calls vm_flags_clear(vma, VM_MAYWRITE)) and stable 5.10.276, 5.15.227, 6.6.163, 6.12.119, 6.18.65, 7.3.6. Reviewed by Mostafa Saleh, Eric Auger and Pranjal Shrivastava; no Reported-by and no Cc: stable trailer
SeverityRed Hat Important (on the hydra bulk list of Important kernel CVEs read on 2 December 2026, which carried 7.1 for this id; the per-CVE page refused the automated reader, so the vector and bug number are not stated here); SUSE 5.7 Moderate (AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:H/A:H); Ubuntu Medium; the kernel CNA gives no score and NVD (Received, 25 November) carries none
Exploited in the wildNot on the CISA KEV catalogue (2026.11.30). EPSS 0.00304 (25th percentile) on 1 December 2026
Who is exposedA host with vfio-platform bound to a device whose driver publishes a region without VFIO_REGION_INFO_FLAG_WRITE, and a process that holds that device’s /dev/vfio/N group file, normally root or a user granted it for a VMM. The record says no in-tree driver publishes such a region, so today the exposure is out-of-tree reset-handler or vendor drivers, or a future one
PublishedCVE record 25 November 2026 (kernel CNA), updated 1 December 2026; this page built 2 December 2026, last updated 2 December 2026

What it is

A VMA carries two kinds of write permission: VM_WRITE, what the mapping is right now, and VM_MAYWRITE, what mprotect() is allowed to turn it into later. A driver that wants a mapping to be permanently read-only has to clear both; refusing PROT_WRITE at mmap() time and leaving VM_MAYWRITE alone only moves the writable mapping one system call later. The i915 driver clears the flag for its read-only objects, and the same oversight was fixed in drm/vc4 (CVE-2026-68445), drm/panthor (CVE-2024-53071) and the vmclock PTP device.

vfio-platform had the oversight too. Its region descriptors have a VFIO_REGION_INFO_FLAG_WRITE bit, and vfio_platform_mmap() returned -EINVAL when userspace asked for a writable mapping of a region without it, but did nothing about VM_MAYWRITE. A process could therefore map the region read-only and then upgrade it with mprotect(PROT_READ|PROT_WRITE), writing to device registers the driver had declared read-only. What that achieves depends entirely on the device behind the region, which is why the CNA notes that “no in-tree platform driver currently publishes a region without the WRITE flag”: every in-tree vfio-platform region is writable by design, so there is nothing in mainline for the bypass to bypass. The guard “costs nothing and keeps the mmap() interface honest if a read-only region ever appears.”

The fix, by Abdifatah Suruur and merged by Alex Williamson for 7.4-rc1, is seven lines: keep the -EINVAL for a writable request and, for a region without the WRITE flag, clear VM_MAYWRITE so that a later mprotect() fails. The kernel CNA listed six stable backports after updating the record on 1 December, down to 5.10. Red Hat rates it Important and SUSE Moderate at 5.7 with a vector that needs high privilege and high attack complexity; the gap between the two is the usual one between “a hardening fix for a class of bug” and “what can be done with it on this product”.

Who is affected on Linux

Each row is what the distribution’s own security tracker said on 2 December 2026; the link in the row is the tracker page, which will be newer than this one. vfio-platform is built as a module on arm64 and other platform-device architectures; x86 distribution kernels ship vfio-pci rather than this driver, which is not affected.

DistributionStatusFixed package
AlpineNot consulted for this page: the Alpine tracker refused the automated reader on 2 December 2026—
Debianbookworm (6.1.176-1, security 6.1.192-3) vulnerable; trixie (6.12.117-1, security 6.12.118-1) vulnerable; fixed in forky and sid (7.3.6-1); no DSAunstable 7.3.6-1
UbuntuMedium; linux and every flavour “Needs evaluation” in 26.10, 26.04 LTS, 24.04 LTS, 22.04 LTS and 20.04 LTS on 26 November 2026—
RHEL, Rocky, Alma, CentOS StreamImportant per the hydra bulk list; the per-CVE page and JSON refused the automated reader on 2 December 2026, so the per-product table is not stated here. RHEL 8, 9 and 10 ship the vfio-platform module on aarch64 and should be assumed affected until the page says otherwise—
openSUSE/SLEPending, Moderate 5.7: every SLE 15 SP7, SLE 16.0/16.1, SLE Micro and openSUSE Leap 16.x kernel package affected; no SUSE-SU yet—
Fedora, Arch; self-built kernelsNot consulted; upstream stable versions apply5.10.276 / 5.15.227 / 6.6.163 / 6.12.119 / 6.18.65 / 7.3.6 or later

How to check

Two questions settle it: is vfio-platform in use on this host at all, and if so does any bound device expose a region without the WRITE flag. The kernel version decides whether the hardening is in.

# 1. is the driver loaded or bound to anything
lsmod | grep -E '^vfio_(platform|amba)'
ls /sys/bus/platform/drivers/vfio-platform/ /sys/bus/amba/drivers/vfio-amba/ 2>/dev/null
ls -l /dev/vfio/ 2>/dev/null

# 2. the running kernel: fixed in 5.10.276, 5.15.227, 6.6.163, 6.12.119, 6.18.65, 7.3.6 or later
uname -r

# 3. which processes hold a vfio group open (the only ones that can mmap a region)
for p in /proc/[0-9]*; do ls -l $p/fd 2>/dev/null | grep -q '/dev/vfio/' && echo "$(basename $p) $(tr '\0' ' ' < $p/cmdline | cut -c1-80)"; done

No vfio_platform module and an empty /dev/vfio means the driver is not in use and the page does not apply, which is the state of every x86 host and most arm64 ones. Where it is in use, the processes in step 3 are the VMM or the userspace driver that already has the device; the bypass gives such a process write access to a region its driver marked read-only, and only matters if there is one, which the CNA says no in-tree driver provides. Treat the kernel version as the thing to track rather than hunting for read-only regions.

How to fix it

Update the kernel and reboot when your distribution ships the backport. There is no mitigation to apply in the meantime beyond the one already in place on every sensible host: /dev/vfio/N is owned by root or by the one account that runs the VMM.

# Debian forky / sid (7.3.6-1 carries the fix); trixie and bookworm: watch the tracker row above
apt update && apt install linux-image-arm64 && systemctl reboot
# RHEL / Rocky / Alma (aarch64): no errata yet on 2 December 2026; when the advisory lands
dnf update kernel && systemctl reboot
# Ubuntu: Needs evaluation; once the linux package is released
apt update && apt install linux-generic && systemctl reboot
# SUSE / openSUSE: Pending; once the SUSE-SU lands
zypper patch --category security && systemctl reboot

There is no configuration that makes a VMA permanently read-only from outside the driver, so there is no knob to turn; the fix is the kernel. What not to do: do not unbind devices from vfio-platform or stop passthrough guests to close this. The record says plainly that nothing in-tree exposes a read-only region, so the downtime buys nothing; the ordinary access control on the vfio group file is the control that matters, and it is unchanged.

Sources

  • CVE-2026-99809 at CVE.org — the kernel CNA record (25 November 2026, updated 1 December): the VM_MAYWRITE and mprotect() sentences, the “defensive hardening” note, the 4.1 lower bound and the seven fix commits including the 5.10 and 5.15 backports
  • Fix commit 420bed91 (Abdifatah Suruur, authored 29 September 2026, committed by Alex Williamson; mainline 7.4-rc1 per Debian; drivers/vfio/platform/vfio_platform_common.c +7/−3; Fixes: fad4d5b1f042; Link: lore), read as the GitHub patch view on 2 December 2026; the stable backport pages were rate-limited
  • NVD entry — Received on 25 November 2026; no CVSS metric and no CWE on 2 December 2026; its copy of the affected block predates the 1 December update and lists five fix commits
  • Distribution trackers: Debian (bookworm and trixie vulnerable, forky and sid fixed in 7.3.6-1) · Ubuntu (Medium, Needs evaluation) · Red Hat (Important on the hydra bulk list; the per-CVE page refused the automated reader on 2 December 2026) · SUSE (Pending, Moderate 5.7, all products affected) · Alpine (refused the automated reader on 2 December 2026)
  • CISA KEV catalogue 2026.11.30, not listed · EPSS 0.00304 (percentile 0.250) on 1 December 2026

Related reading

This advisory page was assembled from the primary sources listed above on 2 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.