linux/drivers/usb/misc
Jann Horn f1e255d60a USB: yurex: fix out-of-bounds uaccess in read handler
In general, accessing userspace memory beyond the length of the supplied
buffer in VFS read/write handlers can lead to both kernel memory corruption
(via kernel_read()/kernel_write(), which can e.g. be triggered via
sys_splice()) and privilege escalation inside userspace.

Fix it by using simple_read_from_buffer() instead of custom logic.

Fixes: 6bc235a2e2 ("USB: add driver for Meywa-Denki & Kayac YUREX")
Signed-off-by: Jann Horn <jannh@google.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-07-06 17:21:34 +02:00
..
sisusbvga treewide: Use array_size() in vmalloc() 2018-06-12 16:19:22 -07:00
Kconfig
Makefile
adutux.c USB: adutux: Add waiting in transfer abortion 2018-03-09 09:37:10 -08:00
appledisplay.c
chaoskey.c USB: chaoskey: Use kasprintf() over strcpy()/strcat() 2018-02-22 15:17:05 +01:00
cypress_cy7c63.c
cytherm.c
ehset.c
emi26.c
emi62.c
ezusb.c
ftdi-elan.c
idmouse.c
iowarrior.c vfs: do bulk POLL* -> EPOLL* replacement 2018-02-11 14:34:03 -08:00
isight_firmware.c
ldusb.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
legousbtower.c vfs: do bulk POLL* -> EPOLL* replacement 2018-02-11 14:34:03 -08:00
lvstest.c
rio500.c
rio500_usb.h
trancevibrator.c
usb251xb.c
usb3503.c
usb4604.c
usb_u132.h
usblcd.c
usbsevseg.c
usbtest.c usb: usbtest: Remove stack VLA usage 2018-03-09 09:10:22 -08:00
uss720.c USB: misc: uss720: more vendor/product ID's 2018-03-20 12:27:34 +01:00
yurex.c USB: yurex: fix out-of-bounds uaccess in read handler 2018-07-06 17:21:34 +02:00