Kees Cook 9f645bcc56 video: uvesafb: Fix integer overflow in allocation
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: 8bdb3a2d7df48 ("uvesafb: the driver core")
Cc: stable@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
2018-06-12 16:19:22 -07:00
..
2018-01-15 17:04:22 +01:00
2017-11-20 21:50:24 -10:00
2017-02-25 13:20:22 -08:00
2018-02-07 13:10:43 -08:00
2017-09-04 16:00:49 +02:00
2017-05-27 15:41:17 -04:00
2018-04-10 10:20:00 -07:00
2018-03-26 15:56:44 +02:00
2018-03-12 17:06:54 +01:00
2017-09-22 23:14:36 -04:00
2018-04-10 10:20:00 -07:00
2018-01-09 16:33:31 +01:00
2017-05-11 11:12:26 -07:00