{"id":"CVE-2026-143401","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-12-03T10:18:34.107","lastModified":"2026-12-03T10:18:34.107","vulnStatus":"Received","cveTags":[],"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":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","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","versions":[{"version":"a2fb4bc4e2a6a031683910d85b278c1d25ae5420","lessThan":"87c69cfa32b8483cb9f05adff7603c32928302b8","versionType":"git","status":"affected"},{"version":"a2fb4bc4e2a6a031683910d85b278c1d25ae5420","lessThan":"c1771e1bacae3a727408ad01d8fcf40474e19565","versionType":"git","status":"affected"},{"version":"a2fb4bc4e2a6a031683910d85b278c1d25ae5420","lessThan":"73e08d50eb139e7329032c89a4cb105cf43ef278","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","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","versions":[{"version":"6.17","status":"affected"},{"version":"0","lessThan":"6.17","versionType":"semver","status":"unaffected"},{"version":"6.18.66","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.7","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc3","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/73e08d50eb139e7329032c89a4cb105cf43ef278","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/87c69cfa32b8483cb9f05adff7603c32928302b8","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/c1771e1bacae3a727408ad01d8fcf40474e19565","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}