CVE-2026-139592

RDMA/mlx5: Initialize QP/RQ/SQ resource refcount before publishing it

Published Nov 30, 2026 CVSS 3.1 · 4.7 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

RDMA/mlx5: Initialize QP/RQ/SQ resource refcount before publishing it

create_resource_common() inserted the resource into the radix tree
before its initialization was complete. A firmware EQE in that window
finds a zero refcount_t and calls refcount_inc() 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 radix_tree_insert().

Analysis

AI-generated

Technical impact

In the Linux kernel the RDMA mlx5 driver’s create_resource_common() routine would insert a Queue Pair resource into the radix tree before fully initializing its reference count. During that narrow window a firmware EQE event can read the zero refcount value and call refcount_inc(), which the refcount API treats as a use‑after‑free. The counter saturates and the resource’s lifecycle tracking is permanently corrupted, potentially causing memory corruption or a crash of the kernel.

Affected Systems

Any Linux kernel using the mlx5 driver that versions prior to the commit moving the refcount initialization before radix_tree_insert() is present is affected. This includes most mainstream distributions that ship standard kernel packages with the default mlx5 module enabled.

Risk and Exploitability

No CVSS score is provided and EPSS information is unavailable. The use‑after‑free occurs in kernel space and can lead to kernel instability; it is a high‑severity flaw. The flaw can be triggered by a firmware‑generated EQE event, implying that an attacker with control over the RDMA firmware or hardware can exploit it. The vulnerability is not listed in the CISA KEV catalog.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a release that includes the commit which moves the refcount initialization before inserting the resource into the radix tree.
  • If an immediate kernel upgrade is not possible, unload or blacklist the mlx5.ko driver until the fix is applied to prevent the vulnerable code from loading.
  • Verify that the firmware on RDMA devices is from a trusted source and update it to the latest version to eliminate malicious EQE events that could trigger the flaw.

Generated by OpenCVE AI on December 1, 2026 at 13:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-366
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: RDMA/mlx5: Initialize QP/RQ/SQ resource refcount before publishing it create_resource_common() inserted the resource into the radix tree before its initialization was complete. A firmware EQE in that window finds a zero refcount_t and calls refcount_inc() 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 radix_tree_insert().
Title RDMA/mlx5: Initialize QP/RQ/SQ resource refcount before publishing it
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

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
Moderate
Public date
Nov 30, 2026, 1:36 PM