Security Resilience

CVE-2026-31700

Race Condition in Linux Kernel 4.6 – 6.6.136

Published
01 May 2026
Modified
11 November 2026
Patch / advisory
CVSS Score v3.1 7.8
Click a component to see what it means
Raw vectorCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.0015 2th percentile
Risk Priority 54 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2026-31700 is a high-severity Race Condition (CWE-362) vulnerability in Linux Kernel. Its CVSS base score is 7.8 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploitation for Privilege Escalation (T1068); ranked at the 2th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to SC-39 (Process Isolation) and SC-4 (Information in Shared System Resources) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

CVE-2026-31700 is a time-of-check-to-time-of-use (TOCTOU) race condition in the Linux kernel's net/packet subsystem, specifically within the tpacket_snd() function. The vulnerability arises when PACKET_VNET_HDR is enabled and vnet_hdr points directly into an mmap'd TX ring buffer shared with userspace. The kernel validates the header using __packet_snd_vnet_parse(), but later re-reads the fields in virtio_net_hdr_to_skb(), allowing modifications in the interim. This issue is unique to the TPACKET TX path, as other vnet_hdr consumers like packet_snd(), tun.c, tap.c, and virtio_net.c properly copy data to stack-local variables.

A local attacker with low privileges (AV:L/AC:L/PR:L) can exploit this by running a concurrent userspace thread that modifies the vnet_hdr fields in the shared mmap'd ring buffer after validation but before the kernel's subsequent read. This bypasses all safety checks, potentially leading to high-impact confidentiality, integrity, and availability violations (C:H/I:H/A:H), as scored at CVSS 7.8 (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H). The attacker requires access to a system running a vulnerable kernel with TPACKET and PACKET_VNET_HDR in use.

Mitigation involves applying upstream kernel patches, such as those in the referenced stable commits (e.g., 28324a3b62d9ce7f9bdd65a8ce63f382041d1b27, 2c054e17d9d41f1020376806c7f750834ced4dc5), which fix the issue by copying vnet_hdr from the mmap'd ring buffer to a stack-local variable before validation and use, aligning with the approach in packet_snd() and other kernel consumers.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1068 Exploitation for Privilege Escalation Privilege Escalation
Adversaries may exploit software vulnerabilities in an attempt to elevate privileges.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1553.001 Gatekeeper Bypass Defense Impairment
Adversaries may modify file attributes and subvert Gatekeeper functionality to evade user prompts and execute untrusted programs.
T1564.010 Process Argument Spoofing Stealth
Adversaries may attempt to hide process command-line arguments by overwriting process memory.
T1176 Software Extensions Persistence
Adversaries may abuse software extensions to establish persistent access to victim systems.
T1176.001 Browser Extensions Persistence
Adversaries may abuse internet browser extensions to establish persistent access to victim systems.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2026-63867Same product: Linux Linux Kernel
CVE-2026-64112Same product: Linux Linux Kernel
CVE-2026-31678Same product: Linux Linux Kernel
CVE-2026-52991Same product: Linux Linux Kernel
CVE-2026-63937Same product: Linux Linux Kernel
CVE-2026-64091Same product: Linux Linux Kernel
CVE-2025-22060Same product: Linux Linux Kernel
CVE-2025-21746Same product: Linux Linux Kernel
CVE-2024-50220Same product: Linux Linux Kernel
CVE-2025-38217Same product: Linux Linux Kernel

Affected Assets

linux
linux kernel
7.1 · 4.6 — 6.6.136 · 6.7 — 6.12.84 · 6.13 — 6.18.25

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)

—

Validate
Prove the fix (OWASP ASVS)
  • V15.4.2
  • V17.2.6

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Maintaining separate execution domains for each process structurally eliminates unintended concurrent access to the same shared resources.

Preventing unintended information transfer through shared system resources directly addresses the improper concurrent modification that defines a race condition.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-06 mostly match
blocks

Secure SDLC practices directly include coding standards and reviews that prevent TOCTOU race conditions.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing can detect race conditions, but does not prevent them at design or coding time.

prevents

Secure coding standards explicitly forbid unsafe concurrent access patterns and mandate atomic operations or locks.

prevents

A.8.30 governs the contractual and oversight relationship with an outsourced developer, requiring secure practices to be specified and monitored, but it does not itself prevent a TOCTOU race condition from being introduced in the code the developer writes.

blocks

A.8.8 identifies and remediates vulnerabilities but does not prevent exploitation of a TOCTOU race condition that remains present in running code.

Hardening callouts derived

DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.

  • No fine-grained STIG row for CWE-362, a class-level weakness, and none of its children carries one either.

References