Files
ack-tegra/net
Jordan Walters 5edcc018fa Bluetooth: hci_core: Fix UAF in hci_unregister_dev()
hci_unregister_dev() does not disable cmd_timer and ncmd_timer
before the hci_dev structure is freed. If a timeout fires
during device teardown, the callback dereferences freed memory
(including the hdev->reset function pointer), leading to a
use-after-free.

Add disable_delayed_work_sync() calls alongside the existing
disable_work_sync() calls to ensure both timers are fully
quiesced before teardown proceeds.

Fixes: 0d151a1037 ("Bluetooth: hci_core: cancel all works upon hci_unregister_dev()")
Signed-off-by: Jordan Walters <jaggyaur@gmail.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
2026-06-11 14:24:40 -04:00
..
…
2026-05-22 11:11:09 -07:00
…
…
…
…
2026-05-10 10:11:08 -07:00
…
2026-05-10 10:11:07 -07:00
…
…
2026-06-11 12:19:05 +02:00
2026-05-22 11:11:10 -07:00
2026-05-10 10:11:08 -07:00
…
…
…
…