]> git.karo-electronics.de Git - karo-tx-linux.git/commit
netfilter: ctnetlink: don't permit ct creation with random tuple
authorFlorian Westphal <fw@strlen.de>
Mon, 11 Feb 2013 23:22:38 +0000 (23:22 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 May 2013 20:53:55 +0000 (13:53 -0700)
commit79293de3160850689a436a072f51037493db73b8
tree1292090cbd70afd0b5f6c79461c1fe45e06c481c
parentfc27819bea8a7791c8a95e0db258389d3cb00887
netfilter: ctnetlink: don't permit ct creation with random tuple

commit 442fad9423b78319e0019a7f5047eddf3317afbc upstream.

Userspace can cause kernel panic by not specifying orig/reply
tuple: kernel will create a tuple with random stack values.

Problem is that tuple.dst.dir will be random, too, which
causes nf_ct_tuplehash_to_ctrack() to return garbage.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@gnumonks.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/netfilter/nf_conntrack_netlink.c