commit | 1661bf364ae9c506bc8795fef70d1532931be1e8 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Thu Oct 03 00:27:20 2013 +0300 |
committer | David S. Miller <davem@davemloft.net> | Thu Oct 03 16:05:14 2013 -0400 |
tree | 2ce62724a9931016cbbdb1bb94bc140012524c71 | |
parent | 196896d4bb297e3ff24e62b2bfc22bbed7a28431 [diff] |
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 <juri.aedla@gmail.com> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>