Commit cf1ee183 authored by Florian Westphal's avatar Florian Westphal Committed by Dong Chenchen
Browse files

netfilter: nft_set_pipapo: skip inactive elements during set walk

stable inclusion
from stable-v5.10.203
commit bf72b44fe81be08a9fcd58aabf417cd3337ffc99
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I8PGNK
CVE: CVE-2023-6817

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=bf72b44fe81be08a9fcd58aabf417cd3337ffc99



--------------------------------

commit 317eb9685095678f2c9f5a8189de698c5354316a upstream.

Otherwise set elements can be deactivated twice which will cause a crash.

Reported-by: default avatarXingyuan Mo <hdthky0@gmail.com>
Fixes: 3c4287f6 ("nf_tables: Add set type for arbitrary concatenation of ranges")
Signed-off-by: default avatarFlorian Westphal <fw@strlen.de>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Conflicts:
	net/netfilter/nft_set_pipapo.c
Signed-off-by: default avatarDong Chenchen <dongchenchen2@huawei.com>
parent 2670bf30
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment