android_kernel_oneplus_msm8998/drivers/scsi/aacraid
Dave Carroll e4878ef66e aacraid: Check size values after double-fetch from user
commit fa00c437eef8dc2e7b25f8cd868cfa405fcc2bb3 upstream.

In aacraid's ioctl_send_fib() we do two fetches from userspace, one the
get the fib header's size and one for the fib itself. Later we use the
size field from the second fetch to further process the fib. If for some
reason the size from the second fetch is different than from the first
fix, we may encounter an out-of- bounds access in aac_fib_send(). We
also check the sender size to insure it is not out of bounds. This was
reported in https://bugzilla.kernel.org/show_bug.cgi?id=116751 and was
assigned CVE-2016-6480.

Reported-by: Pengfei Wang <wpengfeinudt@gmail.com>
Fixes: 7c00ffa31 '[SCSI] 2.6 aacraid: Variable FIB size (updated patch)'
Signed-off-by: Dave Carroll <david.carroll@microsemi.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-09-07 08:32:43 +02:00
..
aachba.c aacraid: Tune response path if IsFastPath bit set 2015-11-09 16:02:57 -08:00
aacraid.h aacraid: Fix for KDUMP driver hang 2016-06-07 18:14:34 -07:00
commctrl.c aacraid: Check size values after double-fetch from user 2016-09-07 08:32:43 +02:00
comminit.c aacraid: Fix for KDUMP driver hang 2016-06-07 18:14:34 -07:00
commsup.c aacraid: Fix for aac_command_thread hang 2016-06-07 18:14:34 -07:00
dpcsup.c aacraid: performance improvement changes 2015-04-09 16:55:21 -07:00
linit.c aacraid: Set correct msix count for EEH recovery 2016-04-12 09:08:38 -07:00
Makefile
nark.c
rkt.c
rx.c aacraid: Add Power Management support 2015-11-09 15:59:18 -08:00
sa.c aacraid: Add Power Management support 2015-11-09 15:59:18 -08:00
src.c aacraid: Fix RRQ overload 2016-04-12 09:08:38 -07:00
TODO