CVE-2026-31700
CVE.org · Published
- Record status
- Published
- Identifier year (not publication year)
- 2026
- Source publication
- Source updated
- Imported by cveboard
- Source snapshot
- cve_2026-10-24_midnight_baseline ·
CNA source text (English)
net/packet: fix TOCTOU race on mmap'd vnet_hdr in tpacket_snd()
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.
Scoped product and version facts
Fix information unknown; no fixed version is derived here. Missing information does not prove that no fix exists.
Exploitation unknown; this catalogue does not assess exploitation.
Linux
- Vendor
- Linux
- Product
- Linux
- Platforms
- Unknown
- Default status
unaffected
| Version (version) | Status (status) | Version scheme (versionType) | Exclusive end (lessThan) | Inclusive end (lessThanOrEqual) | Status changes (at → status) |
|---|---|---|---|---|---|
| 1d036d25e5609ba73fee6a88db01c306b140d512 | affected | git | 0f4c9754956b86de158a4af5278c5cf5bda9439e | Unavailable | None listed |
| 1d036d25e5609ba73fee6a88db01c306b140d512 | affected | git | 714aa973da8163925eda7efd49361ccbee21ee46 | Unavailable | None listed |
| 1d036d25e5609ba73fee6a88db01c306b140d512 | affected | git | 1490f82353bdabc09265a74e645b07f05cf4188e | Unavailable | None listed |
| 1d036d25e5609ba73fee6a88db01c306b140d512 | affected | git | 74e2db36fe50e3ad9d5300d7fd0e6e2a15a6d121 | Unavailable | None listed |
| 1d036d25e5609ba73fee6a88db01c306b140d512 | affected | git | 3a1bf9116ea31470b89692585c3910dfe830dcdd | Unavailable | None listed |
| 1d036d25e5609ba73fee6a88db01c306b140d512 | affected | git | 28324a3b62d9ce7f9bdd65a8ce63f382041d1b27 | Unavailable | None listed |
| 1d036d25e5609ba73fee6a88db01c306b140d512 | affected | git | 48a6ef291a17639e1b6ae0fbe9c8b2bb87d7804b | Unavailable | None listed |
| 1d036d25e5609ba73fee6a88db01c306b140d512 | affected | git | 2c054e17d9d41f1020376806c7f750834ced4dc5 | Unavailable | None listed |
Linux
- Vendor
- Linux
- Product
- Linux
- Platforms
- Unknown
- Default status
affected
| Version (version) | Status (status) | Version scheme (versionType) | Exclusive end (lessThan) | Inclusive end (lessThanOrEqual) | Status changes (at → status) |
|---|---|---|---|---|---|
| 4.6 | affected | Unavailable | Unavailable | Unavailable | None listed |
| 0 | unaffected | semver | 4.6 | Unavailable | None listed |
| 5.10.259 | unaffected | semver | Unavailable | 5.10.* | None listed |
| 5.15.210 | unaffected | semver | Unavailable | 5.15.* | None listed |
| 6.1.176 | unaffected | semver | Unavailable | 6.1.* | None listed |
| 6.6.136 | unaffected | semver | Unavailable | 6.6.* | None listed |
| 6.12.84 | unaffected | semver | Unavailable | 6.12.* | None listed |
| 6.18.25 | unaffected | semver | Unavailable | 6.18.* | None listed |
| 7.0.2 | unaffected | semver | Unavailable | 7.0.* | None listed |
| 7.1 | unaffected | original_commit_for_fix | Unavailable | * | None listed |