netfilter: x_tables: make sure e->next_offset covers remaining blob size

commit 6e94e0cfb0 upstream.

Otherwise this function may read data beyond the ruleset blob.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
This commit is contained in:
Florian Westphal 2016-03-22 18:02:50 +01:00 • committed by Ben Hutchings
commit 113ec64467
3 changed files with 12 additions and 6 deletions