Skip to content
Commit f7e0e8b2 authored by Peilin Ye's avatar Peilin Ye Committed by Marcel Holtmann
Browse files

Bluetooth: Fix slab-out-of-bounds read in hci_le_direct_adv_report_evt()



`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.

Cc: stable@vger.kernel.org
Fixes: 2f010b55 ("Bluetooth: Add support for handling LE Direct Advertising Report events")
Reported-and-tested-by: default avatar <syzbot+24ebd650e20bd263ca01@syzkaller.appspotmail.com>
Link: https://syzkaller.appspot.com/bug?extid=24ebd650e20bd263ca01


Signed-off-by: default avatarPeilin Ye <yepeilin.cs@gmail.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 70f259a3
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