CVE-2026-142924: RDMA/siw: Fix qp use-after-free in siw_get_base_qp()
In the Linux kernel, the following vulnerability has been resolved:
RDMA/siw: Fix qp use-after-free in siwgetbaseqp()
The reference taken by siwqpid2obj() is dropped before the address of the embedded ibqp is taken from the QP. If that reference was the last one the QP is freed and the pointer returned to the iwarp core is dangling; the core only pins the QP with iwaddref() after the call has returned.
Copy the pointer while the reference is still held.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Compensating control
In Linux kernel RDMA/siw, copy the embedded ib_qp pointer while the reference is still held in siw_get_base_qp().
Event History
Frequently Asked Questions
Why does the iWARP core's later reference acquisition not prevent the use-after-free?
The QP reference obtained by siw_qp_id2obj() can be dropped before the embedded ib_qp address is captured and returned. If that was the final reference, the QP can be freed before the iWARP core calls iw_add_ref().
What change resolves the lifetime race?
The embedded ib_qp pointer must be copied while the QP reference returned by siw_qp_id2obj() is still held. This ensures the returned pointer is obtained before the QP can be freed.