Bluetooth: hci_sock: fix slab oob read in create_monitor_event
authorEdward AD <twuufnxlz@gmail.com>
Tue, 10 Oct 2023 05:36:57 +0000 (13:36 +0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Sat, 14 Oct 2023 03:03:04 +0000 (20:03 -0700)
commit18f547f3fc074500ab5d419cf482240324e73a7e
treebffb5e38bacaf2eaa7bb4933adbe36931d99f906
parent9ee252868787ab5a26012d69e335c7371f54563a
Bluetooth: hci_sock: fix slab oob read in create_monitor_event

When accessing hdev->name, the actual string length should prevail

Reported-by: syzbot+c90849c50ed209d77689@syzkaller.appspotmail.com
Fixes: dcda165706b9 ("Bluetooth: hci_core: Fix build warnings")
Signed-off-by: Edward AD <twuufnxlz@gmail.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_sock.c