netfilter: nft_osf: NFTA_OSF_DREG must not be null
Subsystems (3)
PATCH 1/1 netfilter: nft_osf: NFTA_OSF_DREG must not be null
Fixes b96af92d6eaf ("netfilter: nf_tables: implement Passive OS fingerprint module in nft_osf")
Reported-by [email protected]
Cc Florian Westphal <[email protected]>
Cc Pablo Neira Ayuso <[email protected]>
Cc Fernando Fernandez Mancera <[email protected]>
Signed-off-by Cong Wang <[email protected]>
--- net/netfilter/nft_osf.c | 3 +++ 1 file changed, 3 insertions(+)
net/netfilter/nft_osf.c +3 -0
@@ -61,6 +61,9 @@ static int nft_osf_init(const struct nft_ctx *ctx,int err;u8 ttl; +if (!tb[NFTA_OSF_DREG ]) +return -EINVAL ; +if (tb[NFTA_OSF_TTL ]) { ttl =nla_get_u8 (tb[NFTA_OSF_TTL ]);if (ttl >2 )
Signature · 1 line
2.21.1
Pablo Neira Ayuso
maintainerQuoted 6 lines · Pablo Neira Ayuso
Thanks. This is a dup though:
https://patchwork.ozlabs.org/patch/1225125/
Thanks in any case.
I didn't see it on netdev. But glad to see there is already a fix.
Thanks.