CVE-2026-72138
xen/gntdev: fix error handling in ioctl
Mitigation
- Upgrade Linux to 45ca1afe2fd14c04e37227e79d3f8455831d8408 or later.
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
Vulnerability facts
- Affected
- Linux >= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, < 52dc40ef0cfee6ae89b7524967e73f0ba37906d7; >= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, < 1dd9cb98fe228e017fff9efb33862ff38c741b65; >= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, < 6df926130aee6cab9b5d2e5b7862e49ccac348dc; >= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, < 311011f8cc206c5af2877b03e3f627ee1b8fe024; >= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, < 18a693733f7ad004e1ab0466693121ca70cd95dd; >= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, < 16d3ccdabb8dee9be2cdcd6d3f9a125572ec0454; >= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, < 6883269a323609f68f6faa903f8f8ff3d191cec8; >= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, < 45ca1afe2fd14c04e37227e79d3f8455831d8408; Linux 2.6.39
- Fixed in
- Linux 52dc40ef0cfee6ae89b7524967e73f0ba37906d7, Linux 1dd9cb98fe228e017fff9efb33862ff38c741b65, Linux 6df926130aee6cab9b5d2e5b7862e49ccac348dc, Linux 311011f8cc206c5af2877b03e3f627ee1b8fe024, Linux 18a693733f7ad004e1ab0466693121ca70cd95dd, Linux 16d3ccdabb8dee9be2cdcd6d3f9a125572ec0454, Linux 6883269a323609f68f6faa903f8f8ff3d191cec8, Linux 45ca1afe2fd14c04e37227e79d3f8455831d8408
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- EPSS
- 0.22% chance of exploitation in 30 days (percentile 7, 2026-11-26)
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, < 52dc40ef0cfee6ae89b7524967e73f0ba37906d7; >= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, < 1dd9cb98fe228e017fff9efb33862ff38c741b65; >= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, < 6df926130aee6cab9b5d2e5b7862e49ccac348dc; >= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, < 311011f8cc206c5af2877b03e3f627ee1b8fe024; >= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, < 18a693733f7ad004e1ab0466693121ca70cd95dd; >= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, < 16d3ccdabb8dee9be2cdcd6d3f9a125572ec0454; >= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, < 6883269a323609f68f6faa903f8f8ff3d191cec8; >= 68b025c813c2eb41ff25628e3d4952d5185eb1a4, < 45ca1afe2fd14c04e37227e79d3f8455831d8408 | — | cvelist |
| Linux | 2.6.39 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Other
- https://git.kernel.org/stable/c/52dc40ef0cfee6ae89b7524967e73f0ba37906d7
- https://git.kernel.org/stable/c/1dd9cb98fe228e017fff9efb33862ff38c741b65
- https://git.kernel.org/stable/c/6df926130aee6cab9b5d2e5b7862e49ccac348dc
- https://git.kernel.org/stable/c/311011f8cc206c5af2877b03e3f627ee1b8fe024
- https://git.kernel.org/stable/c/18a693733f7ad004e1ab0466693121ca70cd95dd
- https://git.kernel.org/stable/c/16d3ccdabb8dee9be2cdcd6d3f9a125572ec0454
- https://git.kernel.org/stable/c/6883269a323609f68f6faa903f8f8ff3d191cec8
- https://git.kernel.org/stable/c/45ca1afe2fd14c04e37227e79d3f8455831d8408
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.