RDMA/siw: Fix QP destroy to wait for all references dropped.
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 |
|
|
In the Linux kernel, the following vulnerability has been resolved:
RDMA/siw: Fix QP destroy to wait for all references dropped.
Delay QP destroy completion until all siw references to QP are dropped. The calling RDMA core will free QP structure after successful return from siw_qp_destroy() call, so siw must not hold any remaining reference to the QP upon return. A use-after-free was encountered in xfstest generic/460, while testing NFSoRDMA. Here, after a TCP connection drop by peer, the triggered siw_cm_work_handler got delayed until after QP destroy call, referencing a QP which has already freed.
From the CVE record · Linux
The Linux kernel’s RDMA/siw QP destruction can return while references to the QP remain, leading to a use-after-free. The issue was observed during NFSoRDMA testing when a peer dropped a TCP connection and delayed work referenced a QP that had already been freed. The input does not specify authentication requirements or user interaction.
Engineers running Linux kernels with RDMA/siw should check their kernel versions against the vendor advisory; affected versions are not specified in the input.