projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8845cc6
)
[media] media-device: fix infoleak in ioctl media_enum_entities()
author
Salva Peiró
<speiro@ai2.upv.es>
Wed, 30 Apr 2014 17:48:02 +0000
(19:48 +0200)
committer
Mauro Carvalho Chehab
<m.chehab@samsung.com>
Thu, 1 May 2014 12:53:28 +0000
(
05:53
-0700)
This fixes CVE-2014-1739.
Signed-off-by: Salva Peiró <speiro@ai2.upv.es>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: stable@vger.kernel.org
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/media-device.c
patch
|
blob
|
history
diff --git
a/drivers/media/media-device.c
b/drivers/media/media-device.c
index d5a7a135f75d39d5bc2f6fb3366639dd6dc7ee34..703560fa5e73b456cbc0951ccb61957bdfecebac 100644
(file)
--- a/
drivers/media/media-device.c
+++ b/
drivers/media/media-device.c
@@
-93,6
+93,7
@@
static long media_device_enum_entities(struct media_device *mdev,
struct media_entity *ent;
struct media_entity_desc u_ent;
+ memset(&u_ent, 0, sizeof(u_ent));
if (copy_from_user(&u_ent.id, &uent->id, sizeof(u_ent.id)))
return -EFAULT;