{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-100031","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.454Z","datePublished":"2026-11-30T13:23:14.603Z","dateUpdated":"2026-12-01T05:39:40.626Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:39:40.626Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/uverbs: Fix uobject leak in DMABUF release\n\nuverbs_dmabuf_release() treats a NULL uobj->context as an aborted\nallocation, but normal ufile cleanup also clears it. Closing the uverbs\nFD before the dma-buf FD therefore skips uverbs_uobject_release() and\nleaks the uobject and ufile references.\n\nClear dmabuf->priv before dma_buf_put() on allocation failure and use\nthat NULL pointer to identify an abort. Otherwise, always call\nuverbs_uobject_release(). This also avoids reading a freed uobject if\nrelease is deferred until after the allocation has been aborted."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The bug is in uverbs_dmabuf_release() and the UVERBS_METHOD_DMABUF_ALLOC handler, reached only via ioctl(RDMA_VERBS_IOCTL) on /dev/infiniband/uverbsN and close() of the dma-buf fd it returns; no remote peer supplies any data, and the fd-close ordering and mmap pgoff are local syscall inputs.\nAC:H - The plain leak is deterministic, but the UAF path needs DMABUF_ALLOC to race mlx5 UAR_OBJ_DESTROY (rdma_user_mmap_entry_remove sets driver_removed) to hit err_revoked, and then an RCU grace period plus kvfree_rcu drain must complete before the deferred dma-buf fput task_work runs uverbs_dmabuf_release(); the attacker can only widen that window via preemption.\nPR:L - uverbs_devnode() creates uverbsN with mode 0666 and ib_uverbs_open() checks only rdma_dev_access_netns(); creating a ucontext, an mlx5 UAR object for the mmap pgoff and a DMABUF object need no capability, so any local user on an mlx5 host (CONFIG_PCI_P2PDMA, pcim_p2pdma_init at probe) can do it.\nUI:N - The attacker opens the uverbs fd, allocates the dma-buf and closes the two fds in the order they choose (uverbs fd first), or runs the alloc/destroy race from their own threads; no other user has to act.\nS:U - Both the leaked ib_uverbs_file and the freed ib_uverbs_dmabuf_file are kernel heap objects in the same kernel authority the attacker escalates within; no guest/host, IOMMU or sandbox boundary is involved.\nC:H - On the err_revoked path rdma_alloc_abort_uobject() frees the uobject via kfree_rcu while dmabuf->priv still points at it, and uverbs_dmabuf_release() reads priv->uobj.context; a reclaimed non-NULL value makes it call uverbs_uobject_release() on sprayed memory, dereferencing fake uobj->ufile and uapi_object pointers.\nI:H - That call on the reclaimed object does list_del_init on uobj->list, kref_put on the fake ufile->ref, an indirect type_class->destroy_hw call through uobj->uapi_object when uobj->object is set, and kfree_rcu() of the sprayed object, giving write, invalid-free and control-flow primitives.\nA:H - Closing uverbs before the dma-buf makes uverbs_dmabuf_release() see uobj.context==NULL and skip uverbs_uobject_release(), so the ufile kref is never put and ib_uverbs_file, every uobject in its idr and the dmabuf uobject leak (GFP_KERNEL, not memcg-charged); looping this exhausts memory, and the UAF path can oops."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/core/uverbs_std_types_dmabuf.c"],"versions":[{"version":"0ac6f4056c4a257f4b230b910e3e6fee6c6fc9b9","lessThan":"28435e18a0dc1316e7b4bd702bfe10457f729c8e","status":"affected","versionType":"git"},{"version":"0ac6f4056c4a257f4b230b910e3e6fee6c6fc9b9","lessThan":"4a953ee228f5544a3e5515eed88bf09d1a5adb94","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/core/uverbs_std_types_dmabuf.c"],"versions":[{"version":"7.0","status":"affected"},{"version":"0","lessThan":"7.0","status":"unaffected","versionType":"semver"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.0","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.0","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/28435e18a0dc1316e7b4bd702bfe10457f729c8e"},{"url":"https://git.kernel.org/stable/c/4a953ee228f5544a3e5515eed88bf09d1a5adb94"}],"title":"RDMA/uverbs: Fix uobject leak in DMABUF release","x_generator":{"engine":"bippy-1.2.0"}}}}