]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nft_tunnel: fix null-attribute check
authorFlorian Westphal <fw@strlen.de>
Thu, 16 Jan 2020 07:44:11 +0000 (08:44 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Thu, 16 Jan 2020 13:22:32 +0000 (14:22 +0100)
commit9938325422587240ecdd36420aa44429802dc33a
treec6836978eccfc621716e0c01a38ff0905f1924b9
parentc0a767d6c7ecadaa8c89ff73b588a0e5a5714dc4
netfilter: nft_tunnel: fix null-attribute check

else we get null deref when one of the attributes is missing, both
must be non-null.

Reported-by: syzbot+76d0b80493ac881ff77b@syzkaller.appspotmail.com
Fixes: 34a324dc67249c1 ("netfilter: nf_tables: match on tunnel metadata")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_tunnel.c