CVE-2026-99523 (GCVE-0-2026-99523)
Vulnerability from cvelistv5 – Published: 2026-11-19 14:44 – Updated: 2026-11-22 11:08
VLAI
EPSS
VEX
Title
RDMA/uverbs: Fix DMABUF use-after-free during ufile cleanup
Summary
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.
Severity
7.8 (High)
Assigner
References
Impacted products
2 products
| Vendor | Product | Version | |
|---|---|---|---|
| Linux | Linux |
Affected:
0ac6f4056c4a257f4b230b910e3e6fee6c6fc9b9 , < 0b6d8b41af154b1137efb578afb8c8fc39d136aa
(git)
Affected: 0ac6f4056c4a257f4b230b910e3e6fee6c6fc9b9 , < 2854f9025d4ef6c4566f71e52d7f496d9a0f5737 (git) |
|
| Linux | Linux |
Affected:
7.0
Unaffected: 0 , < 7.0 (semver) Unaffected: 7.3.2 , ≤ 7.3.* (semver) Unaffected: 7.4-rc1 , ≤ * (original_commit_for_fix) |
{
"containers": {
"cna": {
"affected": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"drivers/infiniband/core/ib_core_uverbs.c",
"drivers/infiniband/core/uverbs.h",
"drivers/infiniband/core/uverbs_std_types_dmabuf.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "0b6d8b41af154b1137efb578afb8c8fc39d136aa",
"status": "affected",
"version": "0ac6f4056c4a257f4b230b910e3e6fee6c6fc9b9",
"versionType": "git"
},
{
"lessThan": "2854f9025d4ef6c4566f71e52d7f496d9a0f5737",
"status": "affected",
"version": "0ac6f4056c4a257f4b230b910e3e6fee6c6fc9b9",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"drivers/infiniband/core/ib_core_uverbs.c",
"drivers/infiniband/core/uverbs.h",
"drivers/infiniband/core/uverbs_std_types_dmabuf.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "7.0"
},
{
"lessThan": "7.0",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "7.3.*",
"status": "unaffected",
"version": "7.3.2",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "7.4-rc1",
"versionType": "original_commit_for_fix"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "7.3.2",
"versionStartIncluding": "7.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionEndExcluding": "7.4-rc1",
"versionStartIncluding": "7.0",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
]
}
],
"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-\u003edmabuf directly,\nso they do not need to take the new mutex while holding the reservation\nlock."
}
],
"metrics": [
{
"cvssV3_1": {
"baseScore": 7.8,
"baseSeverity": "HIGH",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"version": "3.1"
},
"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\u0027s 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\u0027s struct dma_buf inside uverbs_dmabuf_fd_destroy_uobj during cleanup of that same ufile, which stays inside the kernel\u0027s own security authority.\nC:H - uverbs_dmabuf_fd_destroy_uobj reads the freed dma_buf\u0027s resv pointer, and dma_buf_invalidate_mappings walks attachments and calls importer_ops-\u003einvalidate_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-\u003eresv, 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."
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-22T11:08:45.929Z",
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux"
},
"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"
}
}
},
"cveMetadata": {
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"assignerShortName": "Linux",
"cveId": "CVE-2026-99523",
"datePublished": "2026-11-19T14:44:35.251Z",
"dateReserved": "2026-09-25T10:25:14.420Z",
"dateUpdated": "2026-11-22T11:08:45.929Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"vulnerability-lookup:meta": {
"epss": {
"cve": "CVE-2026-99523",
"date": "2026-11-22",
"epss": "0.00156",
"percentile": "0.04745"
},
"nvd": {
"cve": {
"affected": [
{
"affectedData": [
{
"defaultStatus": "unaffected",
"product": "Linux",
"programFiles": [
"drivers/infiniband/core/ib_core_uverbs.c",
"drivers/infiniband/core/uverbs.h",
"drivers/infiniband/core/uverbs_std_types_dmabuf.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"lessThan": "0b6d8b41af154b1137efb578afb8c8fc39d136aa",
"status": "affected",
"version": "0ac6f4056c4a257f4b230b910e3e6fee6c6fc9b9",
"versionType": "git"
},
{
"lessThan": "2854f9025d4ef6c4566f71e52d7f496d9a0f5737",
"status": "affected",
"version": "0ac6f4056c4a257f4b230b910e3e6fee6c6fc9b9",
"versionType": "git"
}
]
},
{
"defaultStatus": "affected",
"product": "Linux",
"programFiles": [
"drivers/infiniband/core/ib_core_uverbs.c",
"drivers/infiniband/core/uverbs.h",
"drivers/infiniband/core/uverbs_std_types_dmabuf.c"
],
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"versions": [
{
"status": "affected",
"version": "7.0"
},
{
"lessThan": "7.0",
"status": "unaffected",
"version": "0",
"versionType": "semver"
},
{
"lessThanOrEqual": "7.3.*",
"status": "unaffected",
"version": "7.3.2",
"versionType": "semver"
},
{
"lessThanOrEqual": "*",
"status": "unaffected",
"version": "7.4-rc1",
"versionType": "original_commit_for_fix"
}
]
}
],
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
}
],
"cveTags": [],
"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-\u003edmabuf directly,\nso they do not need to take the new mutex while holding the reservation\nlock."
}
],
"id": "CVE-2026-99523",
"lastModified": "2026-11-22T11:16:55.130",
"metrics": {
"cvssMetricV31": [
{
"cvssData": {
"attackComplexity": "LOW",
"attackVector": "LOCAL",
"availabilityImpact": "HIGH",
"baseScore": 7.8,
"baseSeverity": "HIGH",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"privilegesRequired": "LOW",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"version": "3.1"
},
"exploitabilityScore": 1.8,
"impactScore": 5.9,
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"type": "Secondary"
}
]
},
"published": "2026-11-19T15:18:07.927",
"references": [
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/0b6d8b41af154b1137efb578afb8c8fc39d136aa"
},
{
"source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"url": "https://git.kernel.org/stable/c/2854f9025d4ef6c4566f71e52d7f496d9a0f5737"
}
],
"sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"vulnStatus": "Received"
}
},
"redhat_vex": {
"aggregate_severity": "Important",
"current_release_date": "2026-11-22T11:31:20+00:00",
"cve": "CVE-2026-99523",
"id": "CVE-2026-99523",
"initial_release_date": "2026-11-19T14:44:35.251000+00:00",
"product_status:known_affected": "1",
"product_status:known_not_affected": "203",
"source": "Red Hat CSAF VEX",
"status": "final",
"title": "kernel: kernel: Privilege escalation via use-after-free in RDMA uverbs",
"url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-99523.json",
"version": "3"
}
}
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…
The MITRE ATT&CK techniques below are AI-generated suggestions, inferred from the description of the
vulnerability by the CIRCL/vulnerability-attack-technique-classification-roberta-base
model, served locally by ML-Gateway.
They have not been verified by an analyst and are provided for guidance only.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Loading…
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.
Loading…