# CVE-2026-138861: xen/gntdev: prevent private mappings from becoming writable

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2026-11-30T13:25:40.247Z
- Modified: 2026-11-30T14:17:42.413Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

xen/gntdev: prevent private mappings from becoming writable

gntdev_mmap() rejects writable private (non-shared) mappings of foreign
grant pages, because a private writable mapping takes the COW path on
pages that have no proper struct-page backing.  However, VM_MAYWRITE is
left set, so userspace can map the grant read-only and then upgrade the
mapping to writable with mprotect(), hitting the same COW path the
check was written to prevent.

Clear VM_MAYWRITE for private mappings, as i915 does for its read-only
objects and as fixed in drm/vc4 (CVE-2026-68445) and drm/panthor
(CVE-2024-53071) and ptp: vmclock (commit
a5edadbae57e2298a56cf7a4e774a027905a331f).

(As written by CVE List.)

## Affected

- Linux Linux: from ab31523c2fcac557226bac72cbdf5fafe01f9a26 before 819bbbdd67e6f00bc03e2e49ed0edd88d1f65af2; from ab31523c2fcac557226bac72cbdf5fafe01f9a26 before a327701804bb7d806da6764f7662f5290c4a929e; from ab31523c2fcac557226bac72cbdf5fafe01f9a26 before 7ff2ed2ffde048b17697cf5fa019aa1409a293c1; from ab31523c2fcac557226bac72cbdf5fafe01f9a26 before 4f6a4856d5cbf42610cca5d7ac24a7768591bfe1; from ab31523c2fcac557226bac72cbdf5fafe01f9a26 before 021d9c95a79b55cd21ae085a8e919b251a329b3d; from ab31523c2fcac557226bac72cbdf5fafe01f9a26 before a0e83ac1d99e923a01a00fbe6cd000ee9646e62d; from ab31523c2fcac557226bac72cbdf5fafe01f9a26 before f4a35345d97e9007028693ee32058c956dc3b09f; from ab31523c2fcac557226bac72cbdf5fafe01f9a26 before 2176dea8d8c19cb43a9b3651bfa1cb21eab1b31a; 2.6.38 (not affected: before 2.6.38; from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.117 up to 6.12.*; from 6.18.63 up to 6.18.*; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/819bbbdd67e6f00bc03e2e49ed0edd88d1f65af2>
- <https://git.kernel.org/stable/c/a327701804bb7d806da6764f7662f5290c4a929e>
- <https://git.kernel.org/stable/c/7ff2ed2ffde048b17697cf5fa019aa1409a293c1>
- <https://git.kernel.org/stable/c/4f6a4856d5cbf42610cca5d7ac24a7768591bfe1>
- <https://git.kernel.org/stable/c/021d9c95a79b55cd21ae085a8e919b251a329b3d>
- <https://git.kernel.org/stable/c/a0e83ac1d99e923a01a00fbe6cd000ee9646e62d>
- <https://git.kernel.org/stable/c/f4a35345d97e9007028693ee32058c956dc3b09f>
- <https://git.kernel.org/stable/c/2176dea8d8c19cb43a9b3651bfa1cb21eab1b31a>

## Sources

- CVE List: [CVE-2026-138861](https://www.cve.org/CVERecord?id=CVE-2026-138861), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-138861](https://nvd.nist.gov/vuln/detail/CVE-2026-138861), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-138861 · Whole record: https://cve.day/CVE-2026-138861.json · Rebuilt by cve.day 2026-11-30T14:32:31.034Z
