diff options
author | Eric Dumazet <edumazet@google.com> | 2019-06-07 21:23:48 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-10 04:42:23 +0200 |
commit | 392096736a06bc9d8f2b42fd4bb1a44b245b9fed (patch) | |
tree | 49e47af6d0fe976d4ea59af736c46f590c826334 /net/key | |
parent | Merge branch 'Avoid-local_irq_save-and-use-napi_alloc_frag-where-possible' (diff) | |
download | linux-392096736a06bc9d8f2b42fd4bb1a44b245b9fed.tar.xz linux-392096736a06bc9d8f2b42fd4bb1a44b245b9fed.zip |
ipv6: tcp: fix potential NULL deref in tcp_v6_send_reset()
syzbot found a crash in tcp_v6_send_reset() caused by my latest
change.
Problem is that if an skb has been queued to socket prequeue,
skb_dst(skb)->dev can not anymore point to the device.
Fortunately in this case the socket pointer is not NULL.
A similar issue has been fixed in commit 0f85feae6b71 ("tcp: fix
more NULL deref after prequeue changes"), I should have known better.
Fixes: 323a53c41292 ("ipv6: tcp: enable flowlabel reflection in some RST packets")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: syzbot <syzkaller@googlegroups.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/key')
0 files changed, 0 insertions, 0 deletions