Re: [PATCH] ISDN: hfcsusb: checking idx of ep configuration

From: David Miller
Date: Mon Jul 15 2019 - 14:10:52 EST


From: Phong Tran <tranmanphong@xxxxxxxxx>
Date: Mon, 15 Jul 2019 22:08:14 +0700

> The syzbot test with random endpoint address which made the idx is
> overflow in the table of endpoint configuations.
>
> this adds the checking for fixing the error report from
> syzbot
>
> KASAN: stack-out-of-bounds Read in hfcsusb_probe [1]
> The patch tested by syzbot [2]
>
> Reported-by: syzbot+8750abbc3a46ef47d509@xxxxxxxxxxxxxxxxxxxxxxxxx
>
> [1]:
> https://syzkaller.appspot.com/bug?id=30a04378dac680c5d521304a00a86156bb913522
> [2]:
> https://groups.google.com/d/msg/syzkaller-bugs/_6HBdge8F3E/OJn7wVNpBAAJ
>
> Signed-off-by: Phong Tran <tranmanphong@xxxxxxxxx>

Applied.