RDMA/mana_ib: drain QP references after partial table insertion
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.527.2.67.3In the Linux kernel, the following vulnerability has been resolved:
RDMA/mana_ib: drain QP references after partial table insertion
mana_table_store_ud_qp() publishes a QP at its send-queue id before inserting the receive-queue id, dropping the XArray lock between the two xa_insert_irq() calls. A concurrent completion handler can look up the QP and take a transient reference. When the second insertion fails, the rollback erased only the send-queue entry and returned, leaving both the initial table reference and the transient reference outstanding while RDMA core frees the QP, causing a use-after-free.
Drain the reference as normal destruction does: drop the initial reference and wait for qp->free, releasing the QP only after every concurrent lookup returns its reference.
From the CVE record · Linux
The Linux kernel’s RDMA/mana_ib QP table rollback can leave references outstanding if a second table insertion fails. A concurrent completion handler can then access a QP after RDMA core frees it, causing a use-after-free. The input does not specify whether this can be triggered remotely or requires authentication or user interaction.
Engineers running the Linux kernel should check whether their version includes the RDMA/mana_ib fix; affected versions are not specified.