Files
linux/drivers/usb/misc
Jann Horn 0fdef3142f USB: yurex: fix out-of-bounds uaccess in read handler
commit f1e255d60a upstream.

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-17 11:37:52 +02:00
..
2016-09-13 17:24:24 +02:00
2016-08-09 15:49:01 +02:00
2016-08-09 15:49:01 +02:00
2005-04-16 15:20:36 -07:00
2016-04-29 15:29:18 -07:00
2016-04-29 15:29:18 -07:00
2016-08-09 15:49:01 +02:00
2017-03-30 09:41:24 +02:00