]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
netfilter: nf_flow_table: check ttl value in flow offload data path
authorTaehee Yoo <ap420073@gmail.com>
Mon, 29 Apr 2019 16:55:54 +0000 (01:55 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Jun 2019 09:52:59 +0000 (11:52 +0200)
commitc155f374d89ea0444729e7484181ffcc623f4b2b
tree2ff47af351008324c8478a55fcdd2173b7c0f76b
parentc6508f86f9398fed1bd0206f6c9f1e8d2b45c20f
netfilter: nf_flow_table: check ttl value in flow offload data path

[ Upstream commit 33cc3c0cfa64c86b6c4bbee86997aea638534931 ]

nf_flow_offload_ip_hook() and nf_flow_offload_ipv6_hook() do not check
ttl value. So, ttl value overflow may occur.

Fixes: 97add9f0d66d ("netfilter: flow table support for IPv4")
Fixes: 0995210753a2 ("netfilter: flow table support for IPv6")
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/netfilter/nf_flow_table_ip.c