Look up another CVE · open CVE-2024-58241 in the interactive tracker
CVE-2024-58241
Bluetooth: hci_core: Disable works on hci_unregister_dev
Published 2025-09-24 (13 months ago) by the Linux kernel CNA. Subsystem net/bluetooth. Debian urgency: not yet assigned.
What to do, per Debian release
Debian's own status for CVE-2024-58241 in every release this site tracks, and what each one means in practice. Every status below is the one the Debian Security Team publishes for this CVE. source
| Release | Status | Version | What this means |
|---|---|---|---|
| Debian 12bookworm | vulnerable | 6.1.190-1 | No fix published anywhere yet, neither in Debian nor upstream for the series bookworm tracks. Watch the Debian tracker page for this CVE. Advisories for bookworm have historically landed a median of 23 days after publication. |
| Debian 13trixie | fixed | 6.11.6-1 | Update the kernel and reboot. Fixed in 6.11.6-1. A running kernel keeps the old code until the machine restarts. |
| Debian 14forky | fixed | 6.11.6-1 | Update the kernel and reboot. Fixed in 6.11.6-1. A running kernel keeps the old code until the machine restarts. |
| Debian unstablesid | fixed | 6.11.6-1 | Update the kernel and reboot. Fixed in 6.11.6-1. A running kernel keeps the old code until the machine restarts. |
The vulnerability
What the bug is
This make use of disable_work_* on hci_unregister_dev since the hci_dev is about to be freed new submissions are not disarable.
Where it lives
The fix touches these files. If the subsystem is one you do not use, the practical exposure is lower, though the package is still the vulnerable one.
net/bluetooth/hci_core.c
net/bluetooth/hci_sync.c
- What this is
- BLUETOOTH SUBSYSTEMMAINTAINERS section matched on net/bluetooth/ · linux-bluetooth@vger.kernel.org · Supported
- Kernel module
- bluetooth
Check it on the machine
grep -w CONFIG_BT /boot/config-$(uname -r)Reads the booted kernel's own configuration, on the machine and nowhere else. =y is built in, =m is a module, and an is not set line means the code is not there.
lsmod | grep -w bluetoothPrints a line if that module is loaded right now, and nothing if it is not. One that is not loaded can still be loaded later by anything that needs it.
Show whether Debian builds this, per release
Debian builds this, but not on every flavour. At least one release below builds the code on some of its kernel flavours and not on others, so the answer depends on the architecture and flavour installed.
- bookwormMnot built on amd64/cloud-amd64, arm64/cloud-arm64
- trixie, forky, sidMnot built on amd64/cloud-amd64, arm64/cloud-arm64, s390x/s390x
- M
- a module where it is built at all; some flavours do not build it
- Build switch
- CONFIG_BT
From the configuration Debian publishes for every kernel flavour it builds. It covers only the architectures Debian ships a linux-config package for, and nothing about a kernel you built yourself. Debian's own status above stays authoritative about the source package.MAINTAINERS kbuild Makefiles Debian linux-config packages
Signals
- Published
- 2025-09-24 (13 months ago)source
- CVSS
- 7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:Hsource recompute it - Attack vector
- local (AV:L)source
- EPSS
- 0.14%, higher than 2.8% of all CVEssource
- CISA KEV
- not listedthe KEV catalogue
- Debian urgency
- not yet assignedsource
- Subsystem
- net/bluetooth
Upstream fixes
The versions the CNA records as introducing and fixing this, and the commit for each. source
| Introduced | Fixed in | Commit |
|---|---|---|
| 6.10 | 6.11.6 | cfdb13a54e05 |
| 6.10 | 6.12 | 989fa5171f00 |
| 4.19.319 | 0 | 0 |
| 5.4.281 | 0 | 0 |
| 5.10.223 | 0 | 0 |
| 5.15.164 | 0 | 0 |
| 6.1.101 | 0 | 0 |
| 6.6.42 | 0 | 0 |
| 6.9.11 | 0 | 0 |
Why the CNA scored it this way
Quoted from the kernel CNA's own scoring file, word for word. A highlighted metric carries the most severe value CVSS v3.1 defines for it, which is what pushes the score up. source
- AV:LAttack vector, local
- Triggering the vulnerable window requires initiating HCI device teardown (`hci_unregister_dev()`), reachable locally via `/dev/vhci` close, HCI ldisc detach, or adapter down/removal — an adjacent Bluetooth peer can influence HCI traffic but cannot cause device unregistration. All required primitives are local syscalls (open/write/close/ioctl on a device node and Bluetooth sockets).
- AC:LAttack complexity, low
- The attacker controls both sides of the race — it drives the unregister (closing the vhci fd) while concurrently feeding HCI packets/commands that re-queue `rx_work`/`cmd_work`/`error_reset` — and can retry the open/close cycle indefinitely to win it and to spray the freed `hci_dev` slab. The `cmd_timer`/`ncmd_timer` re-arm even occurs on the unregister path itself via `hci_dev_close_sync()`, requiring no external timing luck.
- PR:LPrivileges required, low
- No capability check exists anywhere on the path: `vhci_open()` performs no `capable()` test, so an unprivileged user granted the device node (containers, Android's bluetooth uid, permissive udev rules) can create and destroy HCI devices and inject HCI frames at will. This matches the PR:L assignment for the structurally identical `hci_unregister_dev` teardown UAF CVE-2025-38250.
- UI:NUser interaction, none
- The attacker performs both the device teardown and the concurrent work re-submission entirely from its own processes. No victim action or cooperation is needed.
- S:UScope, unchanged
- The corruption is confined to kernel slab memory and workqueue structures within the same kernel security authority. No VM, IOMMU, or sandbox boundary is crossed.
- C:HConfidentiality impact, high
- A work_struct/delayed_work embedded in the freed `hci_dev` is dereferenced after `kfree()`, and `__queue_work()` follows the stale `dwork->wq` pointer into a destroyed workqueue. Controlled reallocation of the freed object turns this into an arbitrary-read primitive and leaks kernel pointers/heap contents.
- I:HIntegrity impact, high
- The same use-after-free lets the attacker place controlled data in the reclaimed `hci_dev` slab so that the firing timer operates on attacker-supplied `workqueue_struct`/`pool_workqueue`/list pointers and work function pointers, yielding arbitrary write and control-flow hijack. Per kernel scoring guidance, a UAF exploitable for heap spraying is High integrity impact.
- A:HAvailability impact, high
- Even unexploited, the stale timer queuing onto a destroyed workqueue causes a KASAN slab-use-after-free oops and kernel panic, and `destroy_workqueue()` with still-pending work triggers a WARN and leaves the workqueue broken. Re-queued `error_reset` additionally reintroduces the `destroy_workqueue()` self-flush deadlock that hangs the req_workqueue.