CVE-2026-142938: virtio-net: fix frag overflow in big packets receive
In the Linux kernel, the following vulnerability has been resolved:
virtio-net: fix frag overflow in big packets receive
In big packets mode with guest GSO, addrecvbufbig() posts a chain of MAXSKBFRAGS + 1 pages. pagetoskb() copies only ETHHLEN of the first page into the linear area and adds the rest of that page as a frag, then one frag per remaining page. A device that fills the entire buffer therefore causes MAXSKBFRAGS + 1 frags, writing one skbfragt past the end of skbshinfo(skb)->frags[].
Post one page less. The buffer still fits a maximal GSO packet. A well behaved device does not trigger this, as GSO packets are at most 64KB.
Also check the frag count in pagetoskb() before adding any frag as defense in depth.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In big-packets mode with guest GSO, have add_recvbuf_big() post one page fewer (MAX_SKB_FRAGS pages instead of MAX_SKB_FRAGS + 1).
- Compensating control
In page_to_skb(), check the frag count before adding any frag to prevent writing past skb_shinfo(skb)->frags[].
Event History
Frequently Asked Questions
Which deployments are exposed to the overflow condition?
Systems using virtio-net in big packets mode with guest GSO are exposed if the receive path can process a device-filled buffer chain. The issue concerns the handling of large received packets, not ordinary virtio-net use as such.
What must happen for the overflow to be triggered?
The device must fill the entire posted receive buffer chain. This makes page_to_skb() attempt to add MAX_SKB_FRAGS + 1 fragments, exceeding the skb fragment array by one entry; a well-behaved device normally does not do this because GSO packets are limited to 64 KB.
What protections does the resolved code add?
The fix posts one fewer page in the big-packet receive buffer chain while retaining capacity for a maximal GSO packet. It also verifies the fragment count before adding any fragment in page_to_skb() as a defense-in-depth measure.