VDB

CVE-2026-72138

CVE-2026-72138 PUBLISHED

xen/gntdev: fix error handling in ioctl

Reported by linux · Published August 15, 2026

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-tools-develAmazon Linux1:6.1.180-225.360.amzn2023
kernel6.12Amazon Linux1:6.12.100-125.179.amzn2023
kernel-headersAmazon Linux1:6.1.180-225.360.amzn2023
microvm-kernel6.18Amazon Linux1:6.18.41-94.142.amzn2023

Affected products

VendorProductVersions
LinuxLinux68b025c813c2eb41ff25628e3d4952d5185eb1a4, 68b025c813c2eb41ff25628e3d4952d5185eb1a4, 68b025c813c2eb41ff25628e3d4952d5185eb1a4
LinuxLinux2.6.39, 0, 5.10.261
amazon:2023kernel-tools-devel0
amazon:2023kernel6.120
amazon:2023kernel-headers0
amazon:2023microvm-kernel6.180
linuxlinux_kernel2.6.39, 2.6.39, 2.6.39
amazon:2023kernel6.12-devel0
amazon:2023kernel6.12-headers0
amazon:2023kernel-modules-extra0
amazon:2023kernel6.18-modules-extra-common0
LinuxLinux7.2, 68b025c813c2eb41ff25628e3d4952d5185eb1a4, 68b025c813c2eb41ff25628e3d4952d5185eb1a4
amazon:2023kernel-livepatch-6.1.180-225.3600
amazon:2023bpftool6.120
amazon:2023bpftool6.180
amazon:2023kernel6.12-tools0
amazon:2023perf6.180
amazon:2023kernel-devel0
amazon:2023kernel0
amazon:2023python3-perf0

…and 18 more

Timeline

  • Aug 15, 2026 Coalition ESS Score
  • Aug 15, 2026 CVE Published
  • Aug 19, 2026 Security Advisory
  • Aug 24, 2026 EPSS Score (19 in total, the first dated here)
  • Nov 6, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-72138
vulnetix vdb fixes CVE-2026-72138

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-72138/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›