← All Advisories
Reported from OT-Advisories.com as of

Linux Kernel PACKET_VNET_HDR TOCTOU Race on mmap'd vnet_hdr in tpacket_snd on Siemens SIMATIC S7-1500 MFP

Last refreshed2026-11-17

Status: UPDATED  |  Advisory ID: CVE-2026-31700

Key Details

CVECVE-2026-31700
CVSS Score / Version
7.8 (High) / CVSS v3.1
Updated2026-11-10
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS Prose
attack vector is local; attack complexity is low; privileges required is low; user interaction is none; scope is unchanged; confidentiality impact is high; integrity impact is high; availability impact is high.
Affected products
see table below
Classified as
CWE-362 (Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition'))
Exploitation prediction (EPSS)
0.11% probability of exploitation in the next 30 days (1% percentile) -- FIRST.org's EPSS model.

Affected Products, Subsystems & Sectors

VendorProductAffected VersionsPatch Status
LinuxLinux Kernel
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP
SiemensSIMATIC S7-1500 TM MFP - GNU/Linux subsystem
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0)
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0)
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0)
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AC0)
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP (6AG1518-4AX00-4AC0)
SubsystemsControllers & Field I/O, OT Supporting Infrastructure
SectorsAll Sectors

What to Know

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. (NVD)

What to Do

Currently no fix is available. Siemens has identified the following specific mitigations that customers can apply to reduce the risk: Limit access to the interactive shell of the additional GNU/Linux subsystem to trusted personnel only. Only build and run applications from trusted sources.
Source: Siemens SSA-457936

2 other advisories state the same guidance
  • Currently no fix is available
    Source: Siemens SSA-019113
  • Currently no fix is available. Siemens has identified the following specific mitigations that customers can apply to reduce the risk: Only build and run applications from trusted sources. Limit access to the interactive shell of the additional GNU/Linux subsystem to trusted personnel only.
    Source: Siemens SSA-784472

References

SourceReference
NVDhttps://nvd.nist.gov/vuln/detail/CVE-2026-31700
CVEhttps://www.cve.org/CVERecord?id=CVE-2026-31700
Vendor advisoryhttps://cert-portal.siemens.com/productcert/html/ssa-019113.html
Vendor advisoryhttps://cert-portal.siemens.com/productcert/html/ssa-457936.html
Vendor advisoryhttps://cert-portal.siemens.com/productcert/html/ssa-784472.html
Report compilation © 2026 OT-Advisories.com  ·  CC BY 4.0  ·  Source materials remain the property of their respective publishers as cited.