]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
netfilter: x_tables: ensure names are nul-terminated
authorFlorian Westphal <fw@strlen.de>
Tue, 31 Mar 2026 21:13:36 +0000 (23:13 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 1 Apr 2026 09:55:29 +0000 (11:55 +0200)
commita958a4f90ddd7de0800b33ca9d7b886b7d40f74e
tree493972f1ca5e4de71c60a8a51ea72b14b94a860a
parent6d52a4a0520a6696bdde51caa11f2d6821cd0c01
netfilter: x_tables: ensure names are nul-terminated

Reject names that lack a \0 character before feeding them
to functions that expect c-strings.

Fixes tag is the most recent commit that needs this change.

Fixes: c38c4597e4bf ("netfilter: implement xt_cgroup cgroup2 path match")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/xt_cgroup.c
net/netfilter/xt_rateest.c