CVE-2026-99811 in Linuxinfo

Summary

by MITRE • 11/25/2026

In the Linux kernel, the following vulnerability has been resolved:

vfio/cdx: prevent read-only region mappings from becoming writable

vfio_cdx_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(), writing to MMIO regions the device marks read-only.

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 cdx device 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.

If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Analysis

by VulDB Data Team • 11/25/2026

The Linux kernel’s VFIO CDX subsystem contained a logic flaw that allowed userspace applications to escalate memory mapping permissions beyond what was intended by the device driver, specifically regarding regions marked as read-only. The vulnerability resides in the vfio_cdx_mmap function, which correctly rejects direct requests for writable mappings when the underlying region lacks the WRITE flag. However, it failed to clear the VM_MAYWRITE permission bit associated with the virtual memory area (VMA). This oversight created a security gap where userspace could initially map the affected MMIO region as read-only and subsequently use the mprotect system call to upgrade that mapping to writable access. Once upgraded, applications could write arbitrary data to hardware registers or memory-mapped I/O regions designated by the device firmware as immutable, potentially leading to device malfunction, denial of service, or unauthorized state modification.

This issue is a classic example of an improper privilege escalation within kernel memory management interfaces, aligning with CWE-269: Improper Privilege Management and CWE-787: Out-of-bounds Write when considering the potential for writing to restricted hardware addresses. The root cause stems from a failure to synchronize the VMA flags with the actual access permissions granted by the driver. By leaving VM_MAYWRITE set, the kernel’s memory management subsystem assumed that write operations were permissible under certain conditions, such as runtime protection changes via mprotect. This behavior contradicts the principle of least privilege and fails to enforce strict read-only constraints at the virtual memory level, even if the initial mapping request was correctly denied for writes.

The operational impact of this vulnerability is primarily defensive in nature within the current kernel tree, as no in-tree CDX device currently exposes a region without the WRITE flag. Consequently, there are likely no active exploits targeting this specific code path against standard hardware configurations. However, the flaw represents a significant architectural weakness that could be exploited if third-party or future devices implement read-only MMIO regions for security-sensitive operations such as configuration locks or status registers. An attacker with local user access who can interact with VFIO CDX devices could theoretically bypass intended restrictions to modify device state, potentially causing system instability or interfering with other virtualized workloads sharing the same hardware resources.

The resolution involves clearing the VM_MAYWRITE flag for regions that do not possess the WRITE capability during the mapping setup process. This approach mirrors established hardening patterns found in other subsystems such as i915, which handles read-only objects similarly, and recent fixes in drm/vc4 (CVE-2026-68445) and drm/panthor (CVE-2024-53071). It also aligns with the fix for CVE-2026-68445’s counterpart in ptp: vmclock, which prevents read-only mappings from becoming writable. By explicitly disabling the potential for write upgrades at the VMA level, the kernel ensures that even if mprotect is invoked, the operation will fail because the underlying permission to modify memory was never granted during initialization.

From a mitigation perspective, administrators should ensure their systems are updated with the latest stable Linux kernel versions containing this patch. While no immediate workaround exists for applications relying on VFIO CDX devices due to the nature of the fix being in the core mapping logic, keeping drivers and firmware up to date is essential. Security monitoring tools focusing on abnormal mprotect calls targeting MMIO regions or unexpected device register writes may help detect exploitation attempts if such a scenario were ever realized with non-standard hardware configurations. This update reinforces the importance of strict enforcement of memory access controls across all virtualization interfaces to prevent privilege escalation through subtle permission mismatches.

Responsible

Linux

Reservation

09/25/2026

Disclosure

11/25/2026

Moderation

accepted

CPE

ready

EPSS

0.00296

KEV

no

Activities

very low

Sources

Do you need the next level of professionalism?

Upgrade your account now!