ipv6: fix NULL deref in ip6_rcv_core()
authorEric Dumazet <edumazet@google.com>
Wed, 13 Apr 2022 20:56:53 +0000 (13:56 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 15 Apr 2022 21:05:18 +0000 (14:05 -0700)
commit0339d25a2807d913f5645b8d5e485640915f9702
tree6557f6bc38136f7d8f3651132fef7ca414cd951a
parentc9a40d1c87e9b5c74b5ac73e81ed3d5be4d1b1af
ipv6: fix NULL deref in ip6_rcv_core()

idev can be NULL, as the surrounding code suggests.

Fixes: 4daf841a2ef3 ("net: ipv6: add skb drop reasons to ip6_rcv_core()")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Menglong Dong <imagedong@tencent.com>
Cc: Jiang Biao <benbjiang@tencent.com>
Cc: Hao Peng <flyingpeng@tencent.com>
Link: https://lore.kernel.org/r/20220413205653.1178458-1-eric.dumazet@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv6/ip6_input.c