HIGH Introduced in 6.1
bluetooth MeshSend UAF
CVE-2026-98632
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
01Description
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: mgmt: Dequeue pending mesh_send_sync entries on cancel In send_cancel(), pending mesh_tx objects are removed from the hdev->mesh_pending list and freed via mesh_send_complete(). However, if a mesh transmission was already queued onto hdev->cmd_sync_work_list via mesh_next(), the queued entry retains a raw pointer to mesh_tx. When hci_cmd_sync_work later processes the entry, it attempts to execute mesh_send_sync and its destroy callback mesh_send_start_complete using the already freed mesh_tx pointer, leading to a use-after-free. Fix this by invoking hci_cmd_sync_dequeue() for mesh_send_sync on the target mesh_tx before completing it. If the entry is found and dequeued, its destroy callback will complete and free the object; otherwise, mesh_send_complete() is called directly. Additionally, ensure the transmission queue advances after cancellation or errors. In mesh_send_start_complete(), call mesh_next() on error unless err is -ECANCELED, because hci_cmd_sync_dequeue() holds hdev->cmd_sync_work_lock and calling mesh_next() synchronously would deadlock. Instead, advance the queue in send_cancel() once the lock is released and if no transmission is in progress.
02KernelScan AI Analysis
Risk summary
A local user with Bluetooth management access can trigger a use-after-free in the kernel's Bluetooth Mesh transmission queue, potentially achieving privilege escalation or kernel crash. Systems with Bluetooth Mesh support enabled are affected.
Vulnerability analysis
When a Bluetooth Mesh transmission is cancelled via the management interface, the kernel frees the transmission object while it may still be queued in a synchronous command work list. The work queue later processes the stale pointer, causing a use-after-free. The fix ensures the transmission is dequeued from the work list before being freed, and advances the transmission queue after cancellation without deadlocking. A local user with CAP_NET_ADMIN (obtainable in a user namespace) on a system with Bluetooth Mesh enabled can trigger this vulnerability.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 6.1 | 6.1 | 6.1.189 | f84e52829021 |
| 6.12 | 6.1 | 6.12.112 | 084be9094863 |
| 6.18 | 6.1 | 6.18.55 | 2189a219397d |
| 6.6 | 6.1 | 6.6.158 | 718a8ffa180d |
| 7.2 | 6.1 | 7.2.9 | 03ced4687fb7 |
| mainline | 6.1 | 7.3 | 71af682ba469 |
| cip/6.1 | 6.1 | 6.1.189-cip61 | f84e52829021 |
| cip/6.1-rt | 6.1 | 6.1.189-cip61-rt32 | f84e52829021 |
| cip/6.12 | 6.1 | 6.12.112-cip33 | 084be9094863 |
04CIP Kernels
State of the newest release of each Civil Infrastructure Platform SLTS tree, from CIP's own fix records.
| CIP tree | State |
|---|---|
| cip/6.12 | Fixed in 6.12.112-cip33 |
| cip/6.1 | Fixed in 6.1.189-cip61 |
| cip/6.1-rt | Fixed in 6.1.189-cip61-rt32 |