HIGH Introduced in 3.17
bluetooth mgmt OOB
CVE-2026-98456
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
KernelScan AI7.0HIGH
01Description
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: mgmt: fix race in read_unconf_index_list() read_unconf_index_list() counts unconfigured controllers before allocating its response, then checks the device flags again while filling it. hci_dev_list_lock stabilizes list membership, but it does not serialize the per-device flags. During asynchronous controller setup, the worker can set HCI_UNCONFIGURED and clear HCI_SETUP between the two passes. A controller omitted from the allocation count can then become eligible for the fill pass, causing an out-of-bounds write to rp->index[]. Allocate space for every device on hci_dev_list. Since list membership cannot change while hci_dev_list_lock is held, the response remains large enough regardless of flag transitions. The reported count and response length still include only eligible unconfigured controllers.
02KernelScan AI Analysis
Risk summary
A local user with access to the Bluetooth management socket can trigger an out-of-bounds write in the kernel by racing a controller's asynchronous setup state transition. This can lead to kernel memory corruption, enabling privilege escalation or denial of service. The vulnerability is reachable from unprivileged user namespaces where CAP_NET_ADMIN is available.
Vulnerability analysis
The read_unconf_index_list() function in the Bluetooth management interface counts unconfigured controllers while holding a lock, then allocates a response buffer based on that count, and finally iterates the list again to fill the buffer. The lock protects list membership but not per-device flags. During the window between the two passes, a controller's setup worker can change its flags from configured to unconfigured, making it eligible for the fill pass even though it was not counted. This causes the fill loop to write past the end of the allocated buffer. The fix allocates space for every controller on the list, which is stable under the lock, ensuring the buffer is always large enough regardless of flag transitions. The reported count and response length still reflect only eligible unconfigured controllers. An attacker with local access and CAP_NET_ADMIN (obtainable in a user namespace) can trigger this by opening a management socket and issuing the Read Unconfigured Index List command while racing controller setup.
Lifecycle
03Fix Versions
| Branch | Introduced | Fixed in | Patch commit |
|---|---|---|---|
| 5.10 | 3.17 | 5.10.273 | fa6f79bb0009 |
| 5.15 | 3.17 | 5.15.224 | 76dc7e0297f6 |
| 6.1 | 3.17 | 6.1.191 | 9c32455f490b |
| 6.12 | 3.17 | 6.12.112 | 8ddf962c7643 |
| 6.18 | 3.17 | 6.18.55 | 416546cd6a54 |
| 6.6 | 3.17 | 6.6.158 | 524e0450dd9a |
| 7.2 | 3.17 | 7.2.9 | 2e8bba0360d1 |
| mainline | 3.17 | 7.3 | b5dbb41b212c |
| cip/6.12 | 3.17 | 6.12.112-cip33 | 8ddf962c7643 |
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 | Affected — no CIP fix yet (latest 6.1.190-cip62) |
| cip/6.1-rt | Affected — no CIP fix yet (latest 6.1.189-cip61-rt32) |
| cip/5.10 | Affected — no CIP fix yet (latest 5.10.272-cip79) |
| cip/5.10-rt | Affected — no CIP fix yet (latest 5.10.272-cip79-rt35) |
| cip/4.19 | Affected — no CIP fix yet (latest 4.19.325-cip136) |
| cip/4.19-rt | Affected — no CIP fix yet (latest 4.19.325-cip136-rt50) |
| cip/4.4 | Affected — no CIP fix yet (latest 4.4.302-cip115) |
| cip/4.4-rt | Affected — no CIP fix yet (latest 4.4.302-cip115-rt63) |