CVE-2026-138856

xen/gntdev: Fix gntdev_dmabuf ref leak in dmabuf_exp_wait_released()

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

xen/gntdev: Fix gntdev_dmabuf ref leak in dmabuf_exp_wait_released()

dmabuf_exp_wait_released() takes a reference on the exported
gntdev_dmabuf with dmabuf_exp_wait_obj_get_dmabuf() and passes it to
dmabuf_exp_wait_obj_new(), which drops that reference after adding the
wait object to the wait list. When the wait object allocation fails,
dmabuf_exp_wait_obj_new() returns ERR_PTR(-ENOMEM) early and the
reference is never dropped, leaking a reference to the exported
gntdev_dmabuf.

Drop the reference on the allocation failure path so the reference is
consumed whether the wait object is created or not.

Analysis

AI-generated

Technical impact

dmabuf_exp_wait_released() in the Xen gntdev subsystem retains a reference to the exported DMA buffer when the wait‑object allocation fails. Because the reference count is never decremented, the buffer persists beyond its intended lifetime, resulting in a reference leak. Repeated allocation failures can accumulate unreleased references, driving kernel memory pressure and potentially leading to a denial‑of‑service on the host system.

Affected Systems

The flaw is present in the Linux kernel’s Xen gntdev driver, used by all Xen virtual machines running on a Linux host. No explicit kernel version range is supplied, indicating that any kernel containing the unpatched gntdev code may be affected.

Risk and Exploitability

Exact CVSS scoring is not available, and EPSS data is missing; the vulnerability is not listed in CISA KEV, suggesting no known widespread exploitation. While the fault does not provide arbitrary code execution, its reference leak could be triggered through Xen guest requests that invoke dmabuf_exp_wait_released(). Under normal operation the attack probability is low, but an attacker who can induce repeated allocation failures could force the kernel into memory exhaustion and cause a denial‑of‑service. The attack vector is inferred from the description as xen guest‑initiated dmabuf export wait operations.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply an updated Linux kernel that includes the gntdev_dmabuf reference‑count fix.
  • If an update is not immediately possible, reduce the load on the Xen gntdev subsystem by limiting dma‑buf export requests or restarting the faulting services to clear leaked references.
  • Continuously monitor host memory usage, OOM killer activity, and reference‑count metrics to detect abnormal growth indicative of the leak.

Generated by OpenCVE AI on November 30, 2026 at 17:10 UTC.

Tracking

Sign in to view the affected projects.

Exploits

Explore public exploit intelligence with OpenCVE Pro.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-401
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: xen/gntdev: Fix gntdev_dmabuf ref leak in dmabuf_exp_wait_released() dmabuf_exp_wait_released() takes a reference on the exported gntdev_dmabuf with dmabuf_exp_wait_obj_get_dmabuf() and passes it to dmabuf_exp_wait_obj_new(), which drops that reference after adding the wait object to the wait list. When the wait object allocation fails, dmabuf_exp_wait_obj_new() returns ERR_PTR(-ENOMEM) early and the reference is never dropped, leaking a reference to the exported gntdev_dmabuf. Drop the reference on the allocation failure path so the reference is consumed whether the wait object is created or not.
Title xen/gntdev: Fix gntdev_dmabuf ref leak in dmabuf_exp_wait_released()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-401

    Missing Release of Memory after Effective Lifetime

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:25 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:17 PM
Modified
Nov 30, 2026, 2:17 PM