vfio/platform: prevent read-only region mappings from becoming writable
- State
- Published
- Severity
- Not Scored
- Published
- Nov 25, 2026
- Updated
- Nov 25, 2026
- Reserved
- Sep 25, 2026
Description
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.
| Product | Versions |
|---|---|
| Linux Linux | fad4d5b1f042a659e07ceba3a6d1744b30f8ff7c to before 0cd753aefee70beced31e89fb4ed78a795411bd0 Affectedfad4d5b1f042a659e07ceba3a6d1744b30f8ff7c to before 61e756960f715a29fc7f595650e3e5ecc1f7579c Affectedfad4d5b1f042a659e07ceba3a6d1744b30f8ff7c to before b9289740d2292f02a925f1e34607db678c91000e Affectedfad4d5b1f042a659e07ceba3a6d1744b30f8ff7c to before 97faad50e37e5de90eea4f1fb132576b7f9211db Affectedfad4d5b1f042a659e07ceba3a6d1744b30f8ff7c to before 420bed9131dbbe37abe9d6b32af51219875811e0 Affected |
| Linux Linux | 4.1 Affectedbefore 4.1 Not Affected6.6.163 through 6.6.* Not Affected6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
- https://git.kernel.org/stable/c/0cd753aefee70beced31e89fb4ed78a795411bd0
- https://git.kernel.org/stable/c/61e756960f715a29fc7f595650e3e5ecc1f7579c
- https://git.kernel.org/stable/c/b9289740d2292f02a925f1e34607db678c91000e
- https://git.kernel.org/stable/c/97faad50e37e5de90eea4f1fb132576b7f9211db
- https://git.kernel.org/stable/c/420bed9131dbbe37abe9d6b32af51219875811e0
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.