{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99523","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.420Z","datePublished":"2026-11-19T14:44:35.251Z","dateUpdated":"2026-11-22T11:08:45.929Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-22T11:08:45.929Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/uverbs: Fix DMABUF use-after-free during ufile cleanup\n\nThe DMABUF release can race with ufile cleanup. When the cleanup holds\nhw_destroy_rwsem for write, uverbs_uobject_release() fails its trylock\nand leaves the uobject on the ufile list, but the dma_buf is freed as\nsoon as the release returns. The cleanup then destroys the uobject and\nuses the freed dma_buf:\n\n  BUG: KASAN: slab-use-after-free in uverbs_dmabuf_fd_destroy_uobj+0x46/0x200\n  Read of size 8 at addr ff11000109cf14b0 by task repro/435\n  Call Trace:\n   uverbs_dmabuf_fd_destroy_uobj+0x46/0x200\n   destroy_hw_fd_uobject+0x3f/0x50\n   uverbs_destroy_uobject+0xc5/0x380\n   __uverbs_cleanup_ufile+0x1a8/0x260\n   uverbs_destroy_ufile_hw+0x54/0x160\n   ib_uverbs_close+0x34/0x110\n  Allocated by task 435:\n   dma_buf_export+0x1b5/0x530\n   ib_uverbs_handler_UVERBS_METHOD_DMABUF_ALLOC+0x223/0x3f0\n  Freed by task 436:\n   kfree+0x301/0x530\n   dentry_kill+0x14c/0x560\n   __fput+0x23a/0x4a0\n\nrdma_user_mmap_entry_remove() dereferences the same pointer.\n\nProtect the stored dma_buf pointer with a mutex and clear it before\nrelease returns. Use a shared revoke helper so uobject destruction and\nmmap entry removal both skip a cleared pointer. Hold a temporary uobject\nreference across uverbs_uobject_release() and the pointer update.\n\nUse a separate mutex because uobject destruction can free the mmap entry\nbefore release finishes. Map and unmap use attachment->dmabuf directly,\nso they do not need to take the new mutex while holding the reservation\nlock."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - UVERBS_METHOD_DMABUF_ALLOC, reached by ib_uverbs_ioctl on the /dev/infiniband/uverbsN fd from ib_uverbs_open, creates the dma_buf that dma_buf_release frees when that dma-buf fd is closed. ib_uverbs_close then uses the freed pointer in uverbs_dmabuf_fd_destroy_uobj.\nAC:L - One process holds both fds. close() of the uverbs fd takes hw_destroy_rwsem for write in uverbs_destroy_ufile_hw, and a concurrent close() of the dma-buf fd makes uverbs_uobject_release's down_read_trylock fail, so dma_buf_release kfrees the buffer before __uverbs_cleanup_ufile reaches uverbs_dmabuf_fd_destroy_uobj. list_add() leaves an earlier dmabuf uobject at the tail, so that write lock is held across the window.\nPR:L - uverbs_devnode() sets /dev/infiniband/uverbsN to mode 0666. ib_uverbs_open, ib_uverbs_ioctl, UVERBS_METHOD_GET_CONTEXT, MLX5_IB_METHOD_UAR_OBJ_ALLOC, and UVERBS_METHOD_DMABUF_ALLOC do not call capable() or require a user-namespace capability.\nUI:N - The attacker opens the uverbs device, allocates an mlx5 UAR with MLX5_IB_METHOD_UAR_OBJ_ALLOC, passes that mmap offset to UVERBS_METHOD_DMABUF_ALLOC, and closes both of their own fds.\nS:U - The fault is a use-after-free of the caller's struct dma_buf inside uverbs_dmabuf_fd_destroy_uobj during cleanup of that same ufile, which stays inside the kernel's own security authority.\nC:H - uverbs_dmabuf_fd_destroy_uobj reads the freed dma_buf's resv pointer, and dma_buf_invalidate_mappings walks attachments and calls importer_ops->invalidate_mappings. Reclaiming the dma_buf_export slab lets the attacker choose those kernel pointers and disclose memory.\nI:H - dma_resv_lock and dma_resv_unlock write the ww_mutex at the reclaimed dmabuf->resv, and dma_buf_invalidate_mappings performs an indirect call through importer_ops taken from the same freed struct dma_buf, a kernel write and control-flow primitive.\nA:H - KASAN reports a slab-use-after-free read of size 8 in uverbs_dmabuf_fd_destroy_uobj from ib_uverbs_close after dentry_kill kfrees the dma_buf. Following the freed resv or attachments list oopses or hangs the kernel."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/core/ib_core_uverbs.c","drivers/infiniband/core/uverbs.h","drivers/infiniband/core/uverbs_std_types_dmabuf.c"],"versions":[{"version":"0ac6f4056c4a257f4b230b910e3e6fee6c6fc9b9","lessThan":"0b6d8b41af154b1137efb578afb8c8fc39d136aa","status":"affected","versionType":"git"},{"version":"0ac6f4056c4a257f4b230b910e3e6fee6c6fc9b9","lessThan":"2854f9025d4ef6c4566f71e52d7f496d9a0f5737","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/ib_core_uverbs.c","drivers/infiniband/core/uverbs.h","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.2","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.2"},{"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/0b6d8b41af154b1137efb578afb8c8fc39d136aa"},{"url":"https://git.kernel.org/stable/c/2854f9025d4ef6c4566f71e52d7f496d9a0f5737"}],"title":"RDMA/uverbs: Fix DMABUF use-after-free during ufile cleanup","x_generator":{"engine":"bippy-1.2.0"}}}}