From: Pablo Neira Ayuso Date: Tue, 7 May 2013 01:22:18 +0000 (+0200) Subject: netfilter: xt_TCPOPTSTRIP: fix possible mangling beyond packet boundary X-Git-Tag: v3.10-rc3~18^2~38^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc6bcb59dd7c184d229f9e86d08aa56059938a4c;p=pandora-kernel.git netfilter: xt_TCPOPTSTRIP: fix possible mangling beyond packet boundary This target assumes that tcph->doff is well-formed, that may be well not the case. Add extra sanity checkings to avoid possible crash due to read/write out of the real packet boundary. After this patch, the default action on malformed TCP packets is to drop them. Moreover, fragments are skipped. Reported-by: Rafal Kupka Signed-off-by: Pablo Neira Ayuso --- Reading git-diff-tree failed