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

Bluetooth: hci_core: Fix race condition during device registration

In hci_register_dev(), the power_on work item is queued to
hdev->req_workqueue before initializing hdev->adv_monitors_idr and
registering the MSFT extension via msft_register(). For devices marked with
quirks such as HCI_QUIRK_RAW_DEVICE, the HCI_UNCONFIGURED flag is set on
the device. When the power_on work item runs concurrently on another CPU,
hci_power_on() detects that the device is unconfigured and immediately
invokes hci_dev_do_close(), which calls msft_do_close().

Concurrently, msft_register() allocates the msft structure and exposes it
to hdev->msft_data prior to calling mutex_init(&msft->filter_lock). If
msft_do_close() executes while hdev->msft_data is already assigned but the
mutex has not yet been initialized, mutex_lock(&msft->filter_lock) operates
on an uninitialized mutex, triggering a DEBUG_LOCKS warning:

DEBUG_LOCKS_WARN_ON(lock->magic != lock)
WARNING: kernel/locking/mutex.c:625 at __mutex_lock_common
kernel/locking/mutex.c:625 [inline]
WARNING: kernel/locking/mutex.c:625 at __mutex_lock+0x12d8/0x1550
kernel/locking/mutex.c:821
...
Call Trace:
<TASK>
msft_do_close+0x308/0x7b0 net/bluetooth/msft.c:693
hci_dev_close_sync+0x86b/0x10a0 net/bluetooth/hci_sync.c:5522
hci_dev_do_close net/bluetooth/hci_core.c:499 [inline]
hci_power_on+0x32c/0x750 net/bluetooth/hci_core.c:937
process_one_work kernel/workqueue.c:3322 [inline]
process_scheduled_works+0xa8e/0x14e0 kernel/workqueue.c:3405
worker_thread+0x92d/0xe10 kernel/workqueue.c:3486
kthread+0x388/0x470 kernel/kthread.c:436
ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
</TASK>

Fix this by moving the queue_work() call in hci_register_dev() to after
idr_init(&hdev->adv_monitors_idr) and msft_register(hdev) so that device
structures and extensions are fully initialized before asynchronous tasks
can access them. Additionally, assign hdev->msft_data in msft_register()
only after mutex_init(&msft->filter_lock) has completed.
Published: 2026-09-25
Score: 4.7 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Potential Kernel Crash (Denial of Service)
Action: Apply Patch
AI Analysis

Impact

The Linux kernel’s Bluetooth hci_core module contained a race condition in the device registration path. During hci_register_dev(), the power_on work item was queued before the msft extension’s mutex was initialized. When a device with the HCI_QUIRK_RAW_DEVICE flag is registered, hci_power_on runs concurrently on another CPU and calls hci_dev_do_close(). If msft_do_close() executes before msft_register() finishes initializing the mutex, a DEBUG_LOCKS warning is triggered on an uninitialized lock and, if pressed further, could lead to a kernel panic. Based on the description, it is inferred that an attacker could trigger the race by introducing a Bluetooth device that sets the HCI_QUIRK_RAW_DEVICE flag, causing the driver to attempt configuration concurrently with the power_on work item. This flaw does not directly disclose data but can precipitate a kernel crash, resulting in a denial of service.

Affected Systems

All releases of the Linux kernel that incorporated the buggy Bluetooth hci_core implementation before the fix are impacted. No specific version range is listed in the advisory, so any kernel build prior to the patch may be vulnerable. Users running standard kernel packages should verify that the kernel has been updated to the patched branch.

Risk and Exploitability

The flaw is catalogued in the official kernel advisory, but it is not listed in CISA’s KEV database, and its EPSS score is below 1%, indicating a very low publicly observable exploitation probability. The CVSS score of 4.7 reflects a moderate impact. The likely attack vector is a Bluetooth-based local or remote threat that triggers device registration and induces the race. Based on the description, it is inferred that an attacker could force the affected kernel to crash by pairing a malicious Bluetooth device that triggers the HCI_QUIRK_RAW_DEVICE flag, thereby executing the uninitialized mutex logic.

