KernelScan.io

HIGH Introduced in 6.9

bluetooth PaSync UAF

CVE-2026-99014

CVSS 7.8 / 10.0 NVD

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

KernelScan AI7.1HIGH

01

In the Linux kernel, the following vulnerability has been resolved: Bluetooth: hci_sync: Fix command skb lifetime during scan setup During PA sync scan setup, hci_le_set_ext_scan_param_sync() gets the address used for the PA_LINK lookup from hci_sent_cmd_data(). The returned pointer borrows storage from sent_cmd or req_skb, without holding a reference to either skb. The scan worker runs on req_workqueue while hci_cmd_work() runs on the separate device workqueue. After the scan worker loads sent_cmd, the command worker can free and replace it before hci_sent_cmd_data() dereferences the skb. The command payload can also be freed between returning from the helper and comparing the address. The connection lookup's RCU critical section does not protect the command skb. KASAN reported: BUG: KASAN: slab-use-after-free in hci_sent_cmd_data+0x27c/0x2f0 Workqueue: hci0 hci_cmd_sync_work Call Trace: hci_sent_cmd_data+0x27c/0x2f0 hci_le_set_scan_param_sync+0x43a/0x850 hci_passive_scan_sync+0xb09/0x1460 hci_update_passive_scan_sync+0x47c/0x6e0 hci_le_pa_create_sync+0x200/0xa70 hci_cmd_sync_work+0x13c/0x290 Allocated by task 95: skb_clone+0x13f/0x340 hci_cmd_work+0x2a9/0x7e0 Freed by task 95: kmem_cache_free+0xba/0x3a0 hci_cmd_work+0x29c/0x7e0 Use hdev->lock to serialize the address snapshot with sent_cmd replacement. Protect req_skb replacement and completion cleanup with the same lock because the helper falls back to that skb. Copy the address before releasing the lock and use the copy for the existing RCU-protected connection lookup. Release the mutex before sending or waiting for commands, preserving the lookup and completion ordering.

02

Engine v0.9.0

Risk summary

A local attacker with access to Bluetooth management interfaces can trigger a use-after-free during Periodic Advertising sync scan setup, potentially achieving kernel privilege escalation. The bug is a race between two kernel workqueues that allows a freed socket buffer to be dereferenced. Products with Bluetooth enabled and local user access are at risk.

Affectednet/bluetooth/hci_sync.c, net/bluetooth/hci_core.c (Bluetooth HCI sync)

Vulnerability analysis

During PA sync scan setup, the Bluetooth HCI sync code retrieves a device address from a command socket buffer (skb) without holding a reference to it. Two separate workqueues — one handling scan setup and another processing HCI commands — race on this skb: the command worker can free and replace the buffer after the scan worker has loaded its pointer but before the address is dereferenced. The fix serializes access to the command skb pointers using the HCI device lock (hdev->lock), copies the needed address while the lock is held, and uses the copy for the subsequent RCU-protected connection lookup. The vulnerability is reachable by any local user who can initiate Bluetooth PA sync operations (typically via netlink management commands requiring CAP_NET_ADMIN, which may be available in a user namespace).

03

BranchIntroducedFixed inPatch commit
6.126.96.12.1147db33b36213a
6.186.96.18.57762850c203fa
6.66.6.286.6.160f01cbddfb427
6.86.8.76.9119ba8070b3f
7.26.97.2.119af12272061d
mainline6.97.3—
cip/6.126.96.12.114-cip34119ba8070b3f

04

State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.

CIP treeState
cip/6.12Fixed in 6.12.114-cip34