CVE-2025-40350: 
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-40350 is a kernel bug in the Linux kernel's mlx5e (Mellanox/NVIDIA ConnectX) network driver affecting the RX path for striding receive queues (RQ) when processing non-linear XDP buffers. The vulnerability arises because the driver incorrectly assumes the layout of an xdp_buff is unchanged after an XDP program runs, which can lead to erroneous socket buffer (skb) generation or a kernel BUG_ON panic. It was published on December 16, 2025, and affects the Linux kernel across multiple stable branches. The EPSS score is approximately 0.018% (very low), and no CVSS score has been formally assigned at this time (Feedly).

Technical details

The root cause is improper handling of xdp_buff layout changes made by XDP programs via bpf_xdp_adjust_tail() and bpf_xdp_adjust_head() in the mlx5e striding RQ path (CWE-20: Improper Input Validation). When an XDP program adds linear data via bpf_xdp_adjust_head(), the driver's mlx5e_build_linear_skb() ignores it and builds an skb without linear data, then incorrectly pulls from fragments. When an XDP program shrinks non-linear data via bpf_xdp_adjust_tail(), the delta passed to __pskb_pull_tail() can exceed the actual non-linear data size, triggering a BUG_ON assertion in the kernel. The fix records the original fragment count before the XDP program runs, rewinds the end fragment pointer by the difference if fragments change, recalculates truesize, and builds the skb to match the actual post-XDP xdp_buff layout (Feedly).

Impact

Successful triggering of this vulnerability can cause a kernel panic (BUG_ON) on systems using Mellanox/NVIDIA mlx5e NICs with XDP programs loaded on striding RQs, resulting in a denial of service (system crash). Additionally, incorrect skb construction could lead to memory corruption or data integrity issues in network packet processing. The impact is limited to systems with mlx5e hardware and active XDP programs that modify buffer layout; it is not remotely exploitable without local or privileged access to load BPF/XDP programs (Feedly).

Exploitability

There is no known public exploit code or evidence of in-the-wild exploitation for CVE-2025-40350. The vulnerability requires the ability to load and run XDP programs on an mlx5e interface, which typically requires CAP_NET_ADMIN or equivalent privileges. The EPSS score is approximately 0.018%, indicating a very low probability of exploitation in the near term. CVE-2025-40350 is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog (Feedly).

Mitigation and workarounds

Apply the upstream Linux kernel patches that fix the mlx5e striding RQ skb generation logic. The fixes are available in the stable kernel git tree at commits 8b051d7f530e, 87bcef158ac1, cb9edd583e23, and f2557d7fa38e. Distributions including SUSE (SUSE-2026-0447) and Red Hat have issued or are tracking advisories for this CVE; users should apply the relevant vendor kernel updates as they become available. As a temporary workaround, disabling XDP programs on mlx5e interfaces using striding RQs will prevent the vulnerable code path from being triggered (Feedly).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

linux

Fixed

sid

linux: 6.17.6-1

Fixed

trixie

linux: 6.12.57-1

Fixed

Ubuntu

Fixed

bionic

linux

Not Affected

bionic (esm-infra)

linux

Not Affected

bionic (fips-updates)

linux-fips

Not Affected

bionic (fips)

linux-fips

Not Affected

devel

linux

Not Affected

focal

linux

Not Affected

focal (esm-infra)

linux

Not Affected

focal (fips-updates)

linux-fips

Not Affected

RHEL / CentOS

Affected

RHEL 8

Not Affected

RHEL 9

kernel-rt.src

Affected

RHEL 10

kernel.src

Affected

Source: This report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-99099NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-modules
NoYesOct 26, 2026
CVE-2026-99098NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-debug
NoYesOct 26, 2026
CVE-2026-99097NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-core
NoYesOct 26, 2026
CVE-2026-99096NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-debug
NoYesOct 26, 2026
CVE-2026-99094NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-core
NoYesOct 26, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management