]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
USB: microtek: fix info-leak at probe
authorJohan Hovold <johan@kernel.org>
Thu, 3 Oct 2019 07:09:31 +0000 (09:09 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 12 Nov 2019 18:04:34 +0000 (19:04 +0100)
commit7874f84c096edeb1bbe5a9339337d0ba1f988f03
treea96c5221c57564222cfbff910aad69c96ca12e15
parent372efcf72564df60e1dd71b86528f6d6cd4f8387
USB: microtek: fix info-leak at probe

BugLink: https://bugs.launchpad.net/bugs/1850541
commit 177238c3d47d54b2ed8f0da7a4290db492f4a057 upstream.

Add missing bulk-in endpoint sanity check to prevent uninitialised stack
data from being reported to the system log and used as endpoint
addresses.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Cc: stable <stable@vger.kernel.org>
Reported-by: syzbot+5630ca7c3b2be5c9da5e@syzkaller.appspotmail.com
Signed-off-by: Johan Hovold <johan@kernel.org>
Acked-by: Oliver Neukum <oneukum@suse.com>
Link: https://lore.kernel.org/r/20191003070931.17009-1-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/usb/image/microtek.c