{"id":"CVE-2026-138861","aliases":["CVE-2026-138861"],"related":[],"kind":"vulnerability","state":"published","title":"xen/gntdev: prevent private mappings from becoming writable","summary":"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).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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).","source":"cvelist"}],"published":"2026-11-30T13:25:40.247Z","modified":"2026-11-30T14:17:42.413Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"ab31523c2fcac557226bac72cbdf5fafe01f9a26","fixed":"819bbbdd67e6f00bc03e2e49ed0edd88d1f65af2","status":"affected"},{"type":"git","introduced":"ab31523c2fcac557226bac72cbdf5fafe01f9a26","fixed":"a327701804bb7d806da6764f7662f5290c4a929e","status":"affected"},{"type":"git","introduced":"ab31523c2fcac557226bac72cbdf5fafe01f9a26","fixed":"7ff2ed2ffde048b17697cf5fa019aa1409a293c1","status":"affected"},{"type":"git","introduced":"ab31523c2fcac557226bac72cbdf5fafe01f9a26","fixed":"4f6a4856d5cbf42610cca5d7ac24a7768591bfe1","status":"affected"},{"type":"git","introduced":"ab31523c2fcac557226bac72cbdf5fafe01f9a26","fixed":"021d9c95a79b55cd21ae085a8e919b251a329b3d","status":"affected"},{"type":"git","introduced":"ab31523c2fcac557226bac72cbdf5fafe01f9a26","fixed":"a0e83ac1d99e923a01a00fbe6cd000ee9646e62d","status":"affected"},{"type":"git","introduced":"ab31523c2fcac557226bac72cbdf5fafe01f9a26","fixed":"f4a35345d97e9007028693ee32058c956dc3b09f","status":"affected"},{"type":"git","introduced":"ab31523c2fcac557226bac72cbdf5fafe01f9a26","fixed":"2176dea8d8c19cb43a9b3651bfa1cb21eab1b31a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.38","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.38","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.63","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.4","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/819bbbdd67e6f00bc03e2e49ed0edd88d1f65af2","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a327701804bb7d806da6764f7662f5290c4a929e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7ff2ed2ffde048b17697cf5fa019aa1409a293c1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4f6a4856d5cbf42610cca5d7ac24a7768591bfe1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/021d9c95a79b55cd21ae085a8e919b251a329b3d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a0e83ac1d99e923a01a00fbe6cd000ee9646e62d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f4a35345d97e9007028693ee32058c956dc3b09f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2176dea8d8c19cb43a9b3651bfa1cb21eab1b31a","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-138861","url":"https://www.cve.org/CVERecord?id=CVE-2026-138861","licence":"CVE Terms of Use","modified":"2026-11-30T13:25:40.247Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-138861","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138861","licence":"Public domain","modified":"2026-11-30T14:17:42.413Z"}],"updatedAt":"2026-11-30T14:32:31.034Z","epss":{"score":0.0022,"percentile":0.13413,"date":"2026-12-01T12:00:22.000Z"}}