Generated by OpenCVE AI on October 2, 2026 at 17:11 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply a kernel update that includes the race condition fix in the hci_core Bluetooth driver. Based on the description, it is inferred that updating the kernel will eliminate the race condition flaw.
  • If an update is not immediately available, disable or unload the Bluetooth kernel modules (e.g., "modprobe -r btusb" or "modprobe -r hci"). Based on the description, it is inferred that this action stops the vulnerable registration path from executing.
  • Configure the system to block the registration of devices with the HCI_QUIRK_RAW_DEVICE quirk, for example by setting appropriate hciattach options or using a udev rule that denies such devices to the driver. Based on the description, it is inferred that this mitigates the risk by preventing the race from occurring.
  • Monitor kernel logs for DEBUG_LOCKS warnings, which indicate an uninitialized mutex condition; if they appear, take corrective action immediately. Based on the description, it is inferred that this monitoring can provide early warning of the race before a full crash.

Generated by OpenCVE AI on October 2, 2026 at 17:11 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4817-1 linux-6.12 security update
Debian DSA Debian DSA DSA-6528-1 linux security update
History

Sat, 03 Oct 2026 11:15:00 +0000


Fri, 02 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-362
CPEs cpe:2.3:o:linux:linux_kernel:7.3:rc1:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

cvssV3_1

{'score': 4.7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H'}


Tue, 29 Sep 2026 13:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-908
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Fri, 25 Sep 2026 10:45:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: Bluetooth: hci_core: Fix race condition during device registration In hci_register_dev(), the power_on work item is queued to hdev->req_workqueue before initializing hdev->adv_monitors_idr and registering the MSFT extension via msft_register(). For devices marked with quirks such as HCI_QUIRK_RAW_DEVICE, the HCI_UNCONFIGURED flag is set on the device. When the power_on work item runs concurrently on another CPU, hci_power_on() detects that the device is unconfigured and immediately invokes hci_dev_do_close(), which calls msft_do_close(). Concurrently, msft_register() allocates the msft structure and exposes it to hdev->msft_data prior to calling mutex_init(&msft->filter_lock). If msft_do_close() executes while hdev->msft_data is already assigned but the mutex has not yet been initialized, mutex_lock(&msft->filter_lock) operates on an uninitialized mutex, triggering a DEBUG_LOCKS warning: DEBUG_LOCKS_WARN_ON(lock->magic != lock) WARNING: kernel/locking/mutex.c:625 at __mutex_lock_common kernel/locking/mutex.c:625 [inline] WARNING: kernel/locking/mutex.c:625 at __mutex_lock+0x12d8/0x1550 kernel/locking/mutex.c:821 ... Call Trace: <TASK> msft_do_close+0x308/0x7b0 net/bluetooth/msft.c:693 hci_dev_close_sync+0x86b/0x10a0 net/bluetooth/hci_sync.c:5522 hci_dev_do_close net/bluetooth/hci_core.c:499 [inline] hci_power_on+0x32c/0x750 net/bluetooth/hci_core.c:937 process_one_work kernel/workqueue.c:3322 [inline] process_scheduled_works+0xa8e/0x14e0 kernel/workqueue.c:3405 worker_thread+0x92d/0xe10 kernel/workqueue.c:3486 kthread+0x388/0x470 kernel/kthread.c:436 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 </TASK> Fix this by moving the queue_work() call in hci_register_dev() to after idr_init(&hdev->adv_monitors_idr) and msft_register(hdev) so that device structures and extensions are fully initialized before asynchronous tasks can access them. Additionally, assign hdev->msft_data in msft_register() only after mutex_init(&msft->filter_lock) has completed.
Title Bluetooth: hci_core: Fix race condition during device registration
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-19T09:14:01.739Z

Reserved: 2026-09-25T10:25:14.316Z

Link: CVE-2026-98109

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Undergoing Analysis

Published: 2026-09-25T11:17:41.977

Modified: 2026-10-19T10:18:08.593

Link: CVE-2026-98109

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-09-25T00:00:00Z

Links: CVE-2026-98109 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-02T17:15:08Z

Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

  • CWE-908

    Use of Uninitialized Resource