Skip to content

netfilter: nft_set_pipapo: walk over current view on netlink dump

Phil Sutter requested to merge psutter1/centos-stream-9:c9s/RHEL-35035 into main

CVE: CVE-2024-27017 JIRA: https://issues.redhat.com/browse/RHEL-35035 Upstream Status: commit 29b359cf6d95fd60730533f7f10464e95bd17c73 Conflicts: Context change due to missing commits f04df573faf9 ("netfilter: nft_set_pipapo: constify lookup fn args where possible") and aac14d516c2b ("netfilter: nft_set_pipapo: shrink data structures").

commit 29b359cf6d95fd60730533f7f10464e95bd17c73 Author: Pablo Neira Ayuso pablo@netfilter.org Date: Wed Apr 10 18:50:45 2024 +0200

netfilter: nft_set_pipapo: walk over current view on netlink dump

The generation mask can be updated while netlink dump is in progress.
The pipapo set backend walk iterator cannot rely on it to infer what
view of the datastructure is to be used. Add notation to specify if user
wants to read/update the set.

Based on patch from Florian Westphal.

Fixes: 2b84e215f874 ("netfilter: nft_set_pipapo: .walk does not deal with generations")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

Signed-off-by: Phil Sutter psutter@redhat.com

Merge request reports