Peter Malone
250c6c49e3
fbdev: Fixing arbitrary kernel leak in case FBIOGETCMAP_SPARC in sbusfb_ioctl_helper().
...
Fixing arbitrary kernel leak in case FBIOGETCMAP_SPARC in
sbusfb_ioctl_helper().
'index' is defined as an int in sbusfb_ioctl_helper().
We retrieve this from the user:
if (get_user(index, &c->index) ||
__get_user(count, &c->count) ||
__get_user(ured, &c->red) ||
__get_user(ugreen, &c->green) ||
__get_user(ublue, &c->blue))
return -EFAULT;
and then we use 'index' in the following way:
red = cmap->red[index + i] >> 8;
green = cmap->green[index + i] >> 8;
blue = cmap->blue[index + i] >> 8;
This is a classic information leak vulnerability. 'index' should be
an unsigned int, given its usage above.
This patch is straight-forward; it changes 'index' to unsigned int
in two switch-cases: FBIOGETCMAP_SPARC && FBIOPUTCMAP_SPARC.
This patch fixes CVE-2018-6412.
Signed-off-by: Peter Malone <peter.malone@gmail.com >
Acked-by: Mathieu Malaterre <malat@debian.org >
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com >
2018-03-07 14:00:34 +01:00
..
2018-01-04 16:53:49 +01:00
2017-12-04 23:03:22 +01: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
2017-11-20 21:50:24 -10: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-02-09 14:43:49 +01:00
2018-01-17 08:16:46 -06:00
2017-08-01 17:20:42 +02:00
2017-11-09 18:09:33 +01:00
2017-09-04 16:00:49 +02:00
2017-11-02 11:10:55 +01: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
2017-09-04 16:00:49 +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
2016-02-26 13:28:35 +02:00
2017-11-02 11:10:55 +01:00
2017-12-29 19:48:43 +01:00
2017-06-28 06:54:57 -07: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
2016-02-26 13:28:35 +02:00
2016-08-30 12:06:12 +03:00
2016-08-02 19:35:05 -04:00
2017-08-01 17:20:40 +02:00
2015-09-30 10:33:57 +03:00
2016-02-26 13:06:11 +02:00
2016-02-26 13:06:11 +02: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
2015-03-23 14:29:40 +11: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
2016-03-09 14:57:51 +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
2017-07-04 17:47:22 +02:00
2016-03-09 14:57:51 +01:00
2017-11-09 18:09:31 +01:00
2017-09-04 16:00:49 +02:00
2015-10-08 12:19:39 +03: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-04-30 14:01:37 -07: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-02-09 19:32:41 -08:00
2017-08-07 17:22:13 +02:00
2018-01-16 16:47:29 +01:00
2017-11-20 21:50:24 -10: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
2016-03-09 14:57:51 +01:00
2016-01-29 13:34:07 +02:00
2017-08-07 17:22:13 +02:00
2017-08-07 17:22:13 +02:00
2015-03-23 14:29:40 +11: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
2016-03-09 14:57:51 +01:00
2017-11-02 11:10:55 +01:00
2017-06-14 17:40:56 +02:00
2015-12-15 15:41:24 +02:00
2017-09-04 16:00:50 +02:00
2016-09-27 11:16:35 +03:00
2016-08-11 17:54:55 +03:00
2016-08-11 17:54:55 +03:00
2016-03-09 14:57:51 +01: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
2015-08-07 15:05:01 -07:00
2017-08-01 17:20:38 +02:00
2017-12-29 19:48:44 +01:00
2017-04-07 17:28:23 +02:00
2017-11-02 11:10:55 +01:00
2017-01-30 17:39:49 +01: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-01-16 16:35:20 +01:00
2017-09-14 13:33:33 -07:00
2015-06-16 09:42:11 +03: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