{"id":"CVE-2026-138861","summary":"xen/gntdev: prevent private mappings from becoming writable","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nxen/gntdev: prevent private mappings from becoming writable\n\ngntdev_mmap() rejects writable private (non-shared) mappings of foreign\ngrant pages, because a private writable mapping takes the COW path on\npages that have no proper struct-page backing.  However, VM_MAYWRITE is\nleft set, so userspace can map the grant read-only and then upgrade the\nmapping to writable with mprotect(), hitting the same COW path the\ncheck was written to prevent.\n\nClear VM_MAYWRITE for private mappings, as i915 does for its read-only\nobjects and as fixed in drm/vc4 (CVE-2026-68445) and drm/panthor\n(CVE-2024-53071) and ptp: vmclock (commit\na5edadbae57e2298a56cf7a4e774a027905a331f).","modified":"2026-12-01T21:02:34.826630186Z","published":"2026-11-30T13:25:40.247Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138861.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/021d9c95a79b55cd21ae085a8e919b251a329b3d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2176dea8d8c19cb43a9b3651bfa1cb21eab1b31a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4f6a4856d5cbf42610cca5d7ac24a7768591bfe1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7ff2ed2ffde048b17697cf5fa019aa1409a293c1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/819bbbdd67e6f00bc03e2e49ed0edd88d1f65af2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a0e83ac1d99e923a01a00fbe6cd000ee9646e62d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a327701804bb7d806da6764f7662f5290c4a929e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f4a35345d97e9007028693ee32058c956dc3b09f"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138861.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138861"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"ab31523c2fcac557226bac72cbdf5fafe01f9a26"},{"fixed":"819bbbdd67e6f00bc03e2e49ed0edd88d1f65af2"},{"fixed":"a327701804bb7d806da6764f7662f5290c4a929e"},{"fixed":"7ff2ed2ffde048b17697cf5fa019aa1409a293c1"},{"fixed":"4f6a4856d5cbf42610cca5d7ac24a7768591bfe1"},{"fixed":"021d9c95a79b55cd21ae085a8e919b251a329b3d"},{"fixed":"a0e83ac1d99e923a01a00fbe6cd000ee9646e62d"},{"fixed":"f4a35345d97e9007028693ee32058c956dc3b09f"},{"fixed":"2176dea8d8c19cb43a9b3651bfa1cb21eab1b31a"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138861.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.38"},{"fixed":"5.10.275"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138861.json"}}],"schema_version":"1.9.2"}