CVE-2026-99810: vfio/fsl-mc: prevent read-only region mappings from becoming writable
In the Linux kernel, the following vulnerability has been resolved:
vfio/fsl-mc: prevent read-only region mappings from becoming writable
vfiofslmcmmap() 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: the fsl-mc bus publishes all device regions with the WRITE flag set, so no device can currently reach the read-only path. 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 without the WRITE flag in vfio_fsl_mc_mmap() so read-only mappings cannot be upgraded to writable with mprotect().
vfio/fsl-mc VM_MAYWRITE = clear for regions without the WRITE flag
Event History
Frequently Asked Questions
Are current fsl-mc devices exposed to this issue?
No known current device can reach the affected read-only mapping path. The fsl-mc bus publishes all device regions with the WRITE flag set, so this change is described as defensive hardening for a read-only region that may appear in the future.
What would an attacker need to do if a read-only fsl-mc region were introduced?
They would need userspace access to map that region. They could create a read-only mapping and then use mprotect() to attempt to upgrade it to writable because VM_MAYWRITE remained set.
How can I tell whether this affects my environment?
Check whether your fsl-mc device exposes any region without the WRITE flag. Based on the available information, currently published fsl-mc regions all have the WRITE flag set, so the vulnerable path is not presently reachable.