Skip to main content

Linux Kernel EUVDEUVD-2026-26509

| CVE-2026-31700 HIGH
Race Condition (CWE-362)
2026-05-01 416baaa9-dc9f-4396-8d5f-8c081fb06d67
7.8
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

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

  1. Recon
    Obtain local shell access
  2. Delivery
    Create AF_PACKET socket with VNET_HDR
  3. Exploit
    Setup TPACKET mmap ring
  4. Install
    Spawn concurrent threads
  5. C2
    Win TOCTOU race in vnet_hdr validation
  6. Execute
    Trigger out-of-bounds memory access
  7. Impact
    Escalate to kernel code execution or DoS

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture Concurrency control, locking
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires local authenticated access with low privileges (PR:L). Attacker must have capability to create AF_PACKET sockets, which typically requires CAP_NET_RAW capability (default for root, or granted via capabilities/setuid binaries, or obtainable in unprivileged user namespaces on some configurations). Target system must have a kernel configuration with CONFIG_PACKET=y or CONFIG_PACKET=m (standard in all major distributions). The specific vulnerable code path is triggered only when PACKET_VNET_HDR socket option is set and TPACKET (mmap-based packet transmission) is used rather than standard sendto()/sendmsg() paths. This configuration is common in virtualization environments (QEMU/KVM with vhost-net), container networking tools, and high-performance packet processing applications. Attack complexity is low (AC:L) once prerequisites are met, but successful exploitation requires winning a race condition with a potentially narrow time window between validation and use, which may require multiple attempts. No user interaction required (UI:N). The vulnerability does NOT affect systems where unprivileged users cannot obtain CAP_NET_RAW, or where AF_PACKET sockets are restricted via LSM policies (SELinux, AppArmor). Default configurations of Ubuntu, RHEL, Debian, and other major distributions allow local users to create AF_PACKET sockets in user namespaces or via certain setuid programs, making the prerequisite achievable for standard local user accounts in many environments.

Impact

Real-world risk assessment requires balancing multiple signals that present a nuanced picture. CVSS 7.8 (High) indicates significant local impact: AV:L (local access required), AC:L (low complexity once access is obtained), PR:L (low privileges sufficient), and full CIA impact (C:H/I:H/A:H). However, EPSS 0.02% (5th percentile) suggests extremely low observed exploitation probability in the wild, and absence from CISA KEV confirms no known active exploitation campaigns. The exploitation prerequisites are specific: attacker needs local authenticated access, ability to create AF_PACKET sockets (typically requires CAP_NET_RAW or root in most distributions), and the target system must use TPACKET with PACKET_VNET_HDR enabled (primarily virtualization/container environments). The TOCTOU race window is narrow and may require precise timing to reliably exploit. That said, the technical impact is severe - successful exploitation could bypass kernel memory safety checks leading to out-of-bounds memory access, potential kernel memory corruption, privilege escalation, or denial of service. The availability of vendor patches across all active stable branches (6.6.136, 6.12.84, 7.0.2, 7.1-rc1) and upstream commits indicates the vendor considers this a legitimate security concern worth backporting. Priority should be HIGH for virtualized/containerized environments where AF_PACKET and vnet_hdr are commonly used, MEDIUM for general server deployments with local user access, and LOWER for single-user systems or environments where CAP_NET_RAW is tightly controlled. The low EPSS score despite high CVSS suggests this is not a popular exploitation target, possibly due to the specific technical prerequisites and the narrow race condition window.

Exploit ScenarioDerived

An attacker with a local shell account on a Linux server or container host creates an AF_PACKET socket with PACKET_VNET_HDR enabled and sets up a TPACKET TX ring using mmap(). The attacker spawns two threads: thread A repeatedly calls sendto() to transmit packets, while thread B continuously modifies the vnet_hdr structure in the shared mmap'd ring buffer. The attacker carefully times the modifications to occur after the kernel's __packet_snd_vnet_parse() validation but before virtio_net_hdr_to_skb() uses the values. By changing header fields like gso_size, hdr_len, or csum_offset to out-of-bounds values during this narrow race window, the attacker triggers out-of-bounds memory access in virtio_net_hdr_to_skb() or downstream GSO/checksum processing code. This could lead to kernel memory corruption, potentially escalating to arbitrary code execution in kernel context or denial of service through kernel panic. No public exploit code is identified at time of analysis, but the vulnerability is straightforward to exploit by skilled attackers familiar with kernel race conditions.

Act Now Prioritize within 24-48h. Why: Active threat signals + CRITICAL/HIGH severity.
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – May 03, 2026

Time-of-check-time-of-use (TOCTOU) race condition in Linux kernel's TPACKET transmission path allows local authenticated attackers with low privileges to bypass vnet_hdr validation checks and potentially achieve privilege escalation, code execution, or system compromise. The vulnerability affects packet socket implementations when PACKET_VNET_HDR is enabled, where concurrent userspace threads can modify mmap'd ring buffer data between kernel validation and use. Vendor-released patches are available for stable kernel branches (6.6.136, 6.12.84, 7.0.2, 7.1-rc1). EPSS score of 0.02% (5th percentile) indicates low observed exploitation probability, and no active exploitation is confirmed (not in CISA KEV), though the high CVSS 7.8 reflects significant local impact potential.

RemediationAI

