]> git.ipfire.org Git - thirdparty/nftables.git/commit
evaluate: do not fetch next expression on runaway number of concatenation components
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 10 Jan 2024 17:20:47 +0000 (18:20 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 22 Jan 2025 23:41:54 +0000 (00:41 +0100)
commitb6884541ecfc8cce8003906af7e32894fc537492
treee7f7e764e0e209922278e2f0e84bf03ec55f6333
parente6efd0de0931e4f7f4615c265630fbbfdc52f606
evaluate: do not fetch next expression on runaway number of concatenation components

commit 955bb6d31c90453e43043346c917646ddc4e5c4e upstream.

If this is the last expression, then the runaway flag is set on and
evaluation bails in the next iteration, do not fetch next list element
which refers to the list head.

I found this by code inspection, I could not trigger any crash with this
one.

Fixes: ae1d54d1343f ("evaluate: do not crash on runaway number of concatenation components")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/evaluate.c