RDMA/uverbs: Fix uobject leak in DMABUF release

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

RDMA/uverbs: Fix uobject leak in DMABUF release

uverbs_dmabuf_release() treats a NULL uobj->context as an aborted allocation, but normal ufile cleanup also clears it. Closing the uverbs FD before the dma-buf FD therefore skips uverbs_uobject_release() and leaks the uobject and ufile references.

Clear dmabuf->priv before dma_buf_put() on allocation failure and use that NULL pointer to identify an abort. Otherwise, always call uverbs_uobject_release(). This also avoids reading a freed uobject if release is deferred until after the allocation has been aborted.

ProductVersions
Linux Linux0ac6f4056c4a257f4b230b910e3e6fee6c6fc9b9 to before 28435e18a0dc1316e7b4bd702bfe10457f729c8e Affected0ac6f4056c4a257f4b230b910e3e6fee6c6fc9b9 to before 4a953ee228f5544a3e5515eed88bf09d1a5adb94 Affected
Linux Linux7.0 Affectedbefore 7.0 Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.