]> git.ipfire.org Git - thirdparty/iptables.git/commit
ebtables: Zero freed pointers in ebt_cs_clean()
authorPhil Sutter <phil@nwl.cc>
Wed, 31 Jul 2024 21:02:23 +0000 (23:02 +0200)
committerPhil Sutter <phil@nwl.cc>
Wed, 14 Aug 2024 07:50:31 +0000 (09:50 +0200)
commit7b7c0936303abd0a7b26c8bc1382136265815677
tree06a37951f8171abb658eb0a8bd148f4cce2b6616
parente942c8086ad1f92b8fc3547b7b5570a4a17ef1a8
ebtables: Zero freed pointers in ebt_cs_clean()

Trying to recycle an iptables_command_state object by calling first
clear_cs then init_cs callbacks causes invalid data accesses with
ebtables otherwise.

Fixes: fe97f60e5d2a9 ("ebtables-compat: add watchers support")
Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/nft-bridge.c