linux/drivers/usb/misc
Ben Hutchings 4be36bccc6 USB: yurex: Fix buffer over-read in yurex_write()
commit 7e10f14ebf upstream.

If the written data starts with a digit, yurex_write() tries to parse
it as an integer using simple_strtoull().  This requires a null-
terminator, and currently there's no guarantee that there is one.

(The sample program at
https://github.com/NeoCat/YUREX-driver-for-Linux/blob/master/sample/yurex_clock.pl
writes an integer without a null terminator.  It seems like it must
have worked by chance!)

Always add a null byte after the written data.  Enlarge the buffer
to allow for this.

Cc: stable@vger.kernel.org
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-26 08:35:08 +02:00
..
sisusbvga USB: sisusb_con.c: move assignment out of if () block 2015-05-10 16:01:12 +02:00
adutux.c USB: adutux: NULL dereferences on disconnect 2014-11-26 19:50:15 -08:00
appledisplay.c USB: appledisplay: Deletion of a check before backlight_device_unregister() 2015-03-18 16:56:40 +01:00
chaoskey.c USB: chaoskey read offset bug 2015-10-04 11:01:13 +01:00
cypress_cy7c63.c
cytherm.c
ehset.c
emi26.c
emi62.c
ezusb.c
ftdi-elan.c usb: misc: ftdi-elan: Simplify return statement 2015-08-05 12:37:21 -07:00
idmouse.c USB: idmouse: fix NULL-deref at probe 2017-03-30 09:35:17 +02:00
iowarrior.c USB: iowarrior: fix info ioctl on big-endian hosts 2017-05-25 14:30:13 +02:00
isight_firmware.c
Kconfig usb/misc: fix chaoskey build, needs HW_RANDOM 2015-04-03 19:03:15 +02:00
ldusb.c usb: ldusb: add PIDs for new CASSY devices supported by this driver 2018-02-28 10:17:23 +01:00
legousbtower.c usb: misc: legousbtower: Fix memory leak 2017-05-25 14:30:07 +02:00
lvstest.c USB: lvtest: fix NULL-deref at probe 2017-03-30 09:35:16 +02:00
Makefile usb: Add driver for Altus Metrum ChaosKey device (v2) 2015-03-26 10:47:11 +01:00
rio500_usb.h
rio500.c
trancevibrator.c
usb_u132.h
usb3503.c usb: misc: usb3503: make sure reset is low for at least 100us 2018-01-17 09:35:31 +01:00
usblcd.c
usbled.c
usbsevseg.c
usbtest.c usb: usbtest: fix NULL pointer dereference 2017-11-18 11:11:05 +01:00
uss720.c usb: misc: uss720: Fix two sleep-in-atomic-context bugs 2018-09-26 08:35:08 +02:00
yurex.c USB: yurex: Fix buffer over-read in yurex_write() 2018-09-26 08:35:08 +02:00