Commit 5c85a30
committed
net/af_packet: check len when min_header_len equals to 0
JIRA: https://issues.redhat.com/browse/RHEL-84598
Upstream Status: net.git commit dc63370
commit dc63370
Author: Zhengchao Shao <shaozhengchao@huawei.com>
Date: Wed Jul 27 17:33:12 2022 +0800
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: fd18942 ("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>
Signed-off-by: Davide Caratti <dcaratti@redhat.com>1 parent 96f30f2 commit 5c85a30
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3052 | 3052 | | |
3053 | 3053 | | |
3054 | 3054 | | |
3055 | | - | |
3056 | | - | |
| 3055 | + | |
| 3056 | + | |
3057 | 3057 | | |
3058 | 3058 | | |
3059 | 3059 | | |
| |||
0 commit comments