[PATCH 0/2] Bluetooth: Fix advertising instance accesses without hdev->lock
From: Cen Zhang
Date: Fri Oct 30 2026 - 10:29:26 EST
Commit cdc36db204ff ("Bluetooth: hci_sync: Fix advertising data UAFs")
fixed the extended advertising data paths that use advertising
instances without hdev->lock. Patch 1 fixes the remaining request paths
with the same problem in the same way, and copies the instance numbers
under the lock for walks that send commands, as commit cac164b6246f
("Bluetooth: hci_sync: Copy the LE accept list under hdev->lock") does.
Patch 2 stops hci_add_adv_instance() from reinitializing the RPA work
of an existing instance, which lets hci_remove_adv_instance() free the
instance while the work runs.
Cen Zhang (2):
Bluetooth: hci_sync: Fix remaining advertising instance UAFs
Bluetooth: hci_core: Initialize advertising RPA work only once
net/bluetooth/hci_core.c | 5 +-
net/bluetooth/hci_sync.c | 296 +++++++++++++++++++++++++++++----------
net/bluetooth/mgmt.c | 34 ++++-
3 files changed, 255 insertions(+), 80 deletions(-)
---