Files
linux/drivers/video/fbdev
Kees Cook 7673ca3c93 video: uvesafb: Fix integer overflow in allocation
commit 9f645bcc56 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:23:16 +02:00
..
2016-09-27 11:43:24 +03:00
2014-07-01 13:32:30 +03:00
2018-02-25 11:05:44 +01:00
2016-02-26 13:28:35 +02:00
2016-02-26 13:28:35 +02:00
2016-02-26 13:28:35 +02:00
2016-05-27 15:26:11 -07:00
2015-10-08 12:19:39 +03:00
2016-08-30 11:57:21 +03:00
2016-02-26 12:16:58 +02:00
2016-02-26 13:28:35 +02:00