Skip to content
Browse files

[media] media-device: fix infoleak in ioctl media_enum_entities()

This fixes CVE-2014-1739.

Signed-off-by: Salva Peiró <>
Acked-by: Laurent Pinchart <>
Signed-off-by: Mauro Carvalho Chehab <>
  • Loading branch information...
Salva Peiró authored and mchehab committed Apr 30, 2014
1 parent 8845cc6 commit e6a623460e5fc960ac3ee9f946d3106233fd28d8
Showing with 1 addition and 0 deletions.
  1. +1 −0 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(&, &uent->id, sizeof(
return -EFAULT;

0 comments on commit e6a6234

Please sign in to comment.
You can’t perform that action at this time.