Skip to content

Commit f6014c3

Browse files
committed
netfilter: nft_dynset: disallow object maps
jira VULN-430 cve CVE-2023-4244 commit-author Pablo Neira Ayuso <pablo@netfilter.org> commit 23185c6 Do not allow to insert elements from datapath to objects maps. Fixes: 8aeff92 ("netfilter: nf_tables: add stateful object reference to set elements") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: Florian Westphal <fw@strlen.de> (cherry picked from commit 23185c6) Signed-off-by: Marcin Wcisło <marcin.wcislo@conclusive.pl>
1 parent 819d0ed commit f6014c3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

net/netfilter/nft_dynset.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,9 @@ static int nft_dynset_init(const struct nft_ctx *ctx,
191191
if (IS_ERR(set))
192192
return PTR_ERR(set);
193193

194+
if (set->flags & NFT_SET_OBJECT)
195+
return -EOPNOTSUPP;
196+
194197
if (set->ops->update == NULL)
195198
return -EOPNOTSUPP;
196199

0 commit comments

Comments
 (0)