]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
netfilter: flowtable: use dst in this direction when pushing IPIP header
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 30 Jun 2026 09:40:54 +0000 (11:40 +0200)
committerFlorian Westphal <fw@strlen.de>
Wed, 8 Jul 2026 13:33:44 +0000 (15:33 +0200)
commitc328b90c17fc5fa7786503695152880b2afb9326
tree84b653b7bc72349c5a0347deb37544f30611137c
parent724f32699aeabcbd294377904b40b456fd5c67eb
netfilter: flowtable: use dst in this direction when pushing IPIP header

When pushing the IPIP header, the route of the other direction is used
to calculate the headroom, use the route in this direction. Accessing
the other tuple to set the IP source and destination is fine because
this tuple does not provide such information to avoid storing redundant
information. However, this tuple already provides the dst for this
direction, this went unnoticed because this bug affects headroom and
iph->frag_off only at this stage.

Fixes: d30301ba4b07 ("netfilter: flowtable: Add IPIP tx sw acceleration")
Fixes: 93cf357fa797 ("netfilter: flowtable: Add IP6IP6 tx sw acceleration")
Cc: stable@vger.kernel.org
Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
net/netfilter/nf_flow_table_ip.c