Primary remediation is upgrading to patched kernel versions: 6.6.136 or later for 6.6.x LTS series, 6.12.84 or later for 6.12.x series, 7.0.2 or later for 7.0.x series, or 7.1-rc1 and later for mainline. Distribution-specific kernel packages should be updated via normal security update channels (apt, yum, dnf) once vendors backport the fix. Patch commits are available at https://git.kernel.org/stable/c/28324a3b62d9ce7f9bdd65a8ce63f382041d1b27 (and related commits) for manual backporting if necessary. If immediate patching is not feasible, implement these compensating controls with noted trade-offs: (1) Restrict CAP_NET_RAW capability to only essential processes via capability bounding sets or AppArmor/SELinux policies - this prevents unprivileged users from creating AF_PACKET sockets but may break legitimate packet capture tools like tcpdump for non-root users; (2) Disable unprivileged user namespaces via sysctl kernel.unprivileged_userns_clone=0 to prevent privilege escalation paths, though this breaks containerized workloads for non-root users; (3) In virtualized environments, avoid using vhost-net with PACKET_VNET_HDR offload where possible, favoring alternative virtio configurations, though this may reduce network performance by 10-30%. Monitor for unexpected AF_PACKET socket creation via auditd rules (auditctl -a always,exit -F arch=b64 -S socket -F a0=17). Note that workarounds only reduce attack surface and do not eliminate the race condition for privileged processes that legitimately use TPACKET.

Affected VersionsENISA

Linux 1d036d25e5609ba73fee6a88db01c306b140d512 <28324a3b62d9ce7f9bdd65a8ce63f382041d1b27
Linux 1d036d25e5609ba73fee6a88db01c306b140d512 <3a1bf9116ea31470b89692585c3910dfe830dcdd
Linux patch: 7.0.2
Linux patch: 6.12.84
Linux patch: 6.6.136
Linux patch: 7.1-rc1
Linux 1d036d25e5609ba73fee6a88db01c306b140d512 <48a6ef291a17639e1b6ae0fbe9c8b2bb87d7804b
Linux 1d036d25e5609ba73fee6a88db01c306b140d512 <2c054e17d9d41f1020376806c7f750834ced4dc5
Linux patch: 0
Linux patch: 6.18.25
Linux 1d036d25e5609ba73fee6a88db01c306b140d512 <74e2db36fe50e3ad9d5300d7fd0e6e2a15a6d121
Linux 4.6

Affected Packages

euvd linux no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

This vulnerability exists in the Linux kernel's AF_PACKET socket implementation, specifically in the TPACKET transmission path (tpacket_snd() function in net/packet/af_packet.c). TPACKET provides a zero-copy mechanism for high-performance packet transmission using memory-mapped ring buffers shared between kernel and userspace. When PACKET_VNET_HDR is enabled (commonly used with virtualization for offload features), the kernel reads virtio_net_hdr structures directly from this shared memory. The vulnerability is a classic TOCTOU race: the kernel validates the vnet_hdr structure via __packet_snd_vnet_parse(), but then re-reads the same fields later in virtio_net_hdr_to_skb() without synchronization. A malicious userspace program can spawn concurrent threads - one issuing sendto() while another modifies the mmap'd vnet_hdr fields after validation but before use, bypassing size checks, GSO validation, or other safety constraints. This differs from the non-TPACKET code path (packet_snd()) and all other kernel vnet_hdr consumers (tun.c, tap.c, virtio_net.c) which correctly copy the header to kernel stack memory before processing. The affected code has existed since commit 1d036d25e560 introduced TPACKET vnet_hdr support, making this a long-standing architectural flaw in the zero-copy optimization.

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

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
SUSE HIGH
Red Hat 6.1 MEDIUM

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

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

4
CVSS changed
May 03, 2026 - 07:22 NVD
7.8 (HIGH)
Patch released
May 03, 2026 - 07:16 nvd
Patch available
Patch available
May 01, 2026 - 15:02 EUVD
CVE Published
May 01, 2026 - 14:16 nvd
HIGH 7.8

DescriptionCVE.org

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

net/packet: fix TOCTOU race on mmap'd vnet_hdr in tpacket_snd()

In tpacket_snd(), when PACKET_VNET_HDR is enabled, vnet_hdr points directly into the mmap'd TX ring buffer shared with userspace. The kernel validates the header via __packet_snd_vnet_parse() but then re-reads all fields later in virtio_net_hdr_to_skb(). A concurrent userspace thread can modify the vnet_hdr fields between validation and use, bypassing all safety checks.

The non-TPACKET path (packet_snd()) already correctly copies vnet_hdr to a stack-local variable. All other vnet_hdr consumers in the kernel (tun.c, tap.c, virtio_net.c) also use stack copies. The TPACKET TX path is the only caller of virtio_net_hdr_to_skb() that reads directly from user-controlled shared memory.

Fix this by copying vnet_hdr from the mmap'd ring buffer to a stack-local variable before validation and use, consistent with the approach used in packet_snd() and all other callers.

Executive ViewAI

Why It Matters

CVE-2026-31700 is a high-severity local privilege escalation vulnerability in the Linux kernel's packet socket implementation that allows authenticated users to bypass security validation through race condition manipulation, potentially leading to unauthorized code execution and system compromise. Organizations running affected kernel versions must prioritize patching to prevent local attackers from escalating privileges and accessing sensitive system resources.

Business Impact: High
Compensating Controls

Apply vendor patch. Pending patch deployment, restrict local user account access to systems running affected kernel versions and disable PACKET_VNET_HDR packet socket feature in network configurations if operationally feasible. Monitor system logs for exploitation attempts targeting packet socket interfaces.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Threat Intel
2
1 sources
Data Quality
7 sources
Confidence: High

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 Yes
Deciding rule
Active threat signals + CRITICAL/HIGH severity
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
High

Priority Score

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Race conditions occur when multiple concurrent requests exploit the brief time gap between checking a condition and acting upon it (TOCTOU - Time of Check, Time of Use).

Vendor StatusVendor

SUSE

Severity: High
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed

Threat IntelligenceMISP

CISA Advisories
Sources: Microsoft MSRC, CISA (public domain)

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