CVE-2025-40350

CRITICAL

In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: RX, Fix generating skb from non-linear xdp_buff for striding RQ XDP programs can change the layout of an xdp_buff th...

Affects 1 product across 5 vendors.

CVSS 3.19.8
EPSS0.5%
Percentile45th
PatchUnknown
CVSS Vector — Plain English Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
◆ AI Analysis — automated analysis, not human-reviewed

A vulnerability in the Linux kernel's mlx5e driver could allow an attacker to exploit incorrect handling of xdp_buff layout changes, potentially leading to memory corruption or other unspecified impacts.

BSID: BS-2025-GLOBAL-259149-I • Model: /workspace/models/qwen2.5-coder-32b-instruct-bf16 • Confidence: MEDIUM

Is this CVE in your environment?

BreachSpider monitors your ICS/OT environment for vulnerabilities like this one. No agents or network access required. Free to start.

Check My Environment →
Frequently Asked Questions
What is CVE-2025-40350?
A vulnerability in the Linux kernel's mlx5e driver could allow an attacker to exploit incorrect handling of xdp_buff layout changes, potentially leading to memory corruption or other unspecified impacts.
What is the CVSS score for CVE-2025-40350?
CVE-2025-40350 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 0.5%.
Is CVE-2025-40350 actively exploited?
No confirmed active exploitation of CVE-2025-40350 as of 2026-10-16.
How do I remediate CVE-2025-40350?
Priority: MEDIUM.
What systems are affected by CVE-2025-40350?
CVE-2025-40350 affects Cannot; Kernel; Linear; Linux Linux; Program.
Vulnerability Details
CVE IDCVE-2025-40350
BSIDBS-2025-GLOBAL-259149-I BreachSpider Global ID
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published2025-12-16
Last Modified2026-10-14
ICS Relevance0%
SourceNVD
Official Description

In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: RX, Fix generating skb from non-linear xdp_buff for striding RQ XDP programs can change the layout of an xdp_buff through bpf_xdp_adjust_tail() and bpf_xdp_adjust_head(). Therefore, the driver cannot assume the size of the linear data area nor fragments. Fix the bug in mlx5 by generating skb according to xdp_buff after XDP programs run. Currently, when handling multi-buf XDP, the mlx5 driver assumes the layout of an xdp_buff to be unchanged. That is, the linear data area continues to be empty and fragments remain the same. This may cause the driver to generate erroneous skb or triggering a kernel warning. When an XDP program added linear data through bpf_xdp_adjust_head(), the linear data will be ignored as mlx5e_build_linear_skb() builds an skb without linear data and then pull data from fragments to fill the linear data area. When an XDP program has shrunk the non-linear data through bpf_xdp_adjust_tail(), the delta passed to __pskb_pull_tail() may exceed the actual nonlinear data size and trigger the BUG_ON in it. To fix the issue, first record the original number of fragments. If the number of fragments changes after the XDP program runs, rewind the end fragment pointer by the difference and recalculate the truesize. Then, build the skb with the linear data area matching the xdp_buff. Finally, only pull data in if there is non-linear data and fill the linear part up to 256 bytes.

Source: NIST NVD / MITRE CVE Database

Attack Vector Analysis — CITED Relevance

An attacker could craft XDP programs that modify the layout of xdp_buff using bpf_xdp_adjust_tail() and bpf_xdp_adjust_head(). This could cause the mlx5e driver to incorrectly generate skbs, leading to memory corruption or other issues.

Exploitation Likelihood: MEDIUM

Affected Products
VendorProductAffected Versions
Cannot — —
Kernel — —
Linear — —
Linux Linux 6.4
Program — —
Remediation

No official vendor advisory link on record. See the CVE record →

Threat Intelligence
● Threat Intelligence Validated: October 2026 | Threat Age: 303 Days
CISA known-exploitedNot in KEV catalog
Public ExploitNot confirmed
PoC CodeNot confirmed
AI Enrichment Record — provenance & audit hash
Model/workspace/models/qwen2.5-coder-32b-instruct-bf16
ConfidenceMEDIUM
Enriched At2026-05-24
SHA-512 Audit Hashe0cb44057d958eec7694a8012c6f46b781600dca50015f10be204a5e749cf5fec0e3f30527f37f6472eecfd8d3a3598ec84437ead85896d0aa8f799ca4f5282f
Related CVEs affecting Cannot
CVE-2025-43982 9.8 Shenzhen Tuoshi NR500-EA RG500UEAABxCOMSLICv3.4.2731.16.43 devices enable the... CVE-2025-30519 9.8 Dover Fueling Solutions ProGauge MagLink LX4 Devices have default root creden... CVE-2025-40343 9.8 In the Linux kernel, the following vulnerability has been resolved: nvmet-fc... CVE-2025-68359 9.8 In the Linux kernel, the following vulnerability has been resolved: btrfs: f... CVE-2020-36846 9.8 A buffer overflow, as described in CVE-2020-8927, exists in the embedded Brot...
View all Cannot CVEs →

Critical Severity - Know Your Exposure

A CVSS 9.8 vulnerability in your ICS environment cannot wait. BreachSpider maps critical CVEs to your specific assets and tells you what to fix first.

Create a free account →