From: Dan Carpenter Date: Wed, 2 Oct 2013 21:27:20 +0000 (+0300) Subject: net: heap overflow in __audit_sockaddr() X-Git-Tag: v3.2.53~83 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1d515ce7d27262d9acb468aece806264886a9be;p=pandora-kernel.git net: heap overflow in __audit_sockaddr() [ Upstream commit 1661bf364ae9c506bc8795fef70d1532931be1e8 ] We need to cap ->msg_namelen or it leads to a buffer overflow when we to the memcpy() in __audit_sockaddr(). It requires CAP_AUDIT_CONTROL to exploit this bug. The call tree is: ___sys_recvmsg() move_addr_to_user() audit_sockaddr() __audit_sockaddr() Reported-by: Jüri Aedla Signed-off-by: Dan Carpenter Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed