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

Published Aug 15, 2026
·
Updated

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.

Affected Software

1 affected component
Linux Linux kernel

Event History

Aug 15, 2026
CVE Published
via MITRE·05:53 AM
Data Sourced
via MITRE·05:53 AM
Description
Data Sourced
via NVD·06:21 AM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-72138?

CVE-2026-72138 has a risk rating of 27, indicating a potentially high impact.

2

How do I fix CVE-2026-72138?

Fixing CVE-2026-72138 involves updating the Linux kernel to a version where the issue has been addressed.

3

What are the potential consequences of CVE-2026-72138?

CVE-2026-72138 may lead to improper error handling, which can result in unexpected behaviors in applications using the Linux kernel.

4

Who is affected by CVE-2026-72138?

CVE-2026-72138 affects users running vulnerable versions of the Linux kernel that implement gntdev functionality.

5

Is CVE-2026-72138 related to virtualization?

Yes, CVE-2026-72138 pertains to the gntdev driver in the Linux kernel, which is used in virtualization contexts for memory management.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203