Use-after-free in Linux kernel RDMA/mlx5 steering anchor cleanup
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from CNA.
Summary
The Linux kernel RDMA mlx5 driver is affected from 6.1.35 before 6.1.193, from 6.3.9 before 6.4, and from 6.4 onward. When creating a steering anchor succeeds but copying the result to user space fails, the error path destroys shared flow table, flow group and rule resources while other anchors still reference them. This leads to a use-after-free when those anchors are cleaned up.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
Description from the CNA
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 rule_goto_table_ref. When steering anchor creation succeeds but uverbs_copy_to() fails, the error path drops the reference acquired for the new anchor. However, it unconditionally calls mlx5_steering_anchor_destroy_res(), 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 rule_goto_table_ref zero, consistent with the existing cleanup path.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
Upgrade the Linux kernel to a fixed version: 6.1.193, 6.4, 6.6.163, 6.12.119, 6.18.65, 7.3.6 or 7.4-rc1, depending on the branch in use.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
- Fix · CNA Linux (Linux) Fixed in 6.1.193, 6.4
- Fix · CNA Linux (Linux) Fixed in 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6, 7.4-rc1
Timeline
- 2026-11-30 Threatist record created from CVE-2026-139643
- 2026-11-30 Alias added: GHSA-cv2p-pchp-vgc5
References
Other 6
- https://git.kernel.org/stable/c/afbc6bff250f559dc9819d3f31dbe937b2aca484
- https://git.kernel.org/stable/c/39d752171624b537daf283d5a41f5300e6888632
- https://git.kernel.org/stable/c/d15ce29a39c451ed8bcd5ef372e49c34243c4491
- https://git.kernel.org/stable/c/a6fb382415a32629042aacbd85fcb0cdadd248e9
- https://git.kernel.org/stable/c/eb5d045307b4e1cb1a3235c7c8edbdd45ff45523
- https://git.kernel.org/stable/c/193aaf5b57f05d9f0403cfdaff3eda3b8d11ec13
More Linux vulnerabilities
- TI-2025-26358 Zero-length TLS records mishandled on rx_list in Linux kernel KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 Out-of-bounds write in Linux kernel ebtables SNAT ARP rewrite KEVCVSS 3.1HIGH 8.8
- TI-2021-02452 Overlayfs flaw in Linux kernel lets attackers gain elevated privileges KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 Missing address checks in Linux kernel get_user and put_user on ARM KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Heap overflow in Linux kernel lets local users escalate privileges KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 Wrong integer type in Linux kernel perf_swevent_init KEVCVSS 3.1HIGH 8.4
Sources
- CVE-2026-139643 · CVE Program
- CVE-2026-139643 · NVD
- GHSA-cv2p-pchp-vgc5 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences