Security mailing lists by PureSourceCode

CVE-2026-143315

not scored yet

Bluetooth: hci_sync: Copy the LE accept list under hdev->lock

In the Linux kernel, the following vulnerability has been resolved:

Bluetooth: hci_sync: Copy the LE accept list under hdev->lock

The LE accept-list mirror consists of bdaddr_list entries that are
added, removed and freed under hdev->lock. The ordinary branch of
hci_update_accept_list_sync() traverses this list without that lock.
The request worker's req_lock does not serialize raw HCI completions,
and the RCU sections protect connection and pending-action lookups,
not the accept-list nodes.

Changing connectability can reach this iterator through
set_connectable_sync(), hci_update_connectable_sync(),
hci_update_passive_scan_sync() and hci_passive_scan_sync(). With a
populated mirror, a privileged raw HCI sender can issue
HCI_OP_LE_CLEAR_ACCEPT_LIST while request work is reconciling it:

Request work HCI event work
select b and successor t
hci_cc_le_clear_accept_list()
hci_dev_lock(hdev)
hci_bdaddr_list_clear()
unlink nodes and kfree(b)
hci_dev_unlock(hdev)
read b->bdaddr_type

The clear completion can therefore free the selected node before its
field read, or the saved successor before the iterator advances.
KASAN reported a one-byte read of bdaddr_type from the freed node.

Copy each entry's address and type under hdev->lock and reconcile the
private array instead. Release the mutex before issuing synchronous
commands, since their completion handlers also acquire it. Free the
copy after iteration and use the existing error path to disable
accept-list filtering if allocation fails.

This change has not been runtime-tested.

KASAN report as below:

==================================================================
BUG: KASAN: slab-use-after-free in hci_passive_scan_sync+0x1cc4/0x1f80
Read of size 1 at addr ffff888105ee6c56 by task kworker/u17:1/499

Workqueue: hci0 hci_cmd_sync_work
Call Trace:
 <TASK>
 dump_stack_lvl+0x93/0xd0
 print_report+0xce/0x630
 ? hci_passive_scan_sync+0x1cc4/0x1f80
 ? srso_alias_return_thunk+0x5/0xfbef5
 ? __virt_addr_valid+0x20d/0x410
 ? hci_passive_scan_sync+0x1cc4/0x1f80
 kasan_report+0xe0/0x110
 ? hci_passive_scan_sync+0x1cc4/0x1f80
 hci_passive_scan_sync+0x1cc4/0x1f80
 ? pmbd_gate_site_armed+0x31/0x1c0
 ? __pfx_hci_passive_scan_sync+0x10/0x10
 ? srso_alias_return_thunk+0x5/0xfbef5
 ? pmbd_probe_hit_cookie+0x10/0x1c0
 ? __pfx_pmbd_probe_hit_cookie+0x10/0x10
 ? hci_update_passive_scan_sync+0x43f/0x9e0
 ? srso_alias_return_thunk+0x5/0xfbef5
 ? lock_release+0xc8/0x280
 hci_update_passive_scan_sync+0x473/0x9e0
 hci_update_connectable_sync+0x13c/0x250
 set_connectable_sync+0x39/0xb0
 hci_cmd_sync_work+0x1b3/0x450
 ? srso_alias_return_thunk+0x5/0xfbef5
 process_one_work+0x908/0x19c0
 ? __pfx_process_one_work+0x10/0x10
 ? srso_alias_return_thunk+0x5/0xfbef5
 ? lock_is_held_type+0x8f/0x100
 ? srso_alias_return_thunk+0x5/0xfbef5
 worker_thread+0x65c/0xe40
 ? __pfx_worker_thread+0x10/0x10
 kthread+0x34f/0x460
 ? srso_alias_return_thunk+0x5/0xfbef5
 ? __pfx_kthread+0x10/0x10
 ret_from_fork+0x659/0x940
 ? __pfx_ret_from_fork+0x10/0x10
 ? srso_alias_return_thunk+0x5/0xfbef5
 ? __switch_to+0x74f/0xf80
 ? __pfx_kthread+0x10/0x10
 ret_from_fork_asm+0x1a/0x30
 </TASK>

Allocated by task 511:
 kasan_save_stack+0x33/0x60
 kasan_save_track+0x14/0x30
 __kasan_kmalloc+0xaa/0xb0
 __kmalloc_cache_noprof+0x251/0x610
 hci_bdaddr_list_add+0x179/0x390
 hci_cc_le_add_to_accept_list+0x189/0x2d0
 hci_cmd_complete_evt+0x373/0xab0
 hci_event_packet+0x4e8/0xc70
 hci_rx_work+0x367/0xf00
 process_one_work+0x908/0x19c0
 worker_thread+0x65c/0xe40
 kthread+0x34f/0x460
 ret_from_fork+

---truncated---

Published
3 Dec 2026
Last modified
3 Dec 2026
Assigned by
416baaa9-dc9f-4396-8d5f-8c081fb06d67
NVD status
Received
Sources
NVDJSONCVE ListJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List Linux Linux >= e8907f76544ffe225ab95d70f7313267b1d0c76d, < f08480cad352f560781dfd26194150deec3d6039; >= e8907f76544ffe225ab95d70f7313267b1d0c76d, < d2c150bd9460f0df9359174fe89f68f36692f8c7; >= e8907f76544ffe225ab95d70f7313267b1d0c76d, < f18a5502805a29ce6a0d314031a83a4d3869483d; >= e8907f76544ffe225ab95d70f7313267b1d0c76d, < 674006912777747170ad70d7727804ad4f2d047f f08480cad352f560781dfd26194150deec3d6039, d2c150bd9460f0df9359174fe89f68f36692f8c7, f18a5502805a29ce6a0d314031a83a4d3869483d, 674006912777747170ad70d7727804ad4f2d047f
CVE List Linux Linux = 5.17

References

History

  • 3 Dec 2026 11:07 UTC · NVD: first stored (published 3 Dec 2026)
  • 3 Dec 2026 10:08 UTC · CVE List: first stored (published 3 Dec 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.