RDMA/mlx5: Guard steering anchor resource destruction on create error

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

Description

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.

ProductVersions
Linux Linuxec6d49687d2b6056bf8ee35204c91e9eb1e188f1 to before afbc6bff250f559dc9819d3f31dbe937b2aca484 Affectede1f4a52ac171dd863fe89055e749ef5e0a0bc5ce to before 39d752171624b537daf283d5a41f5300e6888632 Affectede1f4a52ac171dd863fe89055e749ef5e0a0bc5ce to before d15ce29a39c451ed8bcd5ef372e49c34243c4491 Affectede1f4a52ac171dd863fe89055e749ef5e0a0bc5ce to before a6fb382415a32629042aacbd85fcb0cdadd248e9 Affectede1f4a52ac171dd863fe89055e749ef5e0a0bc5ce to before eb5d045307b4e1cb1a3235c7c8edbdd45ff45523 Affectede1f4a52ac171dd863fe89055e749ef5e0a0bc5ce to before 193aaf5b57f05d9f0403cfdaff3eda3b8d11ec13 Affected5e118e20170d9b754344f0293e40a39aae40ceb8 Affected6.1.35 to before 6.1.193 Affected6.3.9 to before 6.4 Affected
Linux Linux6.4 Affectedbefore 6.4 Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.