netfilter: nfnetlink: validate nfnetlink header from batch

commit 9ea2aa8b7d upstream.

Make sure there is enough room for the nfnetlink header in the
netlink messages that are part of the batch. There is a similar
check in netlink_rcv_skb().

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
This commit is contained in:
Pablo Neira Ayuso 2015-01-04 15:20:29 +01:00 • committed by Luis Henriques
commit d922a1cee4