USB: usbfs: fix potential infoleak in devio
authorKangjie Lu <kangjielu@gmail.com>
Tue, 3 May 2016 20:32:16 +0000 (16:32 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 22 Aug 2016 21:37:18 +0000 (22:37 +0100)
commit05b352b3503450e32a6b3b4fad6358d7bf1290f5
tree7c9fb3ff36105f3b4e03857f768d64a8a93c5ae2
parentcf3069a14a9cccdd89d2b482f9eee5e37ebe25a6
USB: usbfs: fix potential infoleak in devio

commit 681fef8380eb818c0b845fca5d2ab1dcbab114ee upstream.

The stack object “ci” has a total size of 8 bytes. Its last 3 bytes
are padding bytes which are not initialized and leaked to userland
via “copy_to_user”.

Signed-off-by: Kangjie Lu <kjlu@gatech.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/core/devio.c