Skip to content
Snippets Groups Projects
Commit c77dfa07 authored by Hangyu Hua's avatar Hangyu Hua Committed by Frieder Schrempf
Browse files

media: dvb_vb2: fix possible out of bound access


commit 37238699 upstream.

vb2_core_qbuf and vb2_core_querybuf don't check the range of b->index
controlled by the user.

Fix this by adding range checking code before using them.

Fixes: 57868acc ("media: videobuf2: Add new uAPI for DVB streaming I/O")
Signed-off-by: default avatarHangyu Hua <hbh25y@gmail.com>
Reviewed-by: default avatarSergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b0992e98
No related branches found
No related tags found
1 merge request!69Upate to latest patch release v5.4.236
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment