CVE-2026-90308: RDMA/erdma: Hold QP references for AE and CM processing
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
RDMA/erdma: Hold QP references for AE and CM processing
AE QP fatal events and iWARP CM paths load QPs from dev->qp_xa and then use or reference them outside the xarray lock. erdma_destroy_qp() can drop the destroy-path reference and free QP resources while such a lookup is in flight.
Add erdma_qp_get_by_qpn() to acquire a kref under the xarray lock with kref_get_unless_zero(). Remove the QP from the xarray before dropping the destroy-path reference so no new lookup can acquire it while destruction waits for existing users.
The Linux kernel CVE team has assigned CVE-2026-90308 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.0 with commit 155055771704f8cbb5c176a4309b7dc30a50450c and fixed in 6.12.110 with commit 6e32f84b63c054e09392153125d7202abab2d14b Issue introduced in 6.0 with commit 155055771704f8cbb5c176a4309b7dc30a50450c and fixed in 6.18.52 with commit ec987c0654651036dad6a42f7fa2a6d7c16a3687 Issue introduced in 6.0 with commit 155055771704f8cbb5c176a4309b7dc30a50450c and fixed in 7.2.6 with commit c92686867638cda954fdb2bdbac8a75e3aa6eaae Issue introduced in 6.0 with commit 155055771704f8cbb5c176a4309b7dc30a50450c and fixed in 7.3-rc1 with commit a52eeff32024f190b3bdc99088c7becccd4fa60b
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-90308
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/hw/erdma/erdma_cm.c
drivers/infiniband/hw/erdma/erdma_eq.c
drivers/infiniband/hw/erdma/erdma_verbs.c
drivers/infiniband/hw/erdma/erdma_verbs.h
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/6e32f84b63c054e09392153125d7202abab2d14b https://git.kernel.org/stable/c/ec987c0654651036dad6a42f7fa2a6d7c16a3687 https://git.kernel.org/stable/c/c92686867638cda954fdb2bdbac8a75e3aa6eaae https://git.kernel.org/stable/c/a52eeff32024f190b3bdc99088c7becccd4fa60b