2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-15 00:34:10 +08:00
linux-next/net/vmw_vsock
Mathias Krause 680d04e0ba 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>
2013-04-07 16:28:02 -04:00
..
af_vsock.c VSOCK: Handle changes to the VMCI context ID. 2013-04-02 14:39:17 -04:00
af_vsock.h VSOCK: Introduce VM Sockets 2013-02-10 19:41:08 -05:00
Kconfig VSOCK: Introduce VM Sockets 2013-02-10 19:41:08 -05:00
Makefile VSOCK: Introduce VM Sockets 2013-02-10 19:41:08 -05:00
vmci_transport_notify_qstate.c VSOCK: Introduce VM Sockets 2013-02-10 19:41:08 -05:00
vmci_transport_notify.c VSOCK: Introduce VM Sockets 2013-02-10 19:41:08 -05:00
vmci_transport_notify.h VSOCK: Introduce VM Sockets 2013-02-10 19:41:08 -05:00
vmci_transport.c VSOCK: vmci - fix possible info leak in vmci_transport_dgram_dequeue() 2013-04-07 16:28:02 -04:00
vmci_transport.h VSOCK: Introduce VM Sockets 2013-02-10 19:41:08 -05:00
vsock_addr.c VSOCK: Handle changes to the VMCI context ID. 2013-04-02 14:39:17 -04:00
vsock_addr.h VSOCK: Handle changes to the VMCI context ID. 2013-04-02 14:39:17 -04:00