Shuah Khan
b6a2ad646c
usbip: prevent vhci_hcd driver from leaking a socket pointer address
...
commit 2f2d0088eb upstream.
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 >
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2017-12-20 10:10:19 +01:00
..
2017-11-02 11:10:55 +01:00
2017-12-05 11:26:33 +01:00
2017-11-02 11:10:55 +01:00
2017-12-10 13:40:37 +01:00
2017-11-30 08:40:47 +00:00
2017-12-14 09:53:13 +01:00
2017-11-03 09:02:30 -07:00
2017-12-14 09:52:51 +01:00
2017-11-02 11:10:55 +01:00
2017-11-30 08:40:41 +00:00
2017-11-30 08:40:47 +00:00
2017-12-14 09:53:03 +01:00
2017-11-02 11:10:55 +01:00
2017-12-17 15:07:59 +01:00
2017-12-14 09:53:12 +01:00
2017-12-10 13:40:41 +01:00
2017-11-02 11:10:55 +01:00
2017-12-17 15:08:00 +01:00
2017-12-14 09:53:05 +01:00
2017-12-05 11:26:28 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-21 09:49:20 +01:00
2017-12-10 13:40:44 +01:00
2017-12-10 13:40:41 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-14 09:52:52 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-08-28 17:15:16 +02:00
2017-11-02 11:10:55 +01:00
2017-12-14 09:52:59 +01:00
2017-11-21 09:49:23 +01:00
2017-11-02 11:10:55 +01:00
2017-12-14 09:52:49 +01:00
2017-12-10 13:40:40 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-05 11:26:33 +01:00
2017-12-17 15:08:00 +01:00
2017-11-04 15:01:50 +01:00
2017-12-14 09:52:49 +01:00
2017-12-17 15:08:01 +01:00
2017-11-10 14:14:23 -08:00
2017-12-14 09:52:55 +01:00
2017-12-14 09:53:05 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-14 09:53:12 +01:00
2017-11-02 11:10:55 +01:00
2017-12-17 15:08:00 +01:00
2017-12-17 15:08:01 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-20 10:10:16 +01:00
2017-12-05 11:26:34 +01:00
2017-12-10 13:40:40 +01:00
2017-11-30 08:40:55 +00:00
2017-08-29 13:46:35 +02:00
2017-12-17 15:08:00 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-30 08:40:54 +00:00
2017-12-17 15:08:00 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-10 13:40:40 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-14 09:52:49 +01:00
2017-12-05 11:26:27 +01:00
2017-11-02 11:10:55 +01:00
2017-11-03 09:02:30 -07:00
2017-09-08 18:26:51 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-14 09:53:08 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 10:04:46 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-21 09:49:23 +01:00
2017-11-02 11:10:55 +01:00
2017-12-17 15:07:57 +01:00
2017-11-02 11:10:55 +01:00
2017-12-14 09:52:51 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-10 13:40:39 +01:00
2017-08-28 13:52:22 +02:00
2017-11-02 11:10:55 +01:00
2017-12-10 13:40:44 +01:00
2017-11-30 08:40:51 +00:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-14 09:52:44 +01:00
2017-11-02 11:10:55 +01:00
2017-12-20 10:10:19 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-17 15:07:56 +01:00
2017-11-02 11:10:55 +01:00
2017-08-29 08:52:51 -05:00
2017-12-14 09:52:48 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 10:04:46 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00