Skip to main content
EPSS 0.5%top 57%

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… (CVE-2025-40350)

0
Critical
Published: 12/16/2025 (12/16/2025, 15:30:43 UTC)
Source: GCVE Database

Description

A critical vulnerability in the Linux kernel's mlx5 network driver was resolved, addressing improper handling of non-linear xdp_buff layouts after XDP programs modify buffer data. The mlx5 driver incorrectly assumed the layout of xdp_buff remained unchanged, causing erroneous socket buffer (skb) generation and potential kernel warnings or crashes. The fix ensures skb generation correctly reflects the adjusted xdp_buff layout after XDP program execution.

CVSS v3.1

Score 9.8critical

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/30/2026, 18:08:18 UTC

Technical Analysis

The vulnerability (CVE-2025-40350) in the Linux kernel's mlx5e driver involves incorrect assumptions about the layout of xdp_buff after XDP programs modify it using bpf_xdp_adjust_tail() and bpf_xdp_adjust_head(). The mlx5 driver previously assumed the linear data area and fragments remained unchanged, leading to erroneous skb construction or kernel warnings. The fix involves recording the original fragment count, adjusting the end fragment pointer and truesize if fragments change, and building the skb with a linear data area matching the modified xdp_buff. This prevents kernel warnings and potential crashes caused by invalid skb construction.

Potential Impact

This vulnerability can cause the mlx5 driver to generate incorrect socket buffers or trigger kernel warnings and BUG_ON conditions, potentially leading to system instability or denial of service. The CVSS vector indicates it is remotely exploitable without privileges or user interaction, with high impact on confidentiality, integrity, and availability.

Mitigation Recommendations

A fix for this vulnerability has been implemented in the Linux kernel mlx5e driver. Users should apply the official kernel updates that include this patch. Since this is not a cloud service, remediation requires updating the affected Linux kernel version. Patch status is not explicitly stated here; check the vendor or Linux kernel advisories for the exact fixed kernel versions and apply updates accordingly.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-xffx-64g2-mrvp
Osv Schema Version
1.4.0
Aliases
["CVE-2025-40350"]
Database Specific Severity
CRITICAL
Cvss Version
3.1

Threat ID: 6a6b72d49c2644c7f8478bff

Added to database: 07/30/2026, 15:50:44 UTC

Last enriched: 07/30/2026, 18:08:18 UTC

Last updated: 09/10/2026, 19:38:48 UTC

Views: 28

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses