{"id":"CVE-2026-143401","state":"PUBLISHED","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.","publishedAt":"2026-12-03T09:22:40.735Z","updatedAt":"2026-12-03T09:22:40.735Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a2fb4bc4e2a6a031683910d85b278c1d25ae5420","status":"affected","lessThan":"87c69cfa32b8483cb9f05adff7603c32928302b8","versionType":"git"},{"version":"a2fb4bc4e2a6a031683910d85b278c1d25ae5420","status":"affected","lessThan":"c1771e1bacae3a727408ad01d8fcf40474e19565","versionType":"git"},{"version":"a2fb4bc4e2a6a031683910d85b278c1d25ae5420","status":"affected","lessThan":"73e08d50eb139e7329032c89a4cb105cf43ef278","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/tun.c","drivers/net/tun_vnet.h","drivers/net/virtio_net.c","include/linux/virtio_net.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.17","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/tun.c","drivers/net/tun_vnet.h","drivers/net/virtio_net.c","include/linux/virtio_net.h"]}],"references":["https://git.kernel.org/stable/c/87c69cfa32b8483cb9f05adff7603c32928302b8","https://git.kernel.org/stable/c/c1771e1bacae3a727408ad01d8fcf40474e19565","https://git.kernel.org/stable/c/73e08d50eb139e7329032c89a4cb105cf43ef278"],"weaknesses":[],"ingestedAt":"2026-12-03T09:44:04.436Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143401.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143401","state":"PUBLISHED","datePublished":"2026-12-03T09:22:40.735Z","dateUpdated":"2026-12-03T09:22:40.735Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.373Z"},"containers":{"cna":{"title":"net: virtio: validate outer protocol of UDP tunnel GSO packets","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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"a2fb4bc4e2a6a031683910d85b278c1d25ae5420","status":"affected","lessThan":"87c69cfa32b8483cb9f05adff7603c32928302b8","versionType":"git"},{"version":"a2fb4bc4e2a6a031683910d85b278c1d25ae5420","status":"affected","lessThan":"c1771e1bacae3a727408ad01d8fcf40474e19565","versionType":"git"},{"version":"a2fb4bc4e2a6a031683910d85b278c1d25ae5420","status":"affected","lessThan":"73e08d50eb139e7329032c89a4cb105cf43ef278","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/tun.c","drivers/net/tun_vnet.h","drivers/net/virtio_net.c","include/linux/virtio_net.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.17","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/tun.c","drivers/net/tun_vnet.h","drivers/net/virtio_net.c","include/linux/virtio_net.h"]}],"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"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:22:40.735Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.17","versionEndExcluding":"7.4-rc3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}