CVE-2026-99810: vfio/fsl-mc: prevent read-only region mappings from becoming writable
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
vfio/fsl-mc: prevent read-only region mappings from becoming writable
vfio_fsl_mc_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: 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.
The Linux kernel CVE team has assigned CVE-2026-99810 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.10 with commit 67247289688d49a610a956c23c4ff032f0281845 and fixed in 6.6.163 with commit 7aaac9b7fb576512f096ca6841ebddb158e2b228 Issue introduced in 5.10 with commit 67247289688d49a610a956c23c4ff032f0281845 and fixed in 6.12.119 with commit 6358b4f3e87c4a81d476dae59737ca083c367292 Issue introduced in 5.10 with commit 67247289688d49a610a956c23c4ff032f0281845 and fixed in 6.18.65 with commit 7094d4fe5fb6860e150e790784193e07c8a1ff9f Issue introduced in 5.10 with commit 67247289688d49a610a956c23c4ff032f0281845 and fixed in 7.3.6 with commit 3043b82aace2dddb7d12585ceee69afcaf657fb7 Issue introduced in 5.10 with commit 67247289688d49a610a956c23c4ff032f0281845 and fixed in 7.4-rc1 with commit 25fd8b27ee8d4f59cc2ad99cf67aef4570b82096
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-99810
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/vfio/fsl-mc/vfio_fsl_mc.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/7aaac9b7fb576512f096ca6841ebddb158e2b228 https://git.kernel.org/stable/c/6358b4f3e87c4a81d476dae59737ca083c367292 https://git.kernel.org/stable/c/7094d4fe5fb6860e150e790784193e07c8a1ff9f https://git.kernel.org/stable/c/3043b82aace2dddb7d12585ceee69afcaf657fb7 https://git.kernel.org/stable/c/25fd8b27ee8d4f59cc2ad99cf67aef4570b82096