CVE-2026-143401: net: virtio: validate outer protocol of UDP tunnel GSO packets

Published Dec 3, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

net: virtio: validate outer protocol of UDP tunnel GSO packets

virtionethdrtnltoskb() trusts the virtio header to describe a UDP tunnel over IPv4 or IPv6, but never checks that the frame actually carries such outer headers. Because VIRTIONETHDRFNEEDSCSUM is mandatory for tunnel GSO, virtionethdrtoskb() skips the flow dissector, so virtionethdrmatchproto() is never applied either.

A guest (or a tap writer) can then inject a frame with an arbitrary outer ethertype, for example ETHPNSH, with SKBGSOUDPTUNNEL set. The GSO stack then runs nshgsosegment() on top of the UDP tunnel segmentation, which assumes a different header layout. The result is segments with skb->data before skb->head, and a host crash in skbunderpanic() as soon as a later layer pushes a header:

skbuff: skbunderpanic: ... put:4 ... dev:gretap1 kernel BUG at net/core/skbuff.c:215! skbpush grexmit gretapxmit ... tungetuser

Validate the outer headers with the parsing helpers from Michael's series "net: resolve uncommon partial checksums at ingress":

- locate the L3 header: Ethernet with optional VLAN tags, or the network header set by the caller. skb->protocol is not trusted when it disagrees with the frame. - require the outer L3 protocol to match the declared tunnel type. - require the outer UDP header exactly at outerthoffset, after IPv4 options or IPv6 extension headers, and reject fragments.

Unlike the original helpers:

- the callers tell whether the frame starts with an Ethernet header, with a new haseth argument of virtionethdrtnltoskb(), instead of using the device type. tun frames packets from its IFFTAP and IFFTUN flags, and TUNSETLINK can set the device type to any value. virtionet and tunxdpone() always pass true, tungetuser() passes whether the device is IFFTAP. - ipv6findhdr() stops at an AH header, as Willem suggested in the review of that series.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In the Linux kernel UDP tunnel GSO path, validate outer headers with the parsing helpers: locate the L3 header using whether the frame starts with Ethernet (including optional VLAN tags), require the outer L3 protocol to match the declared tunnel type, require the outer UDP header at outer_th_offset after IPv4, and reject fragments while parsing IPv6 extension headers. Pass a has_eth argument to virtio_net_hdr_tnl_to_skb() so callers indicate whether the frame starts with Ethernet.

Event History

Dec 3, 2026
CVE Published
via MITRE·09:22 AM
Data Sourced
via MITRE·09:22 AM
Description

Frequently Asked Questions

1

Who can trigger the issue?

A guest or a tap writer can inject the malformed frame. The affected processing is in the host kernel's virtio networking path.

2

What does an attacker need to send?

The attacker needs a frame whose virtio metadata requests UDP tunnel GSO while the actual outer frame is not the claimed IPv4 or IPv6 UDP tunnel. The description gives an arbitrary outer ethertype such as ETH_P_NSH as an example.

3

How might an affected host fail?

The malformed packet can produce invalid GSO segments and cause a host crash in skb_under_panic() when a later layer pushes a header. Reported indicators include a kernel BUG at net/core/skbuff.c:215 and stack entries such as skb_push, __gre_xmit, gre_tap_xmit, and tun_get_user.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203