Files
Michael S. Tsirkin 6785011f8b ipv4: validate checksum_start before completing checksum
If a packet with bad checksum metadata gets into the ipv4 stack,
skb_checksum_help can corrupt the network header and cause a bunch of
mischief.

This was discovered and reported by Paulos, and has been reporoduced
by others independently since.

We really shouldn't allow such packets in, but as a defence
in depth measure, let's also check before we complete the checksum.

A more complete validation at input is forthcoming, but needs more work.

Cc: [email protected]
Fixes: f43798c276 ("tun: Allow GSO using virtio_net_hdr")
Fixes: bfd5f4a3d6 ("packet: Add GSO/csum offload support.")
Reported-by: Paulos Yibelo <[email protected]>
Closes: https://lore.kernel.org/netdev/[email protected]/
Signed-off-by: Michael S. Tsirkin <[email protected]>
Reviewed-by: Willem de Bruijn <[email protected]>
Link: https://patch.msgid.link/0a012b4923e189c4c593ef4f471e5ff0edbe9030.1791412497.git.mst@redhat.com
Signed-off-by: Jakub Kicinski <[email protected]>
2026-10-08 11:03:47 -07:00
..
…
…
…
…
…
…
…
…
2026-08-18 15:50:13 +02:00
…
…
…
…
…
…
…
2025-08-26 17:34:31 -07:00
…
…
…
2026-01-21 19:28:32 -08:00
…
2026-09-18 16:44:08 -07:00
…
…
2026-08-13 12:30:27 +02:00
…
…
…
…
…
…
…
…
…
…
…
2025-09-18 12:32:06 +02:00
…
…
…
…
…
…
…
2025-09-08 18:06:21 -07:00
…
2025-07-11 11:00:57 -07:00
…
2026-03-13 18:57:44 -07:00
…