Skip to main content

Linux Kernel CVE-2025-38413

MEDIUM
2025-07-25 416baaa9-dc9f-4396-8d5f-8c081fb06d67
5.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Obtain low-privilege local access to virtio-net VM
  2. Delivery
    Confirm or wait for AF_XDP socket bound to virtio-net interface
  3. Exploit
    Send or receive network frame sized between correct and inflated length bounds
  4. Execution
    Bypass incorrect `buf_to_xdp` length check in kernel receive path
  5. Persist
    Trigger out-of-bounds memory access in first receive buffer
  6. Impact
    Kernel crash causes denial of service

Vulnerability Assessment

Exploitation Conditions

Three concurrent conditions must be satisfied: (1) the target system must use a virtio-net network interface - common in KVM/QEMU, VMware, and cloud VM environments but absent on bare metal; (2) an AF_XDP (XSK) socket must be actively configured on the virtio-net interface, which is a non-default, manually enabled high-performance packet-processing mode requiring explicit application-level setup (e.g., kernel bypass networking stacks, DPDK alternatives, or custom BPF programs attaching XSK sockets); (3) the attacker must have local system access with at least low-privilege credentials (PR:L per CVSS), ruling out remote unauthenticated exploitation. Exploitation is concretely limited by the non-default nature of AF_XDP in virtio-net: the vast majority of virtio-net deployments do not use XSK and are entirely unaffected. Remote exploitation is not possible given AV:L.

Impact

CVSS 5.5 Medium (AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H) accurately reflects a local, low-privilege exploit path with exclusively availability impact - no confidentiality or integrity risk is indicated by the vector, which conflicts with the 'Information Disclosure' tag in the intelligence feed; the CVSS metric C:N should be treated as authoritative here. EPSS of 0.15% at the 5th percentile is extremely low, indicating the security community assesses exploitation as highly unlikely in the near term. There is no CISA KEV listing and no known POC. The practical attack surface is narrow: exploitation requires both local access AND the non-default deployment of AF_XDP sockets over a virtio-net interface - a configuration primarily seen in high-performance NFV or cloud-native packet-processing environments, not general-purpose Linux deployments. The combination of local-only vector, niche prerequisite, low EPSS, and absence of active exploitation makes this a low operational priority for most environments despite the High availability impact metric.

Exploit ScenarioDerived

A local user with standard unprivileged access on a virtual machine using a virtio-net interface configured for AF_XDP zero-copy receive crafts or induces receipt of a network frame whose data length falls between the correct boundary (xsk_pool_get_rx_frame_size()) and the inflated check (xsk_pool_get_rx_frame_size() + vi->hdr_len). The incorrect length check passes validation, the kernel processes a frame exceeding the true first-buffer capacity, and the resulting memory boundary violation causes the kernel to crash or hang, denying service to the entire system. No public POC has been identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jul 30, 2026

Incorrect frame length validation in the Linux kernel's virtio-net XDP socket (AF_XDP/XSK) receive path allows a local low-privileged attacker to trigger a kernel availability failure. The buf_to_xdp function incorrectly permits the first receive buffer's frame data to reach xsk_pool_get_rx_frame_size() + vi->hdr_len bytes, when the virtio header already occupies space within that first buffer, capping valid data at xsk_pool_get_rx_frame_size(). No public exploit code has been identified and EPSS sits at the 5th percentile, reflecting low real-world exploitation probability at this time.

RemediationAI

Apply the upstream kernel fixes published to the stable tree: commit 5177373c31318c3c6a190383bfd232e6cf565c36 (https://git.kernel.org/stable/c/5177373c31318c3c6a190383bfd232e6cf565c36), commit 6013bb6bc24c2cac3f45b37a15b71b232a5b00ff (https://git.kernel.org/stable/c/6013bb6bc24c2cac3f45b37a15b71b232a5b00ff), and commit 892f6ed9a4a38bb3360fdff091b9241cfa105b61 (https://git.kernel.org/stable/c/892f6ed9a4a38bb3360fdff091b9241cfa105b61). These are commit-level references; released patched version tags per stable branch are not independently confirmed from available data - verify against kernel.org stable release notes. As a targeted workaround with no patch applied, disabling AF_XDP socket usage on virtio-net interfaces (avoid binding XSK sockets to those interfaces) eliminates the vulnerable code path entirely; trade-off is loss of zero-copy XDP receive performance that AF_XDP provides. Standard virtio-net operation without AF_XDP is unaffected and no action is needed on those systems.

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

The vulnerability resides in the Linux kernel virtio-net driver's XDP socket (AF_XDP) receive path, specifically in the buf_to_xdp helper. In virtnet_add_recvbuf_xsk, part of XDP_PACKET_HEADROOM is carved out for the virtio header (vi->hdr_len), causing the vhost to begin placing packet data at hard_start + XDP_PACKET_HEADROOM - vi->hdr_len. Because the first receive buffer includes the virtio header itself, the maximum usable frame data in that buffer is bounded by xsk_pool_get_rx_frame_size() alone. The existing check against xsk_pool_get_rx_frame_size() + vi->hdr_len incorrectly inflates this limit, producing an off-by-hdr_len boundary error. Subsequent buffers do not carry the virtio header and the larger limit is valid for them. The fix introduces a boolean argument to buf_to_xdp distinguishing first-buffer from subsequent-buffer calls. CWE is not assigned by NVD; the root cause class is an incorrect bounds check (analogous to CWE-131 / CWE-823). Affected CPE: cpe:2.3:o:linux:linux_kernel:* across multiple stable branches and explicitly 6.16-rc1 through 6.16-rc4.

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

NVD PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 5.5 MEDIUM

Local vector and low privilege confirmed by kernel driver context; AF_XDP configuration requirement affects exposure but not per-exploit complexity once present; availability-only impact consistent with kernel crash from boundary violation.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE 6.1 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:H
Red Hat 6.1 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

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

DescriptionNVD

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

virtio-net: xsk: rx: fix the frame's length check

When calling buf_to_xdp, the len argument is the frame data's length without virtio header's length (vi->hdr_len). We check that len with

xsk_pool_get_rx_frame_size() + vi->hdr_len

to ensure the provided len does not larger than the allocated chunk size. The additional vi->hdr_len is because in virtnet_add_recvbuf_xsk, we use part of XDP_PACKET_HEADROOM for virtio header and ask the vhost to start placing data from

hard_start + XDP_PACKET_HEADROOM - vi->hdr_len not hard_start + XDP_PACKET_HEADROOM

But the first buffer has virtio_header, so the maximum frame's length in the first buffer can only be

xsk_pool_get_rx_frame_size() not xsk_pool_get_rx_frame_size() + vi->hdr_len

like in the current check.

This commit adds an additional argument to buf_to_xdp differentiate between the first buffer and other ones to correctly calculate the maximum frame's length.

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Ubiquitous
Linux kernel present in virtually all Linux-based systems globally
Data Quality
3 sources
Confidence: Low

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
High

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)NVD

cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.16:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.16:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.16:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.16:rc4:*:*:*:*:*:*

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
Image SLES-Azure-3P Image SLES-Azure-Basic Image SLES-Azure-Standard Image SLES-BYOS-Azure Image SLES-BYOS-EC2 Image SLES-BYOS-GCE Image SLES-CHOST-BYOS-Aliyun Image SLES-CHOST-BYOS-Azure Image SLES-CHOST-BYOS-EC2 Image SLES-CHOST-BYOS-GCE Image SLES-CHOST-BYOS-GDC Image SLES-CHOST-BYOS-SAP-CCloud Image SLES-EC2 Image SLES-EC2-ECS Image SLES-GCE Image SLES-GCE-3P Image SLES-Hardened-BYOS-Azure Image SLES-Hardened-BYOS-EC2 Image SLES-Hardened-BYOS-GCE Image SLES-SAPCAL-Azure Image SLES-SAPCAL-EC2 Image SLES-SAPCAL-GCE Affected
Image SLES-SAP-Azure Image SLES-SAP-Azure-3P Image SLES-SAP-BYOS-Azure Image SLES-SAP-BYOS-EC2 Image SLES-SAP-BYOS-GCE Image SLES-SAP-EC2 Image SLES-SAP-GCE Image SLES-SAP-GCE-3P Affected
SUSE Linux Enterprise High Availability Extension 16.0 Fixed
SUSE Linux Enterprise Server 16.0 Fixed
SUSE Linux Enterprise Server 16.1 Fixed

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