Skip to content

Commit a476cbc

Browse files
author
CIQ Kernel Automation
committed
netfilter: nf_tables: do not compare internal table flags on updates
jira VULN-4986 cve CVE-2024-27065 commit-author Pablo Neira Ayuso <pablo@netfilter.org> 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 <pablo@netfilter.org> (cherry picked from commit 4a0e7f2) Signed-off-by: CIQ Kernel Automation <ciq_kernel_automation@ciq.com>
1 parent be0b1ba commit a476cbc

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
@@ -1156,7 +1156,7 @@ static int nf_tables_updtable(struct nft_ctx *ctx)
11561156
if (flags & ~NFT_TABLE_F_MASK)
11571157
return -EOPNOTSUPP;
11581158

1159-
if (flags == ctx->table->flags)
1159+
if (flags == (ctx->table->flags & NFT_TABLE_F_MASK))
11601160
return 0;
11611161

11621162
if ((nft_table_has_owner(ctx->table) &&

0 commit comments

Comments
 (0)