{"api_version":"1","generated_at":"2026-12-03T13:22:19+00:00","cve":"CVE-2026-143401","urls":{"html":"https://cve.report/CVE-2026-143401","api":"https://cve.report/api/cve/CVE-2026-143401.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-143401","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-143401"},"summary":{"title":"net: virtio: validate outer protocol of UDP tunnel GSO packets","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: virtio: validate outer protocol of UDP tunnel GSO packets\n\nvirtio_net_hdr_tnl_to_skb() trusts the virtio header to describe a\nUDP tunnel over IPv4 or IPv6, but never checks that the frame actually\ncarries such outer headers. Because VIRTIO_NET_HDR_F_NEEDS_CSUM is\nmandatory for tunnel GSO, __virtio_net_hdr_to_skb() skips the flow\ndissector, so virtio_net_hdr_match_proto() is never applied either.\n\nA guest (or a tap writer) can then inject a frame with an arbitrary\nouter ethertype, for example ETH_P_NSH, with SKB_GSO_UDP_TUNNEL set.\nThe GSO stack then runs nsh_gso_segment() on top of the UDP tunnel\nsegmentation, which assumes a different header layout. The result is\nsegments with skb->data before skb->head, and a host crash in\nskb_under_panic() as soon as a later layer pushes a header:\n\n  skbuff: skb_under_panic: ... put:4 ... dev:gretap1\n  kernel BUG at net/core/skbuff.c:215!\n   skb_push\n   __gre_xmit\n   gre_tap_xmit\n   ...\n   tun_get_user\n\nValidate the outer headers with the parsing helpers from Michael's\nseries \"net: resolve uncommon partial checksums at ingress\":\n\n- locate the L3 header: Ethernet with optional VLAN tags, or the\n  network header set by the caller. skb->protocol is not trusted when\n  it disagrees with the frame.\n- require the outer L3 protocol to match the declared tunnel type.\n- require the outer UDP header exactly at outer_th_offset, after IPv4\n  options or IPv6 extension headers, and reject fragments.\n\nUnlike the original helpers:\n\n- the callers tell whether the frame starts with an Ethernet header,\n  with a new has_eth argument of virtio_net_hdr_tnl_to_skb(), instead\n  of using the device type. tun frames packets from its IFF_TAP and\n  IFF_TUN flags, and TUNSETLINK can set the device type to any value.\n  virtio_net and tun_xdp_one() always pass true, tun_get_user() passes\n  whether the device is IFF_TAP.\n- ipv6_find_hdr() stops at an AH header, as Willem suggested in the\n  review of that series.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 10:18:34","updated_at":"2026-12-03 10:18:34"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/c1771e1bacae3a727408ad01d8fcf40474e19565","name":"https://git.kernel.org/stable/c/c1771e1bacae3a727408ad01d8fcf40474e19565","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/73e08d50eb139e7329032c89a4cb105cf43ef278","name":"https://git.kernel.org/stable/c/73e08d50eb139e7329032c89a4cb105cf43ef278","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/87c69cfa32b8483cb9f05adff7603c32928302b8","name":"https://git.kernel.org/stable/c/87c69cfa32b8483cb9f05adff7603c32928302b8","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-143401","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143401","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a2fb4bc4e2a6a031683910d85b278c1d25ae5420 87c69cfa32b8483cb9f05adff7603c32928302b8 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a2fb4bc4e2a6a031683910d85b278c1d25ae5420 c1771e1bacae3a727408ad01d8fcf40474e19565 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a2fb4bc4e2a6a031683910d85b278c1d25ae5420 73e08d50eb139e7329032c89a4cb105cf43ef278 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.17","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.17 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.66 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.7 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc3 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/net/tun.c","drivers/net/tun_vnet.h","drivers/net/virtio_net.c","include/linux/virtio_net.h"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"87c69cfa32b8483cb9f05adff7603c32928302b8","status":"affected","version":"a2fb4bc4e2a6a031683910d85b278c1d25ae5420","versionType":"git"},{"lessThan":"c1771e1bacae3a727408ad01d8fcf40474e19565","status":"affected","version":"a2fb4bc4e2a6a031683910d85b278c1d25ae5420","versionType":"git"},{"lessThan":"73e08d50eb139e7329032c89a4cb105cf43ef278","status":"affected","version":"a2fb4bc4e2a6a031683910d85b278c1d25ae5420","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/net/tun.c","drivers/net/tun_vnet.h","drivers/net/virtio_net.c","include/linux/virtio_net.h"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.17"},{"lessThan":"6.17","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.66","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.7","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc3","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.66","versionStartIncluding":"6.17","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.7","versionStartIncluding":"6.17","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc3","versionStartIncluding":"6.17","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: virtio: validate outer protocol of UDP tunnel GSO packets\n\nvirtio_net_hdr_tnl_to_skb() trusts the virtio header to describe a\nUDP tunnel over IPv4 or IPv6, but never checks that the frame actually\ncarries such outer headers. Because VIRTIO_NET_HDR_F_NEEDS_CSUM is\nmandatory for tunnel GSO, __virtio_net_hdr_to_skb() skips the flow\ndissector, so virtio_net_hdr_match_proto() is never applied either.\n\nA guest (or a tap writer) can then inject a frame with an arbitrary\nouter ethertype, for example ETH_P_NSH, with SKB_GSO_UDP_TUNNEL set.\nThe GSO stack then runs nsh_gso_segment() on top of the UDP tunnel\nsegmentation, which assumes a different header layout. The result is\nsegments with skb->data before skb->head, and a host crash in\nskb_under_panic() as soon as a later layer pushes a header:\n\n  skbuff: skb_under_panic: ... put:4 ... dev:gretap1\n  kernel BUG at net/core/skbuff.c:215!\n   skb_push\n   __gre_xmit\n   gre_tap_xmit\n   ...\n   tun_get_user\n\nValidate the outer headers with the parsing helpers from Michael's\nseries \"net: resolve uncommon partial checksums at ingress\":\n\n- locate the L3 header: Ethernet with optional VLAN tags, or the\n  network header set by the caller. skb->protocol is not trusted when\n  it disagrees with the frame.\n- require the outer L3 protocol to match the declared tunnel type.\n- require the outer UDP header exactly at outer_th_offset, after IPv4\n  options or IPv6 extension headers, and reject fragments.\n\nUnlike the original helpers:\n\n- the callers tell whether the frame starts with an Ethernet header,\n  with a new has_eth argument of virtio_net_hdr_tnl_to_skb(), instead\n  of using the device type. tun frames packets from its IFF_TAP and\n  IFF_TUN flags, and TUNSETLINK can set the device type to any value.\n  virtio_net and tun_xdp_one() always pass true, tun_get_user() passes\n  whether the device is IFF_TAP.\n- ipv6_find_hdr() stops at an AH header, as Willem suggested in the\n  review of that series."}],"providerMetadata":{"dateUpdated":"2026-12-03T09:22:40.735Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/87c69cfa32b8483cb9f05adff7603c32928302b8"},{"url":"https://git.kernel.org/stable/c/c1771e1bacae3a727408ad01d8fcf40474e19565"},{"url":"https://git.kernel.org/stable/c/73e08d50eb139e7329032c89a4cb105cf43ef278"}],"title":"net: virtio: validate outer protocol of UDP tunnel GSO packets","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-143401","datePublished":"2026-12-03T09:22:40.735Z","dateReserved":"2026-12-03T03:10:28.373Z","dateUpdated":"2026-12-03T09:22:40.735Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 10:18:34","lastModifiedDate":"2026-12-03 10:18:34","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"143401","Ordinal":"1","Title":"net: virtio: validate outer protocol of UDP tunnel GSO packets","CVE":"CVE-2026-143401","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"143401","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: virtio: validate outer protocol of UDP tunnel GSO packets\n\nvirtio_net_hdr_tnl_to_skb() trusts the virtio header to describe a\nUDP tunnel over IPv4 or IPv6, but never checks that the frame actually\ncarries such outer headers. Because VIRTIO_NET_HDR_F_NEEDS_CSUM is\nmandatory for tunnel GSO, __virtio_net_hdr_to_skb() skips the flow\ndissector, so virtio_net_hdr_match_proto() is never applied either.\n\nA guest (or a tap writer) can then inject a frame with an arbitrary\nouter ethertype, for example ETH_P_NSH, with SKB_GSO_UDP_TUNNEL set.\nThe GSO stack then runs nsh_gso_segment() on top of the UDP tunnel\nsegmentation, which assumes a different header layout. The result is\nsegments with skb->data before skb->head, and a host crash in\nskb_under_panic() as soon as a later layer pushes a header:\n\n  skbuff: skb_under_panic: ... put:4 ... dev:gretap1\n  kernel BUG at net/core/skbuff.c:215!\n   skb_push\n   __gre_xmit\n   gre_tap_xmit\n   ...\n   tun_get_user\n\nValidate the outer headers with the parsing helpers from Michael's\nseries \"net: resolve uncommon partial checksums at ingress\":\n\n- locate the L3 header: Ethernet with optional VLAN tags, or the\n  network header set by the caller. skb->protocol is not trusted when\n  it disagrees with the frame.\n- require the outer L3 protocol to match the declared tunnel type.\n- require the outer UDP header exactly at outer_th_offset, after IPv4\n  options or IPv6 extension headers, and reject fragments.\n\nUnlike the original helpers:\n\n- the callers tell whether the frame starts with an Ethernet header,\n  with a new has_eth argument of virtio_net_hdr_tnl_to_skb(), instead\n  of using the device type. tun frames packets from its IFF_TAP and\n  IFF_TUN flags, and TUNSETLINK can set the device type to any value.\n  virtio_net and tun_xdp_one() always pass true, tun_get_user() passes\n  whether the device is IFF_TAP.\n- ipv6_find_hdr() stops at an AH header, as Willem suggested in the\n  review of that series.","Type":"Description","Title":"net: virtio: validate outer protocol of UDP tunnel GSO packets"}]}}}