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-03-28 16:34:27 +02:00
2018-05-16 07:23:35 +02:00
2018-02-15 01:15:52 +01:00
2017-11-02 11:10:55 +01:00
2018-01-17 08:16:46 -06:00
2017-08-01 17:20:42 +02:00
2018-03-28 16:34:28 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-01-15 17:04:22 +01:00
2018-01-17 08:16:46 -06:00
2017-11-20 21:50:24 -10:00
2018-05-04 08:27:04 -04:00
2018-01-17 08:16:46 -06:00
2017-08-01 17:20:42 +02:00
2018-03-12 17:06:52 +01:00
2018-03-12 17:06:54 +01:00
2018-05-16 07:23:35 +02:00
2017-09-04 16:00:49 +02:00
2017-04-07 17:03:24 +02:00
2017-02-25 13:20:22 -08:00
2017-11-02 11:10:55 +01:00
2017-01-30 17:39:48 +01:00
2017-11-02 11:10:55 +01:00
2018-03-28 16:34:29 +02:00
2017-02-08 16:44:00 +01:00
2017-04-20 12:02:32 +01:00
2017-08-01 17:20:42 +02:00
2017-08-01 17:20:41 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-03-12 17:06:52 +01:00
2018-03-28 16:34:29 +02:00
2017-11-09 18:09:30 +01:00
2018-01-04 16:53:49 +01:00
2018-02-07 13:10:43 -08:00
2017-08-07 17:22:13 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-08-07 17:22:13 +02:00
2017-08-07 17:22:13 +02:00
2017-08-07 17:22:13 +02:00
2017-08-01 17:20:39 +02:00
2017-11-09 18:09:32 +01:00
2016-07-06 17:38:19 +02:00
2017-08-01 17:20:39 +02:00
2017-11-09 18:09:33 +01:00
2017-09-04 16:00:49 +02:00
2017-08-01 17:20:39 +02:00
2017-11-09 18:09:31 +01:00
2017-12-04 23:03:21 +01:00
2017-09-04 16:00:50 +02:00
2017-08-07 17:22:13 +02:00
2017-09-04 16:00:49 +02:00
2018-03-28 16:34:28 +02:00
2017-11-09 18:09:31 +01:00
2017-09-04 16:00:49 +02:00
2016-09-27 11:16:35 +03:00
2016-09-27 11:16:35 +03:00
2016-12-24 11:46:01 -08:00
2017-05-27 15:41:17 -04:00
2016-09-27 11:16:35 +03:00
2017-08-01 17:20:43 +02:00
2017-07-31 18:45:41 +02:00
2017-05-22 17:22:06 +02:00
2018-04-10 10:20:00 -07:00
2017-08-07 17:22:13 +02:00
2018-01-16 16:47:29 +01:00
2018-03-26 15:56:44 +02:00
2017-09-04 16:00:50 +02:00
2017-02-27 18:43:47 -08:00
2016-12-24 11:46:01 -08:00
2018-01-15 17:04:22 +01:00
2017-04-20 12:02:32 +01:00
2017-08-01 17:20:44 +02:00
2018-03-12 17:06:54 +01:00
2017-08-07 17:22:13 +02:00
2017-08-01 17:20:43 +02:00
2017-08-01 17:20:45 +02:00
2017-09-04 16:00:50 +02:00
2017-09-04 16:00:50 +02:00
2017-09-04 16:00:50 +02:00
2017-09-04 16:00:49 +02:00
2017-09-22 23:14:36 -04:00
2018-01-04 16:53:49 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-06-14 17:40:56 +02:00
2017-09-04 16:00:50 +02:00
2018-03-26 15:56:46 +02:00
2016-08-11 17:54:55 +03:00
2016-08-11 17:54:55 +03:00
2018-03-28 16:34:29 +02:00
2017-08-01 17:20:45 +02:00
2017-10-17 16:01:13 +02:00
2017-10-17 16:01:13 +02:00
2018-03-07 14:00:34 +01:00
2017-11-02 11:10:55 +01:00
2017-06-14 17:40:57 +02:00
2017-11-02 11:10:55 +01:00
2017-01-11 17:09:50 +01:00
2017-09-04 16:00:49 +02:00
2017-11-17 17:21:48 +01:00
2017-08-01 17:20:38 +02:00
2018-03-28 16:34:28 +02:00
2018-03-28 16:34:28 +02:00
2017-11-02 11:10:55 +01:00
2018-04-10 10:20:00 -07:00
2017-08-01 17:20:43 +02:00
2017-08-07 17:22:13 +02:00
2017-08-01 17:20:41 +02:00
2017-08-07 17:22:13 +02:00
2017-08-01 17:20:43 +02:00
2017-08-01 17:20:41 +02:00
2018-03-28 16:34:27 +02:00
2018-06-12 16:19:22 -07:00
2018-01-04 16:53:50 +01:00
2017-12-29 19:48:43 +01:00
2017-12-29 19:48:44 +01:00
2017-08-18 19:56:40 +02:00
2018-01-09 16:33:31 +01:00
2017-12-29 19:48:43 +01:00
2017-11-02 11:10:55 +01:00
2017-05-11 11:12:26 -07:00
2017-08-21 16:49:57 +02:00