]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
USB: serial: whiteheat: fix potential slab corruption
authorJohan Hovold <johan@kernel.org>
Tue, 29 Oct 2019 10:23:53 +0000 (11:23 +0100)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 13 Nov 2019 23:47:34 +0000 (18:47 -0500)
commit6416f6fb872bedc2e29c683784d151aa65ff1cf7
tree21480a5b3f6e925f1f57a27c1e079055255dedd6
parent761901ac9260514796d0f9e09caafba65502c3c5
USB: serial: whiteheat: fix potential slab corruption

BugLink: https://bugs.launchpad.net/bugs/1852492
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/usb/serial/whiteheat.c