CVE-2026-138861

Source
https://cve.org/CVERecord?id=CVE-2026-138861
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138861.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-138861
Downstream
Published
2026-11-30T13:25:40Z
Modified
2026-11-30T15:01:12Z
Summary
xen/gntdev: prevent private mappings from becoming writable
Details

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).

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138861.json"
}
References

Affected packages

Git / 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"

Linux / Kernel

Package

Name
Kernel

Affected 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"