CVE-2026-139404: RDMA/bnxt_re: Unpublish QP table before freeing it
In the Linux kernel, the following vulnerability has been resolved:
RDMA/bnxtre: Unpublish QP table before freeing it
bnxtredevuninit() frees the QP table before the RCFW channel is disabled, so the CREQ tasklet can still look up rcfw->qptbl while it is being freed.
Clear rcfw->qptbl under tbllock before freeing it, and have the QP error notification handler bail out if the table is gone.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Under tbl_lock, clear rcfw->qp_tbl before freeing the QP table, and make the QP error notification handler bail out if the table is gone.
Event History
Frequently Asked Questions
Which systems are relevant to this issue?
Systems using the Linux kernel's bnxt_re RDMA driver are relevant. The affected path involves the driver's queue-pair table and RCFW completion-event processing during device uninitialization.
What condition triggers the unsafe access?
The condition occurs when bnxt_re device teardown frees the QP table while the RCFW channel is still active. A CREQ tasklet can then attempt to look up the table concurrently as it is being freed.
What does the available fix change?
The fix clears the RCFW QP-table pointer while holding tbl_lock before freeing the table. It also makes the QP error-notification handler stop processing when the table is no longer present.