diff options
author | Mathias Krause <minipli@googlemail.com> | 2013-04-07 03:52:01 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-04-07 22:28:02 +0200 |
commit | 680d04e0ba7e926233e3b9cee59125ce181f66ba (patch) | |
tree | bd075aa2f2b87d1b6f019baaee2cbb89cb4ba388 /net/sunrpc | |
parent | tipc: fix info leaks via msg_name in recv_msg/recv_stream (diff) | |
download | linux-680d04e0ba7e926233e3b9cee59125ce181f66ba.tar.xz linux-680d04e0ba7e926233e3b9cee59125ce181f66ba.zip |
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 <acking@vmware.com>
Cc: Dmitry Torokhov <dtor@vmware.com>
Cc: George Zhang <georgezhang@vmware.com>
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sunrpc')
0 files changed, 0 insertions, 0 deletions