USB: serial: whiteheat: fix potential slab corruption
authorJohan Hovold <johan@kernel.org>
Tue, 29 Oct 2019 10:23:53 +0000 (11:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Nov 2019 11:18:19 +0000 (12:18 +0100)
commit1c06f5d2901f91a7d63f8df478ed6a793bd785e3
tree7bcf3efdacf28dde1cf07d1a0c6ca3efe46509f0
parent06f690264fa8f184fd6f7f0d9cabf5d997f69328
USB: serial: whiteheat: fix potential slab corruption

commit 1251dab9e0a2c4d0d2d48370ba5baa095a5e8774 upstream.

Fix a user-controlled slab buffer overflow due to a missing sanity check
on the bulk-out transfer buffer used for control requests.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20191029102354.2733-2-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/whiteheat.c