Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1347008
| From | Alan Cox <alan@lxorguk.ukuu.org.uk> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Security hole in cros_ec_dev.c on 32bit chrome hosts |
| Date | 2016-03-01 21:40 +0100 |
| Message-ID | <r7Zfk-5PN-5@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
This was reported to Google on Feb 2nd with no action but an
acknowledgement.
Making public since so as we are close to release
/* Ioctls */
static long ec_device_ioctl_xcmd(struct cros_ec_dev *ec, void __user *arg)
{
long ret;
struct cros_ec_command u_cmd;
struct cros_ec_command *s_cmd;
if (copy_from_user(&u_cmd, arg, sizeof(u_cmd)))
return -EFAULT;
s_cmd = kmalloc(sizeof(*s_cmd) + max(u_cmd.outsize, u_cmd.insize),
GFP_KERNEL);
Pass u_cmd.insize as a very large value so that it overflows with the
sizeof to a small number which we kmalloc
if (!s_cmd)
return -ENOMEM;
and copy u_cmd.outsize bytes into it.
if (copy_from_user(s_cmd, arg, sizeof(*s_cmd) + u_cmd.outsize)) {
ret = -EFAULT;
goto exit;
}
Alan
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Security hole in cros_ec_dev.c on 32bit chrome hosts Alan Cox <alan@lxorguk.ukuu.org.uk> - 2016-03-01 21:40 +0100
[PATCH] platform/chrome: cros_ec_dev - Fix security issue Gwendal Grignou <gwendal@chromium.org> - 2016-03-03 07:00 +0100
Re: [PATCH] platform/chrome: cros_ec_dev - Fix security issue Randy Dunlap <rdunlap@infradead.org> - 2016-03-03 19:40 +0100
[PATCH v2] platform/chrome: cros_ec_dev - Fix security issue Gwendal Grignou <gwendal@chromium.org> - 2016-03-03 20:10 +0100
csiph-web