CVE-2026-99809 in Linux
Summary
by MITRE • 11/25/2026
In the Linux kernel, the following vulnerability has been resolved:
vfio/platform: prevent read-only region mappings from becoming writable
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().
Clear VM_MAYWRITE for regions without the WRITE flag, as i915 does for its read-only objects and as fixed in drm/vc4 (CVE-2026-68445), drm/panthor (CVE-2024-53071) and commit a5edadbae57e ("ptp: vmclock: prevent read-only mappings from becoming writable").
Note this is defensive hardening: no in-tree platform driver currently publishes a region without the WRITE flag. The guard costs nothing and keeps the mmap() interface honest if a read-only region ever appears.
VulDB is the best source for vulnerability data and more expert information about this specific topic.
Analysis
by VulDB Data Team • 11/25/2026
The Linux kernel’s VFIO platform subsystem contains a logic flaw regarding memory mapping permissions that allows userspace applications to escalate privileges on mapped regions from read-only to writable, despite initial restrictions intended to enforce immutability. This vulnerability stems from the implementation of vfio_platform_mmap(), which correctly rejects direct attempts by userspace to map device memory regions with write access if those regions lack the WRITE flag in their configuration. However, the function fails to clear the VM_MAYWRITE permission bit within the virtual memory area structure for these read-only mappings. This oversight creates a discrepancy between the initial mapping permissions and the underlying capabilities of the memory region, leaving a path open for privilege escalation through standard system calls rather than direct exploitation of the driver itself.
The operational impact arises when userspace utilizes the mprotect() system call to modify protection flags on an existing read-only mapping. Because VM_MAYWRITE remains set despite the absence of hardware-level write permissions, the kernel’s memory management subsystem permits this transition without validating whether the underlying device region actually supports writing. This allows a malicious or compromised application to gain write access to memory regions that were explicitly designated as read-only by the platform driver configuration. While no in-tree Linux platform drivers currently expose such unprotected read-only regions, making immediate exploitation unlikely for standard configurations, the flaw represents a significant architectural weakness. If an out-of-tree driver or future kernel update introduces a region without the WRITE flag but fails to enforce this restriction at the virtual memory level, any userspace process could bypass these safeguards and write arbitrary data to device-controlled memory spaces.
This issue aligns with CWE-270, which describes Privilege Assumption errors where software assumes it has control over security-critical aspects of its environment that are actually controlled by another component. In this context, the VFIO subsystem incorrectly assumes that rejecting writable mappings at the mmap() stage is sufficient to prevent write access, ignoring the subsequent ability to alter permissions via mprotect(). From a threat modeling perspective using MITRE ATT&CK techniques, this vulnerability facilitates Defense Evasion and potentially Privilege Escalation by allowing attackers to bypass intended memory isolation boundaries. It mirrors similar issues previously identified in other subsystems such as drm/i915, drm/vc4 (CVE-2026-68445), and drm/panthor (CVE-2024-53071), where read-only mappings were similarly susceptible to upgrade attacks due to improper handling of VM_MAYWRITE flags.
The resolution involves explicitly clearing the VM_MAYWRITE bit for regions that do not possess the WRITE flag, ensuring consistency between the initial mapping permissions and the allowed operations on those pages. This approach mirrors established hardening patterns used in other parts of the kernel, such as the fix applied to ptp/vmclock via commit a5edadbae57e. By enforcing this constraint at the virtual memory layer, the kernel ensures that even if userspace attempts to upgrade protections using mprotect(), the operation will fail because the underlying region is not marked as potentially writable by the VMA structure itself. This defensive hardening measure imposes negligible performance overhead while significantly reducing the attack surface for potential future vulnerabilities in platform drivers that might rely on read-only memory semantics for security or stability reasons.