netfilter: nft_osf: add missing check for DREG attribute
authorFlorian Westphal <fw@strlen.de>
Sat, 18 Jan 2020 10:27:25 +0000 (11:27 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jan 2020 15:43:21 +0000 (16:43 +0100)
commit666a530b2e022bc4bd90fe1770f75fae9b1c15b9
tree6e938c31e9f9c017aa5cb703bcf5c894be608a61
parentf5cdfc16faa80d3ce82b811826526d3a481d09e7
netfilter: nft_osf: add missing check for DREG attribute

commit 7eaecf7963c1c8f62d62c6a8e7c439b0e7f2d365 upstream.

syzbot reports just another NULL deref crash because of missing test
for presence of the attribute.

Reported-by: syzbot+cf23983d697c26c34f60@syzkaller.appspotmail.com
Fixes:  b96af92d6eaf9fadd ("netfilter: nf_tables: implement Passive OS fingerprint module in nft_osf")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/netfilter/nft_osf.c