USB: digi_acceleport: do sanity checking for the number of ports
commit15f572246983bd2f733b82b35e013d7eaa801e94
authorOliver Neukum <oneukum@suse.com>
Thu, 31 Mar 2016 16:04:26 +0000 (31 12:04 -0400)
committerSasha Levin <sasha.levin@oracle.com>
Wed, 20 Apr 2016 05:03:42 +0000 (20 01:03 -0400)
treefa57a37218312366b28c1057c1f972aae12b2c98
parent45f4b9ca0cf8e53df5adc20d11ffb4b2076dd2c5
USB: digi_acceleport: do sanity checking for the number of ports

[ Upstream commit 5a07975ad0a36708c6b0a5b9fea1ff811d0b0c1f ]

The driver can be crashed with devices that expose crafted descriptors
with too few endpoints.

See: http://seclists.org/bugtraq/2016/Mar/61

Signed-off-by: Oliver Neukum <ONeukum@suse.com>
[johan: fix OOB endpoint check and add error messages ]
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/usb/serial/digi_acceleport.c