CVE-2026-92508: RDMA/core: Fix potential use after free in ib_free_cq()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
RDMA/core: Fix potential use after free in ib_free_cq()
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_free_cq(), 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_del() call to be before the freeing of the vendor-specific resources 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.
The Linux kernel CVE team has assigned CVE-2026-92508 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.10 with commit 43d781b9fa562f0c6e50f62c870fbfeb9dc85213 and fixed in 5.15.221 with commit a804b162f9bc2b38b2ed1b4752eea9faadb1645b Issue introduced in 5.10 with commit 43d781b9fa562f0c6e50f62c870fbfeb9dc85213 and fixed in 6.1.188 with commit 91f8a17a22ab615a03743120e19935e731f28fb9 Issue introduced in 5.10 with commit 43d781b9fa562f0c6e50f62c870fbfeb9dc85213 and fixed in 6.6.157 with commit 76f2cb4f721815c3b6262a6dc2151de88646924c Issue introduced in 5.10 with commit 43d781b9fa562f0c6e50f62c870fbfeb9dc85213 and fixed in 6.12.110 with commit b8dcca427096fc9c50f1b376847fea72bc842d31 Issue introduced in 5.10 with commit 43d781b9fa562f0c6e50f62c870fbfeb9dc85213 and fixed in 6.18.52 with commit 9abea37942534eeb049335476178696b654b000c Issue introduced in 5.10 with commit 43d781b9fa562f0c6e50f62c870fbfeb9dc85213 and fixed in 7.2.6 with commit 43403fe45379c64fa6276e5a8ede44493e5d2d3d Issue introduced in 5.10 with commit 43d781b9fa562f0c6e50f62c870fbfeb9dc85213 and fixed in 7.3-rc1 with commit 29dc2f8e1c97372c2871a70088707933515fbd5b Issue introduced in 5.8.17 with commit 7ac277a01f9017fcde4f3f81670c995992945433 Issue introduced in 5.9.2 with commit 093f87dda065e0f618dd577985eccbe85efb9b54
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-92508
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/infiniband/core/cq.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/a804b162f9bc2b38b2ed1b4752eea9faadb1645b https://git.kernel.org/stable/c/91f8a17a22ab615a03743120e19935e731f28fb9 https://git.kernel.org/stable/c/76f2cb4f721815c3b6262a6dc2151de88646924c https://git.kernel.org/stable/c/b8dcca427096fc9c50f1b376847fea72bc842d31 https://git.kernel.org/stable/c/9abea37942534eeb049335476178696b654b000c https://git.kernel.org/stable/c/43403fe45379c64fa6276e5a8ede44493e5d2d3d https://git.kernel.org/stable/c/29dc2f8e1c97372c2871a70088707933515fbd5b