Skip to content

Commit 7bb1720

Browse files
committed
netfilter: nft_set_pipapo: stop GC iteration if GC transaction allocation fails
jira VULN-430 cve CVE-2023-4244 commit-author Pablo Neira Ayuso <pablo@netfilter.org> commit 6d365ea nft_trans_gc_queue_sync() enqueues the GC transaction and it allocates a new one. If this allocation fails, then stop this GC sync run and retry later. Fixes: 5f68718 ("netfilter: nf_tables: GC transaction API to avoid race with control plane") Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> (cherry picked from commit 6d365ea) Signed-off-by: Marcin Wcisło <marcin.wcislo@conclusive.pl>
1 parent fd09e77 commit 7bb1720

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/netfilter/nft_set_pipapo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1597,7 +1597,7 @@ static void pipapo_gc(const struct nft_set *_set, struct nft_pipapo_match *m)
15971597

15981598
gc = nft_trans_gc_queue_sync(gc, GFP_ATOMIC);
15991599
if (!gc)
1600-
break;
1600+
return;
16011601

16021602
nft_pipapo_gc_deactivate(net, set, e);
16031603
pipapo_drop(m, rulemap);

0 commit comments

Comments
 (0)