Home
last modified time | relevance | path

Searched hist:"2 f2d0088eb93db5c649d2a5e34a3800a8a935fc5" (Results 1 – 2 of 2) sorted by relevance

/linux/tools/usb/usbip/libsrc/
H A Dvhci_driver.cdiff 2f2d0088eb93db5c649d2a5e34a3800a8a935fc5 Thu Dec 07 22:16:49 CET 2017 Shuah Khan <shuahkh@osg.samsung.com> usbip: prevent vhci_hcd driver from leaking a socket pointer address

When a client has a USB device attached over IP, the vhci_hcd driver is
locally leaking a socket pointer address via the

/sys/devices/platform/vhci_hcd/status file (world-readable) and in debug
output when "usbip --debug port" is run.

Fix it to not leak. The socket pointer address is not used at the moment
and it was made visible as a convenient way to find IP address from socket
pointer address by looking up /proc/net/{tcp,tcp6}.

As this opens a security hole, the fix replaces socket pointer address with
sockfd.

Reported-by: Secunia Research <vuln@secunia.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
/linux/drivers/usb/usbip/
H A Dusbip_common.hdiff 2f2d0088eb93db5c649d2a5e34a3800a8a935fc5 Thu Dec 07 22:16:49 CET 2017 Shuah Khan <shuahkh@osg.samsung.com> usbip: prevent vhci_hcd driver from leaking a socket pointer address

When a client has a USB device attached over IP, the vhci_hcd driver is
locally leaking a socket pointer address via the

/sys/devices/platform/vhci_hcd/status file (world-readable) and in debug
output when "usbip --debug port" is run.

Fix it to not leak. The socket pointer address is not used at the moment
and it was made visible as a convenient way to find IP address from socket
pointer address by looking up /proc/net/{tcp,tcp6}.

As this opens a security hole, the fix replaces socket pointer address with
sockfd.

Reported-by: Secunia Research <vuln@secunia.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>