Skip to main content

Linux Kernel CVE-2025-40159

HIGH
2025-11-12 416baaa9-dc9f-4396-8d5f-8c081fb06d67
High
Disputed · 7.8 Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local access to XSK socket
  2. Delivery
    Configure UMEM with non-zero tx_metadata_len
  3. Exploit
    Submit crafted xdp_desc with overflowing len/addr
  4. Execution
    Bypass descriptor validation via integer overflow
  5. Persist
    Queue invalid frame / trigger kernel UB
  6. Impact
    Memory corruption or denial of service

Vulnerability Assessment

Exploitation Conditions

Exploitation requires local access to a running AF_XDP/XSK socket: the attacker must be able to create and bind an XDP socket and configure the UMEM transmit pool with a NON-ZERO tx_metadata_len (pool->tx_metadata_len), then submit a malicious xdp_desc with desc->len close to U32_MAX (positive overflow) or a low desc->addr (negative u64 overflow) so it passes xp_aligned/unaligned_validate_desc(). Limiting factors: the vector is local only (AV:L, not network-reachable), no user interaction is needed (UI:N), and it requires low privileges (PR:L) - in default kernels creating AF_XDP sockets typically needs CAP_NET_RAW, so environments that deny that capability to untrusted users/containers are not exposed. The overflow path also depends specifically on tx_metadata_len being non-zero, so deployments not using TX metadata are less affected.

Impact

The signals are consistent and point to a real but not urgent local hardening issue rather than a mass-exploitation threat. The CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H = 7.8 High) indicates local access with low privileges and no user interaction, yielding high confidentiality/integrity/availability impact - typical for kernel memory-corruption bugs. EPSS is only 0.03% (9th percentile), and the bug is not in CISA KEV, so widespread or automated exploitation is unlikely. No SSVC decision data or POC was provided. Note a nuance: exploitation is not truly 'any local user' - an attacker must be able to create and bind an AF_XDP socket and configure a UMEM with non-zero tx_metadata_len, which in default deployments typically requires CAP_NET_RAW or equivalent, consistent with the PR:L rating. Practical impact is likely a triggerable kernel UB/DoS; reliable privilege escalation from this specific overflow is plausible but not demonstrated in the available data.

Exploit ScenarioDerived

A local user (or a compromised process/container holding CAP_NET_RAW) opens an AF_XDP socket, configures a UMEM with a non-zero tx_metadata_len, and submits a crafted xdp_desc with desc->len near U32_MAX or a low desc->addr so the validation arithmetic overflows and the out-of-bounds descriptor is accepted for transmit. This queues an invalid frame and triggers kernel undefined behavior, potentially crashing the system or corrupting memory. No public exploit was identified at time of analysis, and the local, low-complexity vector means a successful trigger requires only local socket access, not remote reachability.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv3 – Jul 30, 2026

Local privilege-adjacent memory corruption in the Linux kernel's AF_XDP (XSK) transmit path allows a local user with access to an XDP socket to bypass descriptor validation via integer overflow, queuing malformed frames and triggering undefined behavior. The flaw stems from unchecked arithmetic in xp_aligned_validate_desc()/xp_unaligned_validate_desc() when a non-zero tx_metadata_len is combined with a crafted xdp_desc, and carries a CVSS of 7.8. EPSS is very low (0.03%) and there is no public exploit identified at time of analysis; it is not listed in CISA KEV.

Earlier versions of this analysis (2)
v2 Jul 30, 2026 - 08:54 cvss changed CVSS 7.8

Local privilege-boundary abuse in the Linux kernel's AF_XDP (XSK) subsystem allows a userspace process with access to an XDP socket to submit crafted xdp_desc entries that bypass xp_aligned_validate_desc()/xp_unaligned_validate_desc(), triggering integer overflow/underflow and queuing invalid frames for transmit. Affected are kernels using AF_XDP zero-copy/copy TX with a non-zero pool tx_metadata_len, where a desc->len near U32_MAX or a sufficiently small desc->addr wraps past the validation checks and leads to undefined behavior or memory corruption. No public exploit identified at time of analysis; EPSS is negligible (0.03%) and the flaw is not in CISA KEV, but a fix has been merged upstream and shipped by distributions.

v1 Mar 28, 2026 - 19:21

In the Linux kernel, the following vulnerability has been resolved: xsk: Harden userspace-supplied xdp_desc validation Turned out certain clearly invalid values passed in xdp_desc from userspace can.

RemediationAI

Patch available per vendor advisory: apply the stable-tree fix delivered in the three kernel commits (git.kernel.org/stable/c/07ca98f906a403637fc5e513a872a50ef1247f3b and the two sibling commits) by upgrading to your distribution's patched kernel - Ubuntu users should install the fixed kernel packages named in USN-8125-1 and USN-8126-1 and reboot. If immediate patching is not possible, the practical compensating control is to restrict who can create AF_XDP sockets: ensure unprivileged users do not hold CAP_NET_RAW, and where feasible block AF_XDP socket creation via seccomp/LSM policy or drop the capability from containers and untrusted workloads (trade-off: this breaks legitimate high-performance XDP/DPDK-style applications relying on AF_XDP). There is no need to disable networking broadly; the exposure is limited to the XSK transmit path, so isolating untrusted local users from AF_XDP is the targeted mitigation until the kernel is updated.

Affected ProductsAI

The Linux kernel's XSK/AF_XDP subsystem (net/xdp) is affected across versions that include tx_metadata_len handling in the descriptor validation path; NVD did not publish specific CPE version ranges in the provided data, and the fix is tracked via three stable-tree commits (07ca98f906a4, 1463cd066f32, 5b5fffa7c81e at git.kernel.org). Distribution-specific fixed builds are enumerated in Ubuntu's advisories USN-8125-1 (https://ubuntu.com/security/notices/USN-8125-1) and USN-8126-1 (https://ubuntu.com/security/notices/USN-8126-1). Administrators should map their running kernel version against their distribution's advisory rather than relying on a single upstream version number, since backports vary by stable branch.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

AF_XDP (XSK) is the kernel's high-performance zero-copy packet I/O framework in which userspace shares a UMEM memory region and passes transmit descriptors (struct xdp_desc: a u64 addr and u32 len) directly to the kernel via a ring. Before a descriptor is handed to the driver, the kernel validates it with xp_aligned_validate_desc()/xp_unaligned_validate_desc(). The root cause is a classic integer overflow (aligning with the 'Buffer Overflow' tag; NVD lists CWE as N/A): desc->len is a 32-bit value, and when combined with pool->tx_metadata_len the addition could wrap (positive overflow near U32_MAX), while a sufficiently low desc->addr with non-zero tx_metadata_len could wrap the u64 subtraction (negative overflow). Both wraparounds let out-of-bounds descriptors pass validation. The fix promotes desc->len to u64 before arithmetic and uses explicit check_add_overflow()/check_sub_overflow() when validating desc->addr.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Sources disagree (Low–High)
Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.8 HIGH

Local AF_XDP socket access with low privileges (typically CAP_NET_RAW) and no user interaction; kernel memory corruption yields high C/I/A with unchanged scope.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 7.0 HIGH
AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Red Hat 5.5 LOW

vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

5
Analysis Updated
Jul 30, 2026 - 08:55 vuln.today
v3 - CVSS changed
Analysis Updated
Jul 30, 2026 - 08:54 vuln.today
v2 - CVSS changed
CVSS changed
Jul 30, 2026 - 06:37 NVD
7.8 (HIGH)
Patch released
Mar 28, 2026 - 19:31 nvd
Patch available
CVE Published
Nov 12, 2025 - 11:15 nvd
N/A

DescriptionCVE.org

In the Linux kernel, the following vulnerability has been resolved:

xsk: Harden userspace-supplied xdp_desc validation

Turned out certain clearly invalid values passed in xdp_desc from userspace can pass xp_{,un}aligned_validate_desc() and then lead to UBs or just invalid frames to be queued for xmit.

desc->len close to `U32_MAX` with a non-zero pool->tx_metadata_len can cause positive integer overflow and wraparound, the same way low enough desc->addr with a non-zero pool->tx_metadata_len can cause negative integer overflow. Both scenarios can then pass the validation successfully. This doesn't happen with valid XSk applications, but can be used to perform attacks.

Always promote desc->len to `u64 first to exclude positive overflows of it. Use explicit check_{add,sub}_overflow() when validating desc->addr (which is u64` already).

bloat-o-meter reports a little growth of the code size:

add/remove: 0/0 grow/shrink: 2/1 up/down: 60/-16 (44) Function old new delta xskq_cons_peek_desc 299 330 +31 xsk_tx_peek_release_desc_batch 973 1002 +29 xsk_generic_xmit 3148 3132 -16

but hopefully this doesn't hurt the performance much.

Executive ViewAI

Why It Matters

A memory corruption vulnerability in the Linux kernel's AF_XDP socket subsystem allows local users to bypass validation controls. No public exploit identified at time of analysis, but organizations running XDP-based network services should prioritize kernel patching to eliminate risk.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 91% exploitable
Prevalence
Ubiquitous
Linux kernel runs on the vast majority of servers and cloud hosts
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Medium

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Vendor StatusVendor

SUSE

Severity: Important
Product Status
Container suse/hpc/warewulf4-x86_64/sle-hpc-node:latest Image SLES15-SP6 Image SLES15-SP6-BYOS Image SLES15-SP6-BYOS-Azure Image SLES15-SP6-BYOS-EC2 Image SLES15-SP6-BYOS-GCE Image SLES15-SP6-CHOST-BYOS Image SLES15-SP6-CHOST-BYOS-Aliyun Image SLES15-SP6-CHOST-BYOS-Azure Image SLES15-SP6-CHOST-BYOS-EC2 Image SLES15-SP6-CHOST-BYOS-GCE Image SLES15-SP6-CHOST-BYOS-GDC Image SLES15-SP6-CHOST-BYOS-SAP-CCloud Image SLES15-SP6-EC2 Image SLES15-SP6-EC2-ECS-HVM Image SLES15-SP6-GCE Image SLES15-SP6-HPC-BYOS Image SLES15-SP6-HPC-BYOS-Azure Image SLES15-SP6-HPC-BYOS-EC2 Image SLES15-SP6-HPC-BYOS-GCE Image SLES15-SP6-HPC-EC2 Image SLES15-SP6-HPC-GCE Image SLES15-SP6-Hardened-BYOS Image SLES15-SP6-Hardened-BYOS-Azure Image SLES15-SP6-Hardened-BYOS-EC2 Image SLES15-SP6-Hardened-BYOS-GCE Image SLES15-SP6-SAP Image SLES15-SP6-SAP-Azure Image SLES15-SP6-SAP-EC2 Image SLES15-SP6-SAP-GCE Image SLES15-SP6-SAPCAL Image SLES15-SP6-SAPCAL-Azure Image SLES15-SP6-SAPCAL-EC2 Image SLES15-SP6-SAPCAL-GCE Affected
Container suse/sl-micro/6.0/baremetal-os-container:latest Container suse/sl-micro/6.1/baremetal-os-container:latest Affected
Container suse/sl-micro/6.0/base-os-container:2.1.3-7.95 Container suse/sl-micro/6.1/base-os-container:2.2.1-5.80 Affected
Container suse/sl-micro/6.0/kvm-os-container:2.1.3-6.114 Container suse/sl-micro/6.1/kvm-os-container:2.2.1-5.82 Affected
Container suse/sl-micro/6.0/rt-os-container:2.1.3-7.116 Container suse/sl-micro/6.1/rt-os-container:2.2.1-5.55 Affected

References

Advisories & patches
ADVISORY https://ubuntu.com/security/notices/USN-8125-1 ADVISORY https://ubuntu.com/security/notices/USN-8126-1 ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4393/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4422/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4505/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4516/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4517/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2025:4521/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1180/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1185/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1188/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1225/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1236/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1239/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1244/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1259/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1261/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1271/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1278/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:1283/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20012/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20015/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20021/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20039/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20059/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20334/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20473/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20478/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20496/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20519/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:20562/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21007/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21008/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21009/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21042/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21043/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21044/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21045/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21046/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21047/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21048/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21049/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21050/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21052/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21053/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21054/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21055/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21056/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21057/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21058/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21059/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21060/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21061/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21072/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21073/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21074/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21075/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21076/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21077/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21078/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21079/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21080/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21082/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21083/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21084/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21085/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21086/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21087/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21088/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21089/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21090/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21091/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21096/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21099/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21102/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21217/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21219/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:21221/ REF https://git.kernel.org/stable/c/07ca98f906a403637fc5e513a872a50ef1247f3b REF https://git.kernel.org/stable/c/1463cd066f32efd56ddfd3ac4e3524200f362980 REF https://git.kernel.org/stable/c/5b5fffa7c81e55d8c8edf05ad40d811ec7047e21

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy