Skip to content

Commit 7c0a2d9

Browse files
committed
netfilter: nft_set_pipapo: no need to call pipapo_deactivate() from flush
jira VULN-430 cve CVE-2023-4244 commit-author Pablo Neira Ayuso <pablo@netfilter.org> commit 26cec9d Use the element object that is already offered instead. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> (cherry picked from commit 26cec9d) Signed-off-by: Marcin Wcisło <marcin.wcislo@conclusive.pl>
1 parent 1721738 commit 7c0a2d9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

net/netfilter/nft_set_pipapo.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1816,8 +1816,9 @@ static bool nft_pipapo_flush(const struct net *net, const struct nft_set *set,
18161816
{
18171817
struct nft_pipapo_elem *e = elem;
18181818

1819-
return pipapo_deactivate(net, set, (const u8 *)nft_set_ext_key(&e->ext),
1820-
&e->ext);
1819+
nft_set_elem_change_active(net, set, &e->ext);
1820+
1821+
return true;
18211822
}
18221823

18231824
/**

0 commit comments

Comments
 (0)