CVE-2026-138861

xen/gntdev: prevent private mappings from becoming writable

No CVSS score yet EPSS 0.22%

Published 30 Nov 2026 Updated 30 Nov 2026 CNA: Linux

Check your servers for CVE-2026-138861

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-138861 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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

Exploitation

EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 13.4% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from ab31523c2fcac557226bac72cbdf5fafe01f9a26, before 819bbbdd67e6f00bc03e2e49ed0edd88d1f65af2
affected from ab31523c2fcac557226bac72cbdf5fafe01f9a26, before a327701804bb7d806da6764f7662f5290c4a929e
affected from ab31523c2fcac557226bac72cbdf5fafe01f9a26, before 7ff2ed2ffde048b17697cf5fa019aa1409a293c1
affected from ab31523c2fcac557226bac72cbdf5fafe01f9a26, before 4f6a4856d5cbf42610cca5d7ac24a7768591bfe1
affected from ab31523c2fcac557226bac72cbdf5fafe01f9a26, before 021d9c95a79b55cd21ae085a8e919b251a329b3d
affected from ab31523c2fcac557226bac72cbdf5fafe01f9a26, before a0e83ac1d99e923a01a00fbe6cd000ee9646e62d
affected from ab31523c2fcac557226bac72cbdf5fafe01f9a26, before f4a35345d97e9007028693ee32058c956dc3b09f
affected from ab31523c2fcac557226bac72cbdf5fafe01f9a26, before 2176dea8d8c19cb43a9b3651bfa1cb21eab1b31a
Other versions: unaffected
Linux
affected 2.6.38
unaffected before 2.6.38
unaffected from 5.10.275 up to and including 5.10.*
unaffected from 5.15.226 up to and including 5.15.*
unaffected from 6.1.193 up to and including 6.1.*
unaffected from 6.6.163 up to and including 6.6.*
unaffected from 6.12.117 up to and including 6.12.*
unaffected from 6.18.63 up to and including 6.18.*
unaffected from 7.3.4 up to and including 7.3.*
unaffected 7.4-rc1 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-138861 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-138861

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-138861
trivy image --scanners vuln IMAGE | grep CVE-2026-138861

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-138861 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.