CVE-2026-139350: IB/rdmavt: Fix error unwind path for qp_priv_init() in rvt_create_qp()
IB/rdmavt: Fix error unwind path for qpprivinit() in rvtcreateqp()
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.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 rvt_create_qp(), change the qp_priv_init() failure path to jump to bail_qpn instead of bail_rq_wq so rvt_free_qpn() releases the allocated QPN.
Event History
Frequently Asked Questions
What condition triggers the resource leak?
The leak occurs when the driver's qp_priv_init() callback fails during rvt_create_qp(), after alloc_qpn() has already allocated a queue-pair number.
What is leaked when the failure occurs?
The allocated QP number is not released because the previous error-unwind path bypassed bail_qpn and therefore did not call rvt_free_qpn().
How does the fix address the issue?
It changes the failure path for qp_priv_init() so execution goes to bail_qpn, ensuring rvt_free_qpn() frees the previously allocated QP number.