USB: mct_u232: add sanity checking in probe 39/76539/2
authorOliver Neukum <oneukum@suse.com>
Thu, 31 Mar 2016 16:04:24 +0000 (12:04 -0400)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 3 Aug 2016 02:35:21 +0000 (19:35 -0700)
commit9163feadabd45d0f01e426bfb56d9ee52320d1e1
treed91a69fea80664e8f8c967ae3952275b10b3cd9a
parent8c41b079b562476cf698b0e7e24fac2770297ddb
USB: mct_u232: add sanity checking in probe

commit 4e9a0b05257f29cf4b75f3209243ed71614d062e upstream.

An attack using the lack of sanity checking in probe is known. This
patch checks for the existence of a second port.

CVE-2016-3136

Signed-off-by: Oliver Neukum <ONeukum@suse.com>
CC: stable@vger.kernel.org
[johan: add error message ]
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Change-Id: Icd1c5482b10f647177c7793c93fc7b592df4e79e
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
drivers/usb/serial/mct_u232.c