CVE-2026-139254

net/mlx5: HWS, fix modify header pool creation race

Published Nov 30, 2026 CVSS 3.1 · 7 High EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

net/mlx5: HWS, fix modify header pool creation race

mlx5_cmd_hws_modify_header_alloc() creates a pool at the index after
the last one if no pool matches the pattern. TC and CT allocate modify
headers concurrently, meaning two callers can take the same index and
the second call fails with -EBUSY.

Its error path also destroys the pool it just created although another
caller may already use it. Keep such a pool since cleanup releases it.

Pools now live until cleanup so the lookup needs no lock. A miss looks
again under a mutex before creating the pool.

Tested for regressions on ConnectX-7 with firmware 28.48.1000.

Analysis

AI-generated

Technical impact

The kernel’s mlx5 driver contains a race condition in the function mlx5_cmd_hws_modify_header_alloc. When two allocations for modify headers occur concurrently, they can choose the same index, causing the second call to fail with -EBUSY. The error path also destroys the newly created pool, which may already be in use by the other caller, potentially corrupting kernel memory and leading to a crash or denial of service.

Affected Systems

All Linux kernel builds that include the mlx5 driver before the patch are affected. The vulnerability is present in any kernel version that has not yet applied the commit that moves pool cleanup to after the fix. There is no vendor‑specific version range listed, so all Linux kernel distributions that ship the unpatched mlx5 code are at risk.

Risk and Exploitability

The CVSS score is not supplied and the EPSS score is unavailable, but the flaw could be triggered by any process that requests modify header allocation concurrently, implying a local or kernel‑space attacker can induce a crash. No public exploit is known and the vulnerability is not listed in the CISA KEV catalog. The lack of a defensive lock makes the race condition easy to trigger, so the risk is moderate to high, especially on systems that run high‑traffic networking workloads.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the mlx5 modify header race fix, such as the latest stable or mainline release that contains the referenced commits.
  • Reboot the system to ensure the patched kernel is active.
  • Continuously monitor kernel logs and network traffic for any signs of modify header allocation failures or kernel panics to confirm the issue has been resolved.

Generated by OpenCVE AI on December 1, 2026 at 07:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-362
Type Values Removed Values Added
Metrics cvssV3_1

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

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: net/mlx5: HWS, fix modify header pool creation race mlx5_cmd_hws_modify_header_alloc() creates a pool at the index after the last one if no pool matches the pattern. TC and CT allocate modify headers concurrently, meaning two callers can take the same index and the second call fails with -EBUSY. Its error path also destroys the pool it just created although another caller may already use it. Keep such a pool since cleanup releases it. Pools now live until cleanup so the lookup needs no lock. A miss looks again under a mutex before creating the pool. Tested for regressions on ConnectX-7 with firmware 28.48.1000.
Title net/mlx5: HWS, fix modify header pool creation race
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

  • CWE-366

    Race Condition within a Thread

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Dec 1, 2026, 5:42 AM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Dec 1, 2026, 6:17 AM
Severity
Moderate
Public date
Nov 30, 2026, 1:33 PM