HIGH Introduced in 6.0
erdma QPRef UAF
CVE-2026-90308
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
KernelScan AI7.0HIGH
01Description
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.
02KernelScan AI Analysis
Risk summary
A local user with access to an erdma RDMA device can exploit a race between Queue Pair destruction and asynchronous event or connection manager processing to trigger a use-after-free, potentially achieving kernel code execution or causing a panic. The vulnerability requires the Alibaba erdma RDMA driver to be loaded and the attacker to have device access. Exploitation difficulty is elevated due to the race condition timing requirements.
Vulnerability analysis
The erdma RDMA driver looks up Queue Pairs from its device-wide table during asynchronous event handling and iWARP connection management, but does so without taking a reference on the QP object before using it outside the table lock. If another thread destroys the QP concurrently—dropping the last reference and freeing the QP's memory—the event or connection manager handler continues to access freed memory. The fix introduces an atomic lookup-and-reference helper that acquires a reference while holding the table lock, and reorders QP destruction to remove the entry from the lookup table before releasing the destroy-path reference, ensuring no new lookups can find a QP that is being torn down. The vulnerable code path is reachable by any local user with access to the erdma RDMA device, which is typically granted through device file permissions; the race must be won between QP destruction and event processing.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.1 | 6.0 | 6.1.191 | 92101d7bd67c |
| 6.12 | 6.0 | 6.12.110 | 6e32f84b63c0 |
| 6.18 | 6.0 | 6.18.52 | ec987c065465 |
| 6.6 | 6.0 | 6.6.160 | 233f1b7fe298 |
| 7.2 | 6.0 | 7.2.6 | c92686867638 |
| mainline | 6.0 | 7.3 | a52eeff32024 |
| cip/6.12 | 6.0 | 6.12.111-cip32 | 6e32f84b63c0 |
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 | Affected — no CIP fix yet (latest 6.1.190-cip62) |
| cip/6.1-rt | Affected — no CIP fix yet (latest 6.1.189-cip61-rt32) |