]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nfnetlink_osf: Fix a missing skb_header_pointer() NULL check
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 5 May 2021 20:25:24 +0000 (22:25 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 5 May 2021 20:26:09 +0000 (22:26 +0200)
commit182d3b63c0dac6beb80a13a6128e167cd111c6a2
treef0c342e641912b5e6e41e0965971f1410bc2a44c
parentaaa3419f085238e00a7b44c291a418d409174e65
netfilter: nfnetlink_osf: Fix a missing skb_header_pointer() NULL check

Do not assume that the tcph->doff field is correct when parsing for TCP
options, skb_header_pointer() might fail to fetch these bits.

Fixes: 82f337bd3ffb ("netfilter: passive OS fingerprint xtables match")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nfnetlink_osf.c