CVE-2026-139643

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

Published Nov 30, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability originates in the Linux kernel’s RDMA mlx5 driver. When a steering anchor is created successfully but a subsequent uverbs_copy_to operation fails, the error handling path releases the reference to the newly created anchor and still calls mlx5_steering_anchor_destroy_res(), which erroneously tears down shared steering resources used by other anchors with the same priority. This can free the flow table, flow groups, and rules while other anchors still rely on them, leading to a use-After-Free when those anchors are later cleaned up. The immediate consequence is a kernel crash or memory corruption.

Affected Systems

Any system running a Linux kernel that includes the buggy mlx5 driver before the commit that adds guard checks is affected. The flaw resides in the kernel’s RDMA subsystem and applies to all builds that compile the mlx5 driver, regardless of distribution. No specific kernel versions are listed in the CVE, so all earlier releases are presumed vulnerable until the patch is applied.

Risk and Exploitability

The CVSS score is not provided and the EPSS metric is unavailable. The vulnerability is not listed in the CISA KEV catalog. The attack vector is local, requiring the ability to exercise the uverbs interface and trigger an error during steering anchor creation. While no public exploit is known, the potential for kernel memory corruption makes the risk high. A crash could lead to denial of service and, in opportunistic scenarios, may allow further exploitation from the kernel panic state. Prompt remediation is recommended.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel release that includes the commit fixing the steering anchor destroy logic
  • If a kernel upgrade cannot be performed immediately, disable the RDMA subsystem or stop any services that use RDMA verbs to prevent anchor creation
  • Continuously monitor system logs for kernel panics or related crash events to detect exploitation attempts and roll out the patch promptly

Generated by OpenCVE AI on December 1, 2026 at 17:11 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Important

Type Values Removed Values Added
Weaknesses CWE-404
CWE-416
Type Values Removed Values Added
Weaknesses CWE-404
CWE-416
Type Values Removed Values Added
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.
Title RDMA/mlx5: Guard steering anchor resource destruction on create error
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-825

    Expired Pointer Dereference

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:36 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM
Severity
Important
Public date
Nov 30, 2026, 1:36 PM