CVE-2026-99809: vfio/platform: prevent read-only region mappings from becoming writable
In the Linux kernel, the following vulnerability has been resolved:
vfio/platform: prevent read-only region mappings from becoming writable
vfioplatformmmap() rejects writable mappings of regions without the WRITE flag, but leaves VMMAYWRITE set. Userspace can map such a region read-only and then upgrade the mapping to writable with mprotect().
Clear VMMAYWRITE 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Clear VM_MAYWRITE for regions that do not have the WRITE flag, preventing read-only mappings from becoming writable via mprotect().
Linux kernel vfio/platform VM_MAYWRITE = clear for regions without the WRITE flag
Event History
Frequently Asked Questions
Are systems using current in-tree VFIO platform drivers exposed in practice?
No in-tree platform driver currently publishes a region without the WRITE flag, so the change is described as defensive hardening rather than a known exposure affecting existing in-tree drivers.
What conditions are required for the mapping to become writable?
A VFIO platform region must lack the WRITE flag, and userspace must first map it read-only and then use mprotect() to upgrade that mapping to writable. The issue exists because VM_MAYWRITE was left enabled despite mmap() rejecting an initially writable mapping.
What does the fix change?
The fix clears VM_MAYWRITE for regions that do not have the WRITE flag. This prevents mprotect() from converting their read-only mappings into writable mappings.