]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
netfilter: nf_tables: check if catch-all set element is active in next generation
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 12 Jan 2024 22:28:45 +0000 (23:28 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jan 2024 23:27:42 +0000 (15:27 -0800)
commita372f1d01bc11aa85773a02353cd01aaf16dc18e
treee2d71cc6b8ddeb2d326dade8f9f85251e4a941c4
parentc6350b5cb78e9024c49eaee6fdb914ad2903a5fe
netfilter: nf_tables: check if catch-all set element is active in next generation

commit b1db244ffd041a49ecc9618e8feb6b5c1afcdaa7 upstream.

When deactivating the catch-all set element, check the state in the next
generation that represents this transaction.

This bug uncovered after the recent removal of the element busy mark
a2dd0233cbc4 ("netfilter: nf_tables: remove busy mark and gc batch API").

Fixes: aaa31047a6d2 ("netfilter: nftables: add catch-all set element support")
Cc: stable@vger.kernel.org
Reported-by: lonial con <kongln9170@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/netfilter/nf_tables_api.c