提交 e6a62346 编写于 作者: S Salva Peiró 提交者: Mauro Carvalho Chehab

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

This fixes CVE-2014-1739.
Signed-off-by: NSalva Peiró <speiro@ai2.upv.es>
Acked-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: stable@vger.kernel.org
Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
上级 8845cc64
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册