]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
USB: serial: io_edgeport: add missing active-port sanity check
authorJohan Hovold <johan@kernel.org>
Fri, 17 Jan 2020 09:50:24 +0000 (10:50 +0100)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
commit6b8163786b8f89ec448fa4ed7720df22254b2ff3
treeffb5a80e833f0d06552ec64d60ce87d1f2d67f7c
parent5eb88dea5a89139bb73f2ddf68b3f07392fefc15
USB: serial: io_edgeport: add missing active-port sanity check

BugLink: https://bugs.launchpad.net/bugs/1862259
commit 1568c58d11a7c851bd09341aeefd6a1c308ac40d upstream.

The driver receives the active port number from the device, but never
made sure that the port number was valid. This could lead to a
NULL-pointer dereference or memory corruption in case a device sends
data for an invalid port.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Cc: stable <stable@vger.kernel.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <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/io_edgeport.c