Peter Malone
bfffc2c3f5
fbdev: Fixing arbitrary kernel leak in case FBIOGETCMAP_SPARC in sbusfb_ioctl_helper().
...
[ Upstream commit 250c6c49e3 ]
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 >
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2018-05-30 07:49:04 +02:00
..
2017-10-05 09:41:48 +02:00
2017-02-01 08:30:52 +01:00
2018-02-25 11:03:46 +01:00
2015-06-03 12:41:53 +03:00
2015-06-03 12:41:51 +03:00
2018-02-25 11:03:45 +01:00
2015-08-25 09:59:44 +02:00
2015-06-03 12:41:49 +03:00
2015-09-24 14:35:36 +03:00
2014-07-01 13:32:30 +03:00
2018-02-25 11:03:37 +01:00
2015-06-03 12:41:50 +03:00
2015-11-10 10:00:09 -08:00
2015-12-09 12:57:13 +02:00
2015-06-03 12:41:52 +03:00
2015-06-03 12:41:50 +03:00
2018-02-25 11:03:45 +01:00
2015-11-06 17:50:42 -08:00
2018-02-25 11:03:42 +01:00
2014-06-24 10:55:13 +03:00
2014-06-27 10:15:22 +02:00
2018-03-22 09:23:24 +01:00
2015-06-23 16:23:30 -07:00
2015-08-25 09:59:45 +02:00
2015-06-07 15:28:57 +02:00
2018-02-22 15:45:00 +01:00
2014-10-20 16:21:51 +02:00
2014-07-30 14:10:39 +02:00
2017-12-20 10:04:57 +01:00
2018-02-25 11:03:46 +01:00
2014-10-20 16:21:51 +02:00
2014-10-20 16:21:51 +02:00
2014-10-20 16:21:51 +02:00
2014-10-20 16:21:51 +02:00
2014-07-01 13:18:38 +03:00
2014-10-20 16:21:51 +02:00
2015-09-30 10:33:57 +03:00
2014-10-20 16:21:51 +02:00
2014-10-20 16:21:51 +02:00
2014-10-20 16:21:51 +02:00
2014-10-20 16:21:51 +02:00
2014-08-26 12:48:34 +03:00
2014-10-20 16:21:51 +02:00
2014-10-20 16:21:51 +02:00
2017-08-06 19:19:46 -07:00
2015-03-23 14:29:40 +11:00
2017-12-20 10:04:57 +01:00
2014-09-30 13:06:01 +03:00
2016-05-04 14:48:51 -07:00
2016-10-28 03:01:29 -04:00
2015-08-13 12:25:44 +02:00
2014-05-23 13:51:10 +03:00
2014-10-20 16:21:51 +02:00
2015-12-09 12:57:06 +02:00
2015-06-03 12:41:46 +03:00
2014-10-20 16:21:51 +02:00
2015-10-08 12:19:39 +03:00
2014-10-20 16:21:51 +02:00
2015-01-26 14:43:06 +02:00
2014-10-20 16:21:51 +02:00
2015-06-07 15:28:57 +02:00
2015-08-05 11:41:31 -07:00
2015-08-25 09:59:44 +02:00
2015-03-17 20:04:31 +11:00
2015-06-12 12:40:27 +03:00
2018-02-25 11:03:45 +01:00
2014-10-20 16:21:51 +02:00
2015-08-07 15:05:01 -07:00
2014-10-20 16:21:51 +02:00
2014-12-14 16:10:09 -08:00
2015-06-12 12:40:27 +03:00
2015-06-03 12:41:49 +03:00
2014-10-20 16:21:51 +02:00
2015-08-10 23:07:06 -04:00
2014-06-16 19:45:45 +10:00
2014-10-20 16:21:51 +02:00
2015-03-23 14:29:40 +11:00
2015-06-03 12:41:51 +03:00
2015-06-03 12:41:52 +03:00
2017-11-15 17:13:09 +01:00
2015-02-11 17:06:05 -08:00
2015-08-10 12:25:43 +03:00
2015-09-01 13:55:32 +03:00
2015-09-01 15:50:38 +02:00
2015-08-10 23:07:05 -04:00
2014-10-20 16:21:51 +02:00
2015-08-21 08:56:19 +03:00
2015-08-25 09:59:45 +02:00
2015-09-01 15:50:38 +02:00
2014-12-05 16:30:25 +00:00
2018-05-30 07:49:04 +02:00
2014-10-20 16:21:51 +02:00
2014-09-30 13:42:13 +03:00
2015-04-07 16:24:15 +03:00
2014-12-18 20:28:33 -08:00
2015-07-20 10:52:46 -07:00
2018-03-24 10:58:46 +01:00
2015-08-07 15:05:01 -07:00
2018-02-25 11:03:47 +01:00
2014-12-04 16:16:01 +02:00
2015-09-24 14:10:26 +03:00
2015-08-10 23:07:05 -04:00
2014-10-20 16:21:51 +02:00
2014-10-20 16:21:51 +02:00
2015-06-03 12:41:52 +03:00
2015-11-10 10:00:09 -08:00
2018-03-24 10:58:46 +01:00
2015-05-28 11:32:10 +09:30
2014-09-30 13:06:01 +03:00
2015-06-16 09:42:11 +03:00
2018-04-13 19:50:13 +02:00
2015-01-13 13:35:04 +02:00
2015-08-25 09:59:45 +02:00
2014-10-20 16:21:51 +02:00
2014-10-20 16:21:51 +02:00
2017-04-21 09:30:06 +02:00
2014-10-20 16:21:51 +02:00