From: Mathias Krause Date: Sun, 7 Apr 2013 01:52:01 +0000 (+0000) Subject: VSOCK: vmci - fix possible info leak in vmci_transport_dgram_dequeue() X-Git-Tag: v3.9-rc7~26^2~19^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=680d04e0ba7e926233e3b9cee59125ce181f66ba;p=pandora-kernel.git VSOCK: vmci - fix possible info leak in vmci_transport_dgram_dequeue() In case we received no data on the call to skb_recv_datagram(), i.e. skb->data is NULL, vmci_transport_dgram_dequeue() will return with 0 without updating msg_namelen leading to net/socket.c leaking the local, uninitialized sockaddr_storage variable to userland -- 128 bytes of kernel stack memory. Fix this by moving the already existing msg_namelen assignment a few lines above. Cc: Andy King Cc: Dmitry Torokhov Cc: George Zhang Signed-off-by: Mathias Krause Signed-off-by: David S. Miller --- Reading git-diff-tree failed