diff options
| author | Lorenzo Bianconi <lorenzo@kernel.org> | 2026-06-08 14:33:23 +0200 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2026-06-23 08:11:21 +0200 |
| commit | 84460b644329e25809b4a6d9279d6359d7fd8ebc (patch) | |
| tree | e82ab95468cdf8b9c798b9ad1175253dee310870 /include/uapi/linux/errqueue.h | |
| parent | c8b6f36f766991e3ebebec6596daee4b04dcbc49 (diff) | |
netfilter: flowtable: Validate iph->ihl in nf_flow_ip4_tunnel_proto()
Add sanity check for iph->ihl field in nf_flow_ip4_tunnel_proto() before
using it to compute the header size, avoiding out-of-bounds access with
malformed IP headers.
While at it, use iph->protocol instead of the hardcoded IPPROTO_IPIP
constant when setting ctx->tun.proto and reference ctx->tun.hdr_size
when updating ctx->offset.
Fixes: ab427db178858 ("netfilter: flowtable: Add IPIP rx sw acceleration")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/uapi/linux/errqueue.h')
0 files changed, 0 insertions, 0 deletions
