CVE-2026-99523
published high CVSS 3.1 · 7.8RDMA/uverbs: Fix DMABUF use-after-free during ufile cleanup
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux0ac6f4056c4a257f4b230b910e3e6fee6c6fc9b9 to < 0b6d8b41af154b1137efb578afb8c8fc39d136aa · 0ac6f4056c4a257f4b230b910e3e6fee6c6fc9b9 to < 2854f9025d4ef6c4566f71e52d7f496d9a0f5737 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux7.0 (affected) · 0 to < 7.0 (unaffected · semver) · 7.3.2 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-devels390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-develx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
Show 12 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macross390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-macrosx86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourceppc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sources390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-sourcex86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillaaarch64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillappc64le | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillas390x | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | kernel-source-vanillax86_64 | Advisory build | 7.3.6-2.1 | OPENSUSE-SU-2026:12733-1 |
Description
In the Linux kernel, the following vulnerability has been resolved: RDMA/uverbs: Fix DMABUF use-after-free during ufile cleanup The DMABUF release can race with ufile cleanup. When the cleanup holds hw_destroy_rwsem for write, uverbs_uobject_release() fails its trylock and leaves the uobject on the ufile list, but the dma_buf is freed as soon as the release returns. The cleanup then destroys the uobject and uses the freed dma_buf: BUG: KASAN: slab-use-after-free in uverbs_dmabuf_fd_destroy_uobj+0x46/0x200 Read of size 8 at addr ff11000109cf14b0 by task repro/435 Call Trace: uverbs_dmabuf_fd_destroy_uobj+0x46/0x200 destroy_hw_fd_uobject+0x3f/0x50 uverbs_destroy_uobject+0xc5/0x380 __uverbs_cleanup_ufile+0x1a8/0x260 uverbs_destroy_ufile_hw+0x54/0x160 ib_uverbs_close+0x34/0x110 Allocated by task 435: dma_buf_export+0x1b5/0x530 ib_uverbs_handler_UVERBS_METHOD_DMABUF_ALLOC+0x223/0x3f0 Freed by task 436: kfree+0x301/0x530 dentry_kill+0x14c/0x560 __fput+0x23a/0x4a0 rdma_user_mmap_entry_remove() dereferences the same pointer. Protect the stored dma_buf pointer with a mutex and clear it before release returns. Use a shared revoke helper so uobject destruction and mmap entry removal both skip a cleared pointer. Hold a temporary uobject reference across uverbs_uobject_release() and the pointer update. Use a separate mutex because uobject destruction can free the mmap entry before release finishes. Map and unmap use attachment->dmabuf directly, so they do not need to take the new mutex while holding the reservation lock.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: 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. AC: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. PR: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. UI: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. S: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. C: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. I: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. A: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.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 0ac6f4056c4a257f4b230b910e3e6fee6c6fc9b9 to < 0b6d8b41af154b1137efb578afb8c8fc39d136aa (affected · git)0ac6f4056c4a257f4b230b910e3e6fee6c6fc9b9 to < 2854f9025d4ef6c4566f71e52d7f496d9a0f5737 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 7.0 (affected)0 to < 7.0 (unaffected · semver)7.3.2 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
RDMA/uverbs: Fix DMABUF use-after-free during ufile cleanup
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 11160213fb76f8c06b2717a24a7e48894288d624678ba9bdd4fe65a55c6160fb
- Ingested
- 23 Nov 2026, 14:35:29 UTC
- Source record
- Official CVE record