CVE-2026-139592: RDMA/mlx5: Initialize QP/RQ/SQ resource refcount before publishing it
In the Linux kernel, the following vulnerability has been resolved:
RDMA/mlx5: Initialize QP/RQ/SQ resource refcount before publishing it
createresourcecommon() inserted the resource into the radix tree before its initialization was complete. A firmware EQE in that window finds a zero refcountt and calls refcountinc() on it; the refcount API treats this as a use-after-free, saturates the counter, and permanently breaks the resource's lifecycle tracking.
Move the initialization before the radixtreeinsert().
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Initialize the QP/RQ/SQ resource refcount before publishing the resource with radix_tree_insert().
Event History
Frequently Asked Questions
Which systems are relevant to this issue?
Systems using the Linux kernel RDMA/mlx5 path are relevant, specifically when QP, RQ, or SQ resources are being created. The issue depends on a race during resource publication and initialization.
Is a remote attacker required to trigger the condition?
The available information does not identify a remote attacker requirement. The triggering condition is a firmware EQE arriving after the resource is inserted into the radix tree but before its refcount is initialized.
What is the operational effect if the race occurs?
The zero refcount is incremented as though it were a use-after-free, causing the counter to saturate. This permanently breaks lifecycle tracking for the affected resource.