CVE-2026-139643: RDMA/mlx5: Guard steering anchor resource destruction on create error
In the Linux kernel, the following vulnerability has been resolved:
RDMA/mlx5: Guard steering anchor resource destruction on create error
The steering anchor resources are shared between anchors with the same priority and are protected by rulegototableref.
When steering anchor creation succeeds but uverbscopyto() fails, the error path drops the reference acquired for the new anchor. However, it unconditionally calls mlx5steeringanchordestroyres(), even when other anchors are still using the shared resources.
This can destroy the shared flow table, flow groups, and rules while existing anchors still hold references to them, resulting in a use-after-free when those anchors are subsequently cleaned up.
Only destroy the shared resources when dropping the reference makes rulegototableref zero, consistent with the existing cleanup path.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- 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.4 - 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 the RDMA/mlx5 steering-anchor creation error path, destroy shared steering resources only when dropping the reference makes rule_goto_table_ref zero.
Event History
Frequently Asked Questions
What conditions are required to trigger the use-after-free?
A steering anchor creation must succeed, then uverbs_copy_to() must fail. Other steering anchors with the same priority must still be using the shared steering resources when the failing creation path runs.
Which systems are exposed?
The issue is in the Linux kernel RDMA/mlx5 steering-anchor handling. Exposure depends on use of this functionality and on having multiple anchors sharing resources at the same priority; the provided data does not identify affected kernel versions or default configurations.
What happens after the faulty error path is reached?
The error path can destroy a shared flow table, flow groups, and rules even though existing anchors still reference them. A use-after-free occurs later when those existing anchors are cleaned up.
What is the required remediation?
Apply a kernel update containing the fix that destroys shared steering-anchor resources only when decrementing rule_goto_table_ref causes the reference count to reach zero. The provided references identify stable kernel commits containing the fix.