HIGH Introduced in 4.16
rdma CQDestroy UAF
CVE-2026-92511
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
KernelScan AI6.9MEDIUM
01Description
In the Linux kernel, the following vulnerability has been resolved: RDMA/core: Fix potential use after free in ib_destroy_cq_user() When accessing a CQ via the netlink path the only synchronization mechanism for the said CQ is rdma_restrack_get(). Currently, rdma_restrack_del() is invoked at the end of ib_destroy_cq_user(), which is too late, since by that point vendor-specific resources associated with the CQ might already be freed. This can leave a short window where the CQ remains accessible through restrack, leading to a potential use-after-free. Fix this by moving the rdma_restrack_begin_del() call to the start of ib_destroy_cq_user(), ensuring that the CQ is removed from restrack before its internal resources are released. This guarantees that no new users hold references to a CQ that is in the process of destruction. In addition, this change preserves the intended inverted order between create and destroy routines: resources are added to restrack at the end of successful creation, and hence shall be removed from the restrack first thing during the destruction flow, which keeps the lifecycle management consistent and predictable.
02KernelScan AI Analysis
Risk summary
A local attacker with access to the RDMA subsystem can exploit a race condition during completion queue destruction to trigger a use-after-free, potentially leading to kernel memory corruption, privilege escalation, or a system crash. Exploitation requires winning a narrow timing window between CQ teardown and a concurrent netlink resource-tracking query, and the target system must have RDMA hardware or a software RDMA module loaded.
Vulnerability analysis
When an RDMA completion queue is destroyed, the kernel used to remove it from internal tracking only after the related device resources had already been released. This left a brief window where a concurrent netlink query could still find the queue and access memory that had already been freed, resulting in a use-after-free. The fix now removes the queue from tracking at the very start of destruction so no new lookups can occur while teardown is in progress; if the teardown fails, the queue is restored to tracking. Any local process that can reach RDMA device files and issue netlink queries can trigger this race. It does not require network packets or init-namespace root privileges, but the system must have RDMA hardware or a software RDMA module loaded.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.1 | 4.16 | 6.1.188 | 42f7a0c7a940 |
| 6.12 | 4.16 | 6.12.110 | b85a148731ec |
| 6.18 | 4.16 | 6.18.52 | 197c262dbf94 |
| 6.6 | 4.16 | 6.6.157 | 253c2ed71a53 |
| 7.2 | 4.16 | 7.2.6 | 8a72a6aad84b |
| mainline | 4.16 | 7.3 | 3481bec4dfc4 |
| cip/6.1 | 4.16 | 6.1.189-cip61 | 42f7a0c7a940 |
| cip/6.1-rt | 4.16 | 6.1.189-cip61-rt32 | 42f7a0c7a940 |
| cip/6.12 | 4.16 | 6.12.111-cip32 | b85a148731ec |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.111-cip32 |
| cip/6.1 | Fixed in 6.1.189-cip61 |
| cip/6.1-rt | Fixed in 6.1.189-cip61-rt32 |
| cip/5.10 | Affected — no CIP fix yet (latest 5.10.272-cip79) |
| cip/5.10-rt | Affected — no CIP fix yet (latest 5.10.272-cip79-rt35) |
| cip/4.19 | Affected — no CIP fix yet (latest 4.19.325-cip136) |
| cip/4.19-rt | Affected — no CIP fix yet (latest 4.19.325-cip136-rt50) |