{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-31700","id":"CVE-2026-31700","title":"net/packet: fix TOCTOU race on mmap'd vnet_hdr in tpacket_snd()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/packet: fix TOCTOU race on mmap'd vnet_hdr in tpacket_snd()\n\nIn tpacket_snd(), when PACKET_VNET_HDR is enabled, vnet_hdr points\ndirectly into the mmap'd TX ring buffer shared with userspace. The\nkernel validates the header via __packet_snd_vnet_parse() but then\nre-reads all fields later in virtio_net_hdr_to_skb(). A concurren","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/packet: fix TOCTOU race on mmap'd vnet_hdr in tpacket_snd()\n\nIn tpacket_snd(), when PACKET_VNET_HDR is enabled, vnet_hdr points\ndirectly into the mmap'd TX ring buffer shared with userspace. The\nkernel validates the header via __packet_snd_vnet_parse() but then\nre-reads all fields later in virtio_net_hdr_to_skb(). A concurrent\nuserspace thread can modify the vnet_hdr fields between validation\nand use, bypassing all safety checks.\n\nThe non-TPACKET path (packet_snd()) already correctly copies vnet_hdr\nto a stack-local variable. All other vnet_hdr consumers in the kernel\n(tun.c, tap.c, virtio_net.c) also use stack copies. The TPACKET TX\npath is the only caller of virtio_net_hdr_to_skb() that reads directly\nfrom user-controlled shared memory.\n\nFix this by copying vnet_hdr from the mmap'd ring buffer to a\nstack-local variable before validation and use, consistent with the\napproach used in packet_snd() and all other callers.","published":"2026-05-01T13:56:00.205Z","updated":"2026-11-13T02:30:23.359867077Z","reserved":"2026-03-09T15:48:24.132Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1d036d25e5609ba73fee6a88db01c306b140d512","lessThan":"0f4c9754956b86de158a4af5278c5cf5bda9439e","status":"affected","versionType":"git"},{"version":"1d036d25e5609ba73fee6a88db01c306b140d512","lessThan":"714aa973da8163925eda7efd49361ccbee21ee46","status":"affected","versionType":"git"},{"version":"1d036d25e5609ba73fee6a88db01c306b140d512","lessThan":"1490f82353bdabc09265a74e645b07f05cf4188e","status":"affected","versionType":"git"},{"version":"1d036d25e5609ba73fee6a88db01c306b140d512","lessThan":"74e2db36fe50e3ad9d5300d7fd0e6e2a15a6d121","status":"affected","versionType":"git"},{"version":"1d036d25e5609ba73fee6a88db01c306b140d512","lessThan":"3a1bf9116ea31470b89692585c3910dfe830dcdd","status":"affected","versionType":"git"},{"version":"1d036d25e5609ba73fee6a88db01c306b140d512","lessThan":"28324a3b62d9ce7f9bdd65a8ce63f382041d1b27","status":"affected","versionType":"git"},{"version":"1d036d25e5609ba73fee6a88db01c306b140d512","lessThan":"48a6ef291a17639e1b6ae0fbe9c8b2bb87d7804b","status":"affected","versionType":"git"},{"version":"1d036d25e5609ba73fee6a88db01c306b140d512","lessThan":"2c054e17d9d41f1020376806c7f750834ced4dc5","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.6","status":"affected"},{"version":"0","lessThan":"4.6","status":"unaffected","versionType":"semver"},{"version":"5.10.259","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.210","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.176","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.136","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.84","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.25","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.0.2","lessThanOrEqual":"7.0.*","status":"unaffected","versionType":"semver"},{"version":"7.1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-367","CWE-362"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/0f4c9754956b86de158a4af5278c5cf5bda9439e","tags":["web"]},{"url":"https://git.kernel.org/stable/c/714aa973da8163925eda7efd49361ccbee21ee46","tags":["web"]},{"url":"https://git.kernel.org/stable/c/1490f82353bdabc09265a74e645b07f05cf4188e","tags":["web"]},{"url":"https://git.kernel.org/stable/c/74e2db36fe50e3ad9d5300d7fd0e6e2a15a6d121","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/3a1bf9116ea31470b89692585c3910dfe830dcdd","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/28324a3b62d9ce7f9bdd65a8ce63f382041d1b27","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/48a6ef291a17639e1b6ae0fbe9c8b2bb87d7804b","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/2c054e17d9d41f1020376806c7f750834ced4dc5","tags":["Patch","web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-019113.html","tags":["web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":["web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-784472.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31700.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31700","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00111,"epssPercentile":0.01349,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-31700","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31700","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-31700","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-31700","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}