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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Florian Westphal 2016-03-22 18:02:50 +01:00 • committed by Greg Kroah-Hartman
commit 868fe2536f
3 changed files with 12 additions and 6 deletions