Skip to content

Commit ea72d65

Browse files
committed
netfilter: nf_tables: do not compare internal table flags on updates
jira LE-1907 cve CVE-2024-27065 Rebuild_History Non-Buildable kernel-4.18.0-553.16.1.el8_10 commit-author Pablo Neira Ayuso <[email protected]> commit 4a0e7f2 Restore skipping transaction if table update does not modify flags. Fixes: 179d9ba ("netfilter: nf_tables: fix table flag updates") Signed-off-by: Pablo Neira Ayuso <[email protected]> (cherry picked from commit 4a0e7f2) Signed-off-by: Jonathan Maple <[email protected]>
1 parent 57afa44 commit ea72d65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/netfilter/nf_tables_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,7 @@ static int nf_tables_updtable(struct nft_ctx *ctx)
968968
if (flags & ~NFT_TABLE_F_DORMANT)
969969
return -EINVAL;
970970

971-
if (flags == ctx->table->flags)
971+
if (flags == (ctx->table->flags & NFT_TABLE_F_MASK))
972972
return 0;
973973

974974
/* No dormant off/on/off/on games in single transaction */

0 commit comments

Comments
 (0)