Files
twx-linux/include/linux
Willem de Bruijn 7bbf73e918 net: stricter validation of untrusted gso packets
[ Upstream commit 9274124f02 ]

Syzkaller again found a path to a kernel crash through bad gso input:
a packet with transport header extending beyond skb_headlen(skb).

Tighten validation at kernel entry:

- Verify that the transport header lies within the linear section.

    To avoid pulling linux/tcp.h, verify just sizeof tcphdr.
    tcp_gso_segment will call pskb_may_pull (th->doff * 4) before use.

- Match the gso_type against the ip_proto found by the flow dissector.

Fixes: bfd5f4a3d6 ("packet: Add GSO/csum offload support.")
Reported-by: syzbot <syzkaller@googlegroups.com>
Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-05-14 07:58:21 +02:00
..
2020-02-19 19:53:09 +01:00
2020-02-11 04:35:52 -08:00
2020-03-25 08:25:58 +01:00
2020-03-25 08:25:58 +01:00
2019-10-02 06:36:50 -07:00
2019-12-13 08:42:53 +01:00
2019-12-13 08:43:18 +01:00
2020-05-02 08:48:50 +02:00
2020-03-18 07:17:46 +01:00
2020-04-17 10:50:12 +02:00
2020-04-02 15:11:00 +02:00
2019-10-31 14:01:40 -07:00
2019-09-25 17:51:41 -07:00
2019-10-02 10:06:45 +02:00
2020-04-02 15:11:00 +02:00