]> git.ipfire.org Git - thirdparty/iptables.git/commit
libxtables: xtoptions: Fix for garbage access in xtables_options_xfrm()
authorPhil Sutter <phil@nwl.cc>
Tue, 28 Nov 2023 19:11:57 +0000 (20:11 +0100)
committerPhil Sutter <phil@nwl.cc>
Wed, 29 Nov 2023 01:33:06 +0000 (02:33 +0100)
commit584569727dc0fc52f401db628059807030138a99
treee2498462c3ae28c6218ee0fafdbe9943ac1f43df
parentd8c64911cfd602f57354f36e5ca79bbedd62aa7a
libxtables: xtoptions: Fix for garbage access in xtables_options_xfrm()

Allocation of the temporary array did not account for a terminating NULL
entry, causing array boundary overstepping in the called
xtables_merge_options(), causing spurious errors in extension parameter
parsing.

Fixes: ed8c3ea4015f0 ("libxtables: Combine the two extension option mergers")
Signed-off-by: Phil Sutter <phil@nwl.cc>
libxtables/xtoptions.c