mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
[media] media-device: fix infoleak in ioctl media_enum_entities()
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>
Change-Id: Ie7914a3f97650dd933d7ff4c836ff7fc850bae4a
(cherry picked from commit e6a623460e
)
This commit is contained in:
parent
617d03fced
commit
9d3edeaebe
1 changed files with 1 additions and 0 deletions
|
@ -90,6 +90,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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue