]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commit1c702bf902bd37349f6d91cd7f4b372b1e46d0ed
treec6836978eccfc621716e0c01a38ff0905f1924b9
parentec7470b834fe7b5d7eff11b6677f5d7fdf5e9a91
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: aaecfdb5c5dd8ba ("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