On Wed, Dec 23, 2020 at 01:04:46PM -0500, Peilin Ye wrote: > commit f7e0e8b2f1b0a09b527885babda3e912ba820798 upstream. > > `num_reports` is not being properly checked. A malformed event packet with > a large `num_reports` number makes hci_le_direct_adv_report_evt() read out > of bounds. Fix it. > > Backporting notes: > - Rebased on linux-4.14.y, commit 3f2ecb86cb90 ("Linux 4.14.212") > - Retested by syzbot > > Cc: stable@xxxxxxxxxxxxxxx > Fixes: 2f010b55884e ("Bluetooth: Add support for handling LE Direct Advertising Report events") > Reported-and-tested-by: syzbot+24ebd650e20bd263ca01@xxxxxxxxxxxxxxxxxxxxxxxxx > Link: https://syzkaller.appspot.com/bug?extid=24ebd650e20bd263ca01 > Signed-off-by: Peilin Ye <yepeilin.cs@xxxxxxxxx> > Signed-off-by: Marcel Holtmann <marcel@xxxxxxxxxxxx> > --- > net/bluetooth/hci_event.c | 12 +++++------- > 1 file changed, 5 insertions(+), 7 deletions(-) Thanks for the backport, now queued up! greg k-h