CVE-2026-139225

net/mlx5: HWS, fix modify header pool match for copy actions

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

net/mlx5: HWS, fix modify header pool match for copy actions

mlx5_fs_hws_mh_pool_match() compares a single dword of each action
since rules pass their values as arguments. Copy and add_field actions
keep their destination in the second dword and HWS reads them from the
pattern alone. Two modify headers whose copies differ only in
destination then share a pool and the second rule writes to the wrong
field.

Use the HWS core comparison that checks these actions in full.

Found while checking a Sashiko AI review report and confirmed against
the HWS pattern code. Not reproduced. No in-kernel user puts such
actions on the FDB but RDMA flow actions can. Tested for regressions on
ConnectX-7 with firmware 28.48.1000 on a little-endian host.

Analysis

AI-generated

Technical impact

The vulnerability arises from the Linux kernel's mlx5 HWS module incorrectly matching header pool actions. The function that compares actions only checks the first dword, so modify header rules that differ only in their destination field can be treated as identical pools, causing one rule to write to the wrong field. This logic flaw can corrupt kernel memory and destabilize the system. The weakness maps to incorrect input validation (CWE‑20).

Affected Systems

Affected systems include all Linux kernels that use the mlx5 device driver, without an explicit version restriction in the data. The provided CPE string covers all Linux kernel builds. Administrators of systems with Mellanox ConnectX‑7 (or other mlx5 hardware) and any kernel that implements the modified header feature should verify whether the system includes the patch.

Risk and Exploitability

No EPSS score is available and the vulnerability is not listed in CISA KEV, suggesting limited known exploitation. The CVSS score is not supplied, but the logic flaw could be exploited by an attacker who controls RDMA flow actions, which might be possible from privileged user space or via a remote RDMA endpoint. The attack requires presence of the faulty modify header logic in the kernel, so the risk is exposure to kernel instability or denial of service, especially on systems that process RDMA traffic.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the upstream kernel patch that fixes mlx5_fs_hws_mh_pool_match and recompile or install a kernel that includes this change.
  • If an immediate kernel update is not possible, disable use of modify header copy actions or RDMA flow actions that rely on mlx5 HWS, or temporarily revert to earlier firmware that does not trigger the bug.
  • Monitor kernel logs and system stability; investigate any kernel panics or unexpected packet handling after deploying the patch.

Generated by OpenCVE AI on November 30, 2026 at 20:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-20
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: net/mlx5: HWS, fix modify header pool match for copy actions mlx5_fs_hws_mh_pool_match() compares a single dword of each action since rules pass their values as arguments. Copy and add_field actions keep their destination in the second dword and HWS reads them from the pattern alone. Two modify headers whose copies differ only in destination then share a pool and the second rule writes to the wrong field. Use the HWS core comparison that checks these actions in full. Found while checking a Sashiko AI review report and confirmed against the HWS pattern code. Not reproduced. No in-kernel user puts such actions on the FDB but RDMA flow actions can. Tested for regressions on ConnectX-7 with firmware 28.48.1000 on a little-endian host.
Title net/mlx5: HWS, fix modify header pool match for copy actions
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-20

    Improper Input Validation

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:32 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM