CVE-2026-138856: xen/gntdev: Fix gntdev_dmabuf ref leak in dmabuf_exp_wait_released()
In the Linux kernel, the following vulnerability has been resolved:
xen/gntdev: Fix gntdevdmabuf ref leak in dmabufexpwaitreleased()
dmabufexpwaitreleased() takes a reference on the exported gntdevdmabuf with dmabufexpwaitobjgetdmabuf() and passes it to dmabufexpwaitobjnew(), which drops that reference after adding the wait object to the wait list. When the wait object allocation fails, dmabufexpwaitobjnew() returns ERRPTR(-ENOMEM) early and the reference is never dropped, leaking a reference to the exported gntdevdmabuf.
Drop the reference on the allocation failure path so the reference is consumed whether the wait object is created or not.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In dmabuf_exp_wait_released(), drop the gntdev_dmabuf reference when wait-object allocation fails so the reference is released whether or not the wait object is created.