aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp/ccids/ccid2.c
diff options
context:
space:
mode:
authorPatrick McHardy <[email protected]>2006-10-24 23:15:10 +0000
committerDavid S. Miller <[email protected]>2006-10-24 23:15:10 +0000
commit6d381634d213580d40d431e7664dfb45f641b884 (patch)
treea8680dd059e9a4e115d17e54d4a8dcea4d196a3e /net/dccp/ccids/ccid2.c
parent[NETFILTER]: Fix ip6_tables protocol bypass bug (diff)
downloadkernel-6d381634d213580d40d431e7664dfb45f641b884.tar.gz
kernel-6d381634d213580d40d431e7664dfb45f641b884.zip
[NETFILTER]: Fix ip6_tables extension header bypass bug
As reported by Mark Dowd <[email protected]>, ip6_tables is susceptible to a fragmentation attack causing false negatives on extension header matches. When extension headers occur in the non-first fragment after the fragment header (possibly with an incorrect nexthdr value in the fragment header) a rule looking for this extension header will never match. Drop fragments that are at offset 0 and don't contain the final protocol header regardless of the ruleset, since this should not happen normally. Since all extension headers are before the protocol header this makes sure an extension header is either not present or in the first fragment, where we can properly parse it. With help from Yasuyuki KOZAKAI <[email protected]>. Signed-off-by: Patrick McHardy <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/dccp/ccids/ccid2.c')
0 files changed, 0 insertions, 0 deletions