Commit 380fe2bd authored by Pablo Neira Ayuso's avatar Pablo Neira Ayuso Committed by Yang Yingliang
Browse files

netfilter: nfnetlink_osf: Fix a missing skb_header_pointer() NULL check



stable inclusion
from linux-4.19.191
commit e11924b7513ceacd7e9a0ed9f8db60629eefbf12

--------------------------------

[ Upstream commit 5e024c32 ]

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: 11eeef41 ("netfilter: passive OS fingerprint xtables match")
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 534093fa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment