{"apiVersion":"1.0","identifier":"CVE-2026-72138","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.","publishedAt":"2026-08-15T06:21:31","lastModifiedAt":"2026-08-17T06:18:13","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-72138","cvssScore":null,"cvssVector":"Pending","epssProbability":0.00216,"riskScore":0,"affectedProduct":"Linux kernel","affectedVersions":"unknown","vulnerabilityType":"Kernel","operatingSystems":[],"links":{"self":"https://www.redsauce.net/api/cves/CVE-2026-72138","webPages":{"es":"https://www.redsauce.net/es/cves/CVE-2026-72138","en":"https://www.redsauce.net/en/cves/CVE-2026-72138","fr":"https://www.redsauce.net/fr/cves/CVE-2026-72138","pt":"https://www.redsauce.net/pt/cves/CVE-2026-72138","de":"https://www.redsauce.net/de/cves/CVE-2026-72138","sk":"https://www.redsauce.net/sk/cves/CVE-2026-72138","el":"https://www.redsauce.net/el/cves/CVE-2026-72138"},"source":"https://nvd.nist.gov/vuln/detail/CVE-2026-72138"}}