Description
In the Linux kernel, the following vulnerability has been resolved: net: gro: compare skb->protocol in gro_list_prepare() gro_list_prepare() checks whether a held packet may belong to the same flow as the incoming one by comparing the device, VLAN tag, metadata and the link-layer header, using dev->hard_header_len as its length. On devices without a link-layer header (hard_header_len == 0), such as L3 GRE tunnels, no compared byte carries the outer protocol: skb->protocol comes from the tunnel header. Packets of different protocols can then stay eligible, and the GRO handler selected from the incoming skb->protocol parses the held packet with the wrong layout. For example, take an IPv4/UDP packet held by UDP GRO and a VLAN/IPv4/TCP packet received on the same ipgre device. vlan_gro_receive() reads the first four bytes of the held IPv4 header as a VLAN header. With crafted values, the held packet survives up to tcp_gro_receive(), which uses its UDP header as a TCP header. With a short linear part, the FIN/PSH update of the held packet's TCP flags can then write into skb_shared_info. The VLAN, GRE, IPv4 and IPv6 GRO handlers compare the next-protocol field of their own header, so once the outer protocol matches, the inner layers are checked too. Only the outermost protocol was not compared. Compare skb->protocol too. On Ethernet devices this is redundant with compare_ether_header(), but it is cheap. GUE direct IP encapsulation has a similar issue, but there both packets have the same outer protocol, so it is fixed separately in gue_gro_receive().
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
60769a5dcd8755715c7143b4571d5c44f01796f1 to < 31612541338b2d910fd408cdbec1ff3a5a761db5affected60769a5dcd8755715c7143b4571d5c44f01796f1 to < dbc786eeb4d0177e229acc47f120ed5cad632e32affected60769a5dcd8755715c7143b4571d5c44f01796f1 to < 7e2659b28af6b6b644cc2d861fb89e662c6cf8ddaffected60769a5dcd8755715c7143b4571d5c44f01796f1 to < 511582022bfd07475d0daa209e6e6aa5a940740daffected
Linux Linux
Default version status: affected
3.7affected0 to < 3.7unaffected6.12.120 to ≤ 6.12.*unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected