Re: [PATCH] media: dvb_vb2: fix possible out of bound access

From: Hangyu Hua
Date: Sun May 15 2022 - 22:41:10 EST


On 2022/3/24 18:23, Sergey Senozhatsky wrote:
On (22/03/24 16:01), Hangyu Hua wrote:
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.

Signed-off-by: Hangyu Hua <hbh25y@xxxxxxxxx>

Reviewed-by: Sergey Senozhatsky <senozhatsky@xxxxxxxxxxxx>

Hi guys,

Two other patches for this module that I submitted at the same time as this one have been accepted. But this bug looks much worse than the other two. Is this patch forgotten to merge?

Thanks.