diff options
author | Florian Westphal <fw@strlen.de> | 2017-03-03 21:44:00 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-03-08 18:02:12 +0100 |
commit | 7b4fdf77a450ec0fdcb2f677b080ddbf2c186544 (patch) | |
tree | c4bbce5d29dfa51fa2a5d02b657b432adbfea30a /scripts | |
parent | 8d70eeb84ab277377c017af6a21d0a337025dede (diff) |
netfilter: don't track fragmented packets
Andrey reports syzkaller splat caused by
NF_CT_ASSERT(!ip_is_fragment(ip_hdr(skb)));
in ipv4 nat. But this assertion (and the comment) are wrong, this function
does see fragments when IP_NODEFRAG setsockopt is used.
As conntrack doesn't track packets without complete l4 header, only the
first fragment is tracked.
Because applying nat to first packet but not the rest makes no sense this
also turns off tracking of all fragments.
Reported-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions