]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
netfilter: x_physdev: reject empty or not-nul terminated device names
authorFlorian Westphal <fw@strlen.de>
Sat, 28 Mar 2026 22:00:31 +0000 (23:00 +0100)
committerFlorian Westphal <fw@strlen.de>
Fri, 10 Apr 2026 10:16:26 +0000 (12:16 +0200)
commit8df772afc9d016b597d22a1431e7011b90ce1fb3
treeb9f6676afa1f157d3907489e011c1b88fa7dd66b
parent8d7de5477e47525c870b599fb2de06ef8af63466
netfilter: x_physdev: reject empty or not-nul terminated device names

Reject names that lack a \0 character and reject the empty string as
well. iptables allows this but it fails to re-parse iptables-save output
that contain such rules.

Signed-off-by: Florian Westphal <fw@strlen.de>
net/netfilter/xt_physdev.c