# CVE-2026-72138: xen/gntdev: fix error handling in ioctl

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **Published:** 2026-08-15T05:53:12.549Z
- **Modified:** 2026-11-06T17:19:37.850Z

## Who should check

- Anyone running Linux \>= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, \< 52dc40ef0cfee6ae89b7524967e73f0ba37906d7; \>= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, \< 1dd9cb98fe228e017fff9efb33862ff38c741b65; \>= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, \< 6df926130aee6cab9b5d2e5b7862e49ccac348dc; \>= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, \< 311011f8cc206c5af2877b03e3f627ee1b8fe024; \>= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, \< 18a693733f7ad004e1ab0466693121ca70cd95dd; \>= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, \< 16d3ccdabb8dee9be2cdcd6d3f9a125572ec0454; \>= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, \< 6883269a323609f68f6faa903f8f8ff3d191cec8; \>= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, \< 45ca1afe2fd14c04e37227e79d3f8455831d8408
- Anyone running Linux 2.6.39

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

## Affected and fixed versions

- Linux: \>= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, \< 52dc40ef0cfee6ae89b7524967e73f0ba37906d7; \>= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, \< 1dd9cb98fe228e017fff9efb33862ff38c741b65; \>= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, \< 6df926130aee6cab9b5d2e5b7862e49ccac348dc; \>= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, \< 311011f8cc206c5af2877b03e3f627ee1b8fe024; \>= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, \< 18a693733f7ad004e1ab0466693121ca70cd95dd; \>= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, \< 16d3ccdabb8dee9be2cdcd6d3f9a125572ec0454; \>= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, \< 6883269a323609f68f6faa903f8f8ff3d191cec8; \>= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, \< 45ca1afe2fd14c04e37227e79d3f8455831d8408 (cvelist)
- Linux: 2.6.39 (cvelist)

## Mitigation

- Upgrade Linux to 45ca1afe2fd14c04e37227e79d3f8455831d8408 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-72138. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-72138.md
Affected: Linux >= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, < 52dc40ef0cfee6ae89b7524967e73f0ba37906d7; >= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, < 1dd9cb98fe228e017fff9efb33862ff38c741b65; >= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, < 6df926130aee6cab9b5d2e5b7862e49ccac348dc; >= 68b025c813c2eb41ff25628…
Fixed in: Linux 52dc40ef0cfee6ae89b7524967e73f0ba37906d7, Linux 1dd9cb98fe228e017fff9efb33862ff38c741b65, Linux 6df926130aee6cab9b5d2e5b7862e49ccac348dc, Linux 311011f8cc206c5af2877b03e3f627ee1b8fe024, Linux 18a693733f7ad004e1ab0466693121ca70cd95dd, Linux 16d3ccdabb8dee9be2cdcd6d3f9a125572ec0454, Linux 68832…

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-72138 being exploited?

There is no confirmed exploitation: CVE-2026-72138 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-72138?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-72138?

Linux \>= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, \< 52dc40ef0cfee6ae89b7524967e73f0ba37906d7; \>= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, \< 1dd9cb98fe228e017fff9efb33862ff38c741b65; \>= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, \< 6df926130aee6cab9b5d2e5b7862e49ccac348dc; \>= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, \< 311011f8cc206c5af2877b03e3f627ee1b8fe024; \>= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, \< 18a693733f7ad004e1ab0466693121ca70cd95dd; \>= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, \< 16d3ccdabb8dee9be2cdcd6d3f9a125572ec0454; \>= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, \< 6883269a323609f68f6faa903f8f8ff3d191cec8; \>= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, \< 45ca1afe2fd14c04e37227e79d3f8455831d8408; Linux 2.6.39.

### Is there a fix for CVE-2026-72138?

Yes. Fixed in Linux 52dc40ef0cfee6ae89b7524967e73f0ba37906d7, Linux 1dd9cb98fe228e017fff9efb33862ff38c741b65, Linux 6df926130aee6cab9b5d2e5b7862e49ccac348dc, Linux 311011f8cc206c5af2877b03e3f627ee1b8fe024, Linux 18a693733f7ad004e1ab0466693121ca70cd95dd, Linux 16d3ccdabb8dee9be2cdcd6d3f9a125572ec0454, Linux 6883269a323609f68f6faa903f8f8ff3d191cec8, Linux 45ca1afe2fd14c04e37227e79d3f8455831d8408. Upgrade Linux to 45ca1afe2fd14c04e37227e79d3f8455831d8408 or later.

### How do I check if I'm affected by CVE-2026-72138?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/52dc40ef0cfee6ae89b7524967e73f0ba37906d7>
- other: <https://git.kernel.org/stable/c/1dd9cb98fe228e017fff9efb33862ff38c741b65>
- other: <https://git.kernel.org/stable/c/6df926130aee6cab9b5d2e5b7862e49ccac348dc>
- other: <https://git.kernel.org/stable/c/311011f8cc206c5af2877b03e3f627ee1b8fe024>
- other: <https://git.kernel.org/stable/c/18a693733f7ad004e1ab0466693121ca70cd95dd>
- other: <https://git.kernel.org/stable/c/16d3ccdabb8dee9be2cdcd6d3f9a125572ec0454>
- other: <https://git.kernel.org/stable/c/6883269a323609f68f6faa903f8f8ff3d191cec8>
- other: <https://git.kernel.org/stable/c/45ca1afe2fd14c04e37227e79d3f8455831d8408>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-72138>

HTML: <https://flawdb.com/CVE-2026-72138> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-72138>
