Skip to content

Commit d9eb317

Browse files
committed
Florian Westphal says: ==================== netfilter: update for net This is one last-minute crash fix for nf_tables, from Andrew Fasano: Logical check is inverted, this makes kernel fail to correctly undo the transaction, leading to a use-after-free. * tag 'nf-26-02-05' of https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf: netfilter: nf_tables: fix inverted genmask check in nft_map_catchall_activate() ==================== Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
2 parents 7d6ba70 + f41c5d1 commit d9eb317

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

net/netfilter/nf_tables_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5914,7 +5914,7 @@ static void nft_map_catchall_activate(const struct nft_ctx *ctx,
59145914

59155915
list_for_each_entry(catchall, &set->catchall_list, list) {
59165916
ext = nft_set_elem_ext(set, catchall->elem);
5917-
if (!nft_set_elem_active(ext, genmask))
5917+
if (nft_set_elem_active(ext, genmask))
59185918
continue;
59195919

59205920
nft_clear(ctx->net, ext);

0 commit comments

Comments
 (0)