CVE-2026-72138
xen/gntdev: fix error handling in ioctl
Check your servers for CVE-2026-72138
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-72138 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.
Description
In the Linux kernel, the following vulnerability has been resolved:
xen/gntdev: fix error handling in ioctl
When gntdev_ioctl_map_grant_ref() fails to copy the operation result back to userspace after successfully adding the mapping to the list, the error path returns -EFAULT without releasing the reference acquired by gntdev_alloc_map(). The mapping remains in priv->maps with a refcount of 1, causing a memory leak and a dangling list entry.
Additionally, gntdev_add_map() may modify map->index to avoid overlap with existing mappings. Therefore, the index returned to userspace must be obtained after gntdev_add_map() completes.
Fix this by holding the mutex across gntdev_add_map(), retrieving the correct index, and copy_to_user(). If copy_to_user() fails, remove the mapping from the list and release the reference while still holding the lock.
Fix these issues by properly handling all error cases.
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 12.9% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 6 Nov 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 68b025c813c2eb41ff25628e3d4952d5185eb1a4, before 52dc40ef0cfee6ae89b7524967e73f0ba37906d7 affected from 68b025c813c2eb41ff25628e3d4952d5185eb1a4, before 1dd9cb98fe228e017fff9efb33862ff38c741b65 affected from 68b025c813c2eb41ff25628e3d4952d5185eb1a4, before 6df926130aee6cab9b5d2e5b7862e49ccac348dc affected from 68b025c813c2eb41ff25628e3d4952d5185eb1a4, before 311011f8cc206c5af2877b03e3f627ee1b8fe024 affected from 68b025c813c2eb41ff25628e3d4952d5185eb1a4, before 18a693733f7ad004e1ab0466693121ca70cd95dd affected from 68b025c813c2eb41ff25628e3d4952d5185eb1a4, before 16d3ccdabb8dee9be2cdcd6d3f9a125572ec0454 affected from 68b025c813c2eb41ff25628e3d4952d5185eb1a4, before 6883269a323609f68f6faa903f8f8ff3d191cec8 affected from 68b025c813c2eb41ff25628e3d4952d5185eb1a4, before 45ca1afe2fd14c04e37227e79d3f8455831d8408
Other versions: unaffected
|
| Linux |
affected 2.6.39 unaffected before 2.6.39 unaffected from 5.10.261 up to and including 5.10.* unaffected from 5.15.212 up to and including 5.15.* unaffected from 6.1.178 up to and including 6.1.* unaffected from 6.6.145 up to and including 6.6.* unaffected from 6.12.97 up to and including 6.12.* unaffected from 6.18.40 up to and including 6.18.* unaffected from 7.1.5 up to and including 7.1.* unaffected 7.2 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-72138 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-72138
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-72138
trivy image --scanners vuln IMAGE | grep CVE-2026-72138
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
- https://git.kernel.org/stable/c/52dc40ef0cfee6ae89b7524967e73f0ba37906d7 git.kernel.org
- https://git.kernel.org/stable/c/1dd9cb98fe228e017fff9efb33862ff38c741b65 git.kernel.org
- https://git.kernel.org/stable/c/6df926130aee6cab9b5d2e5b7862e49ccac348dc git.kernel.org
- https://git.kernel.org/stable/c/311011f8cc206c5af2877b03e3f627ee1b8fe024 git.kernel.org
- https://git.kernel.org/stable/c/18a693733f7ad004e1ab0466693121ca70cd95dd git.kernel.org
- https://git.kernel.org/stable/c/16d3ccdabb8dee9be2cdcd6d3f9a125572ec0454 git.kernel.org
- https://git.kernel.org/stable/c/6883269a323609f68f6faa903f8f8ff3d191cec8 git.kernel.org
- https://git.kernel.org/stable/c/45ca1afe2fd14c04e37227e79d3f8455831d8408 git.kernel.org
Source: the record CVE-2026-72138 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse