Skip to content
Commit 4ffb879e authored by Peilin Ye's avatar Peilin Ye Committed by Mauro Carvalho Chehab
Browse files

media: media/v4l2-core: Fix kernel-infoleak in video_put_user()



video_put_user() is copying uninitialized stack memory to userspace due
to the compiler not initializing holes in the structures declared on the
stack. Fix it by initializing `ev32` and `vb32` using memset().

Reported-and-tested-by: default avatar <syzbot+79d751604cb6f29fbf59@syzkaller.appspotmail.com>
Link: https://syzkaller.appspot.com/bug?extid=79d751604cb6f29fbf59



Cc: stable@vger.kernel.org
Fixes: 1a6c0b36 ("media: v4l2-core: fix VIDIOC_DQEVENT for time64 ABI")
Fixes: 577c89b0 ("media: v4l2-core: fix v4l2_buffer handling for time64 ABI")
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarPeilin Ye <yepeilin.cs@gmail.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent bec2ddfd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment