CVE-2026-72138

Source
https://cve.org/CVERecord?id=CVE-2026-72138
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72138.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-72138
Downstream
Published
2026-08-15T05:53:12.549Z
Modified
2026-08-18T03:31:16.962103485Z
Summary
xen/gntdev: fix error handling in ioctl
Details

In the Linux kernel, the following vulnerability has been resolved:

xen/gntdev: fix error handling in ioctl

When gntdevioctlmapgrantref() 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 gntdevallocmap(). The mapping remains in priv->maps with a refcount of 1, causing a memory leak and a dangling list entry.

Additionally, gntdevaddmap() may modify map->index to avoid overlap with existing mappings. Therefore, the index returned to userspace must be obtained after gntdevaddmap() completes.

Fix this by holding the mutex across gntdevaddmap(), retrieving the correct index, and copytouser(). If copytouser() 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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72138.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
68b025c813c2eb41ff25628e3d4952d5185eb1a4
Fixed
52dc40ef0cfee6ae89b7524967e73f0ba37906d7
Fixed
1dd9cb98fe228e017fff9efb33862ff38c741b65
Fixed
6df926130aee6cab9b5d2e5b7862e49ccac348dc
Fixed
311011f8cc206c5af2877b03e3f627ee1b8fe024
Fixed
18a693733f7ad004e1ab0466693121ca70cd95dd
Fixed
16d3ccdabb8dee9be2cdcd6d3f9a125572ec0454
Fixed
6883269a323609f68f6faa903f8f8ff3d191cec8
Fixed
45ca1afe2fd14c04e37227e79d3f8455831d8408

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72138.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.39
Fixed
5.10.261
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.212
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.178
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.145
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.97
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.40
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.1.5

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-72138.json"