Skip to main content
EPSS 0.1%top 96%

In the Linux kernel, the following vulnerability has been resolved: xsk: Harden userspace-supplied xdp_desc validation Turned out certain clearly… (CVE-2025-40159)

0
High
Published: 11/12/2025 (11/12/2025, 12:30:28 UTC)
Source: GCVE Database

Description

A vulnerability in the Linux kernel's xsk (AF_XDP socket) subsystem related to insufficient validation of userspace-supplied xdp_desc structures has been resolved. Invalid values in xdp_desc can bypass validation checks, potentially causing undefined behavior or queuing invalid frames for transmission. Specifically, desc->len values near the maximum 32-bit unsigned integer with non-zero tx_metadata_len can cause integer overflow, and low desc->addr values can cause negative overflow, both allowing invalid data to pass validation. The issue does not affect valid XSk applications but could be exploited by crafted inputs. The fix involves promoting desc->len to 64-bit and using explicit overflow checks for desc->addr. No affected versions are explicitly stated. The vulnerability has a high severity rating based on CVSS 3.1 metrics.

CVSS v3.1

Score 7.8high

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

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/30/2026, 16:55:51 UTC

Technical Analysis

This vulnerability in the Linux kernel's AF_XDP socket implementation involves improper validation of the xdp_desc structure supplied by userspace. The validation functions xp_{,un}aligned_validate_desc() can be bypassed by certain invalid desc->len and desc->addr values that cause integer overflow or underflow, leading to undefined behavior or invalid frames being transmitted. The root cause is the use of 32-bit arithmetic without proper promotion to 64-bit or explicit overflow checks. The patch promotes desc->len to u64 and uses explicit overflow detection for desc->addr to prevent these bypasses. The vulnerability is rated high severity (CVSS 3.1 vector AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H). No known exploits in the wild are reported. No specific affected versions are provided in the data.

Potential Impact

Successful exploitation could allow a local attacker with low privileges to cause undefined behavior in the kernel or transmit invalid network frames, potentially leading to denial of service or other impacts on confidentiality, integrity, and availability. The CVSS vector indicates high impact on confidentiality, integrity, and availability, but exploitation requires local access with low privileges and no user interaction.

Mitigation Recommendations

A fix has been implemented in the Linux kernel to harden validation of xdp_desc structures by promoting desc->len to 64-bit and adding explicit overflow checks for desc->addr. Users should update to the latest Linux kernel version containing this fix once available. Patch status is not explicitly confirmed in the provided data; therefore, check the official Linux kernel advisories or vendor sources for the exact fixed 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-9mvj-23j7-q46q
Osv Schema Version
1.4.0
Aliases
["CVE-2025-40159"]
Database Specific Severity
HIGH
Cvss Version
3.1

Threat ID: 6a6b72d59c2644c7f847a29d

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

Last enriched: 07/30/2026, 16:55:51 UTC

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

Views: 15

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