net/af_packet: check len when min_header_len equals to 0
User can use AF_PACKET socket to send packets with the length of 0. When min_header_len equals to 0, packet_snd will call __dev_queue_xmit to send packets, and sock->type can be any type. Reported-by: <syzbot+5ea725c25d06fb9114c4@syzkaller.appspotmail.com> Fixes: fd189422 ("bpf: Don't redirect packets with invalid pkt_len") Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
parent
3b1c3147
-
mentioned in commit 4931af31
-
mentioned in commit facf99bc
-
mentioned in commit ec274d8f
-
mentioned in commit 25a80e72
-
mentioned in commit 3a4d061c
-
mentioned in commit 13d67aa0
-
mentioned in commit 0a607752
-
mentioned in commit f00ef261
-
mentioned in commit 54c466c6
-
mentioned in commit 5cfe3f91
Please register or sign in to comment