From: Dan Carpenter Date: Wed, 2 Oct 2013 21:27:20 +0000 (+0300) Subject: net: heap overflow in __audit_sockaddr() X-Git-Tag: v3.12-rc7~20^2~72 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1661bf364ae9c506bc8795fef70d1532931be1e8;p=pandora-kernel.git net: heap overflow in __audit_sockaddr() 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 --- Reading git-diff-tree failed