CVE-2026-143312: Bluetooth: SMP: Protect link keys during LTK derivation

Published Dec 3, 2026
·
Updated

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

Bluetooth: SMP: Protect link keys during LTK derivation

scgenerateltk() reads the type and value of the peer link key after hcifindlinkkey() has returned. The finder ends its RCU read-side section before returning the borrowed entry, and the SMP receive path does not hold hdev->lock: l2caprecvacldata() releases it before the PDU is dispatched. The L2CAP connection and channel locks held by SMP do not serialize with management link-key removal.

When BR/EDR Secure Connections pairing derives an LTK from the stored link key, MGMTOPLOADLINKKEYS can free that key mid-derivation:

HCI RX worker (SMP) Management / RCU reclamation scgenerateltk() key = hcifindlinkkey() loadlinkkeys() hcidevlock(hdev) hcilinkkeysclear(hdev) listdelrcu(), kfreercu() hcidevunlock(hdev) grace period ends, key is freed read key->type smph6() or smph7() reads key->val

Hold an RCU read-side section from the lookup until the type and value have been consumed. smph6() and smph7() only run the synchronous AES-CMAC library code, which neither sleeps nor allocates. Release the section before scaddltk(), which allocates with GFPKERNEL.

KASAN reported this on a test kernel whose scheduling hook paused the receive worker after the lookup; the hook frames appear in the trace.

KASAN report as below:

================================================================== BUG: KASAN: slab-use-after-free in smpdistributekeys+0x2983/0x2b70 Read of size 1 at addr ffff88810618e9a6 by task kworker/u17:0/500

CPU: 0 UID: 0 PID: 500 Comm: kworker/u17:0 Not tainted 7.2.0-rc6-pmb-bt-functional-v1+ #1 PREEMPT(lazy) Hardware name: QEMU Ubuntu 24.04 PC v2 (i440FX + PIIX, archcaps fix, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Workqueue: hci1 hcirxwork Call Trace: <TASK> dumpstacklvl+0x93/0xd0 printreport+0xce/0x630 ? smpdistributekeys+0x2983/0x2b70 ? srsoaliasreturnthunk+0x5/0xfbef5 ? virtaddrvalid+0x20d/0x410 ? smpdistributekeys+0x2983/0x2b70 kasanreport+0xe0/0x110 ? smpdistributekeys+0x2983/0x2b70 smpdistributekeys+0x2983/0x2b70 ? pfxsmpdistributekeys+0x10/0x10 ? srsoaliasreturnthunk+0x5/0xfbef5 ? pmbdgatemaybe+0x47/0x60 ? srsoaliasreturnthunk+0x5/0xfbef5 ? pmbdprobehitcookie+0xe7/0x1c0 ? srsoaliasreturnthunk+0x5/0xfbef5 ? pmbdprobehitcookie+0xee/0x1c0 ? pfxpmbdprobehitcookie+0x10/0x10 ? srsoaliasreturnthunk+0x5/0xfbef5 ? asanmemset+0x23/0x50 ? smprecvcb+0x12e2/0x8f30 ? srsoaliasreturnthunk+0x5/0xfbef5 smprecvcb+0x12e2/0x8f30 ? pfxsmprecvcb+0x10/0x10 ? pfxmightresched+0x10/0x10 ? pfxschedbalancefindsrcgroup+0x10/0x10 ? srsoaliasreturnthunk+0x5/0xfbef5 ? mutexlock+0x182c/0x2590 ? l2caprecvframe+0x9ef/0x8830 ? pfxmutexlock+0x10/0x10 ? lockacquire+0x466/0x2260 ? pfxl2capchanholdunlesszero+0x10/0x10 ? srsoaliasreturnthunk+0x5/0xfbef5 ? l2caprecvframe+0x13cc/0x8830 ? pfxsmprecvcb+0x10/0x10 l2caprecvframe+0x13cc/0x8830 ? srsoaliasreturnthunk+0x5/0xfbef5 ? mutexlock+0x182c/0x2590 ? pfxl2caprecvframe+0x10/0x10 ? srsoaliasreturnthunk+0x5/0xfbef5 ? findheldlock+0x2b/0x80 ? l2caprecvacldata+0x1eb/0x10e0 ? pfxmutexlock+0x10/0x10 ? srsoaliasreturnthunk+0x5/0xfbef5 ? mutexunlockslowpath+0x147/0x920 ? pfxl2capconnholdunlesszero+0x10/0x10 ? pfxhciconnenteractivemode+0x10/0x10 ? l2caprecvacldata+0x13d/ ---truncated---

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Hold an RCU read-side section from hci_find_link_key() until sc_generate_ltk() has consumed the link key's type and value; end the section before sc_add_ltk(), which allocates with GFP_KERNEL.

Event History

Dec 3, 2026
CVE Published
via MITRE·09:21 AM
Data Sourced
via MITRE·09:21 AM
Description

Frequently Asked Questions

1

What conditions are required for this race to occur?

A BR/EDR Secure Connections pairing must be deriving an LTK from a stored peer link key while MGMT_OP_LOAD_LINK_KEYS removes or replaces link keys. The key can then be freed after lookup but before its type or value is fully consumed.

2

What can be done if the fix cannot be applied immediately?

Avoid running MGMT_OP_LOAD_LINK_KEYS concurrently with BR/EDR Secure Connections pairing operations that derive LTKs from stored link keys. The vulnerable window is created specifically by management-driven link-key clearing during that derivation.

3

Does the affected SMP path hold the device lock while using the link key?

No. The L2CAP receive path releases hdev->lock before the SMP PDU is dispatched, and the SMP-held L2CAP connection and channel locks do not serialize with management link-key removal.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203