From: Florian Westphal Date: Tue, 22 Mar 2016 17:02:49 +0000 (+0100) Subject: netfilter: x_tables: validate e->target_offset early X-Git-Tag: v3.2.80~38 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fcf67674aeafe62db7b17091050b811883524fe;p=pandora-kernel.git netfilter: x_tables: validate e->target_offset early commit bdf533de6968e9686df777dc178486f600c6e617 upstream. We should check that e->target_offset is sane before mark_source_chains gets called since it will fetch the target entry for loop detection. Signed-off-by: Florian Westphal Signed-off-by: Pablo Neira Ayuso [bwh: Backported to 3.2: adjust context] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed