]> git.ipfire.org Git - people/arne_f/kernel.git/commit
USB: usbfs: fix potential infoleak in devio
authorKangjie Lu <kangjielu@gmail.com>
Tue, 3 May 2016 20:32:16 +0000 (16:32 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Aug 2016 09:53:21 +0000 (11:53 +0200)
commitfd13a6831e1c770e20619efb48be360c24574717
treeb1de1583ed3b952e34d90e1a986b63d1a39d02ff
parent8c6f91e395929b77e5e3893c331eb5a88d45b55c
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: Charles (Chas) Williams <ciwillia@brocade.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/devio.c