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)
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.
AI Analysis
Technical Summary
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.
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)
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
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.