android_kernel_samsung_univ.../drivers/video
Kees Cook 842803e4a6 video: uvesafb: Fix integer overflow in allocation
commit 9f645bcc566a1e9f921bdae7528a01ced5bc3713 upstream.

cmap->len can get close to INT_MAX/2, allowing for an integer overflow in
allocation. This uses kmalloc_array() instead to catch the condition.

Reported-by: Dr Silvio Cesare of InfoSect <silvio.cesare@gmail.com>
Fixes: 8bdb3a2d7d ("uvesafb: the driver core")
Cc: stable@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-07-03 11:21:34 +02:00
..
backlight backlight: tps65217_bl: Fix Device Tree node lookup 2018-07-03 11:21:32 +02:00
console vgacon: Set VGA struct resource types 2018-03-24 10:58:48 +01:00
fbdev video: uvesafb: Fix integer overflow in allocation 2018-07-03 11:21:34 +02:00
logo
display_timing.c
hdmi.c
Kconfig
Makefile
of_display_timing.c
of_videomode.c
vgastate.c
videomode.c