Skip to main content
Vulnerability Database/CVE-2026-98297

CVE-2026-98297: Linux Kernel Bluetooth Race Condition

CVE-2026-98297 is a race condition in the Linux kernel Bluetooth subsystem affecting work queue management during device shutdown. This article covers technical details, affected versions, impact, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-98297 Overview

CVE-2026-98297 is a race condition in the Linux kernel Bluetooth subsystem. The flaw resides in hci_core where hci_send_acl(), hci_send_sco(), and hci_send_iso() unconditionally queue hdev->tx_work onto hdev->workqueue. When hci_dev_close_sync() drains the workqueue concurrently with a socket write on an L2CAP, SCO, or ISO socket, the kernel attempts to queue work on a workqueue already marked __WQ_DRAINING. The result is a WARN_ON in __queue_work() and the dropped work item. The upstream fix routes tx_work producers through a new hci_sched_tx() helper that honors the existing HCI_CMD_DRAIN_WORKQUEUE guard.

Critical Impact

A local user with Bluetooth socket access can trigger a kernel warning and lose queued transmit work by racing socket writes against HCI device shutdown.

Affected Products

  • Linux kernel Bluetooth subsystem (net/bluetooth/hci_core.c)
  • Linux stable branches prior to the backport commits
  • Distributions shipping affected mainline kernels

Discovery Timeline

  • 2026-10-06 - CVE-2026-98297 published to NVD
  • 2026-10-06 - Last updated in NVD database

Technical Details for CVE-2026-98297

Vulnerability Analysis

The flaw is a kernel race condition [CWE-362] between the Bluetooth socket send path and the HCI device teardown path. During normal operation, user-space writes on an L2CAP, SCO, or ISO socket traverse l2cap_sock_sendmsg() and related call paths that eventually invoke hci_send_acl(), hci_send_sco(), or hci_send_iso(). Each of these functions calls queue_work() to schedule hdev->tx_work without first checking whether the owning workqueue is still accepting work.

When another thread invokes hci_dev_close_sync() to bring the HCI interface down (HCIDEVDOWN), the teardown logic drains hdev->workqueue and sets the __WQ_DRAINING flag. If a socket writer races the shutdown, __queue_work() detects the draining state and emits WARNING: cannot queue %ps on wq %s at kernel/workqueue.c:2352, then discards the work item. The dropped tx_work means pending ACL, SCO, or ISO frames are not transmitted and the kernel log records a backtrace.

Root Cause

The root cause is missing synchronization between producers of tx_work and the workqueue drain performed during HCI device close. The kernel already defines HCI_CMD_DRAIN_WORKQUEUE, but only hci_cmd_work() and handle_cmd_cnt_and_timer() consult it before queuing. The three tx_work producers bypass that guard entirely.

Attack Vector

A local user with permission to open Bluetooth sockets can trigger the race by issuing socket writes while another process toggles the HCI device state. Repeated triggering produces kernel log noise and can disrupt Bluetooth data flow. The patch introduces a shared hci_sched_tx() helper that checks HCI_CMD_DRAIN_WORKQUEUE before invoking queue_work(), bringing the tx_work producers under the same guard already used by the command path.

See the upstream fixes for the exact code changes: Kernel Git Commit 6610c6f, Kernel Git Commit ab0678a0, Kernel Git Commit cbb325bc, and Kernel Git Commit e220c124.

Detection Methods for CVE-2026-98297

Indicators of Compromise

  • Kernel log entries containing WARNING: ... __queue_work referencing kernel/workqueue.c:2352.
  • Backtraces that include l2cap_chan_send, l2cap_sock_sendmsg, hci_send_acl, hci_send_sco, or hci_send_iso.
  • Log messages matching the pattern cannot queue %ps on wq %s tied to an hci workqueue name.

Detection Strategies

  • Collect dmesg and /var/log/kern.log from Bluetooth-enabled hosts and alert on the __queue_work warning signature.
  • Correlate kernel warnings with concurrent HCIDEVDOWN ioctls or bluetoothctl power off activity in audit logs.
  • Monitor process behavior that opens L2CAP, SCO, or ISO sockets while another process toggles HCI device state.

Monitoring Recommendations

  • Forward kernel logs from endpoints and IoT gateways to a centralized logging platform for pattern matching.
  • Track the running kernel version across the fleet and flag hosts that have not received the stable backport commits.
  • Audit which local users and services hold CAP_NET_RAW or Bluetooth socket permissions.

How to Mitigate CVE-2026-98297

Immediate Actions Required

  • Apply the stable kernel update that includes commits 6610c6fe, ab0678a0, cbb325bc, and e220c124 as published by your distribution.
  • Reboot affected systems after the kernel package upgrade to activate the fix.
  • On systems that do not require Bluetooth, unload the bluetooth and btusb modules and disable the bluetooth.service unit.

Patch Information

The fix introduces a shared hci_sched_tx() helper that checks HCI_CMD_DRAIN_WORKQUEUE before queuing tx_work. The change is distributed across four stable branch commits referenced in the NVD entry: 6610c6f, ab0678a0, cbb325bc, and e220c124. Consult your distribution's security tracker for backport status.

Workarounds

  • Restrict Bluetooth socket access to trusted users and services where feasible.
  • Blacklist Bluetooth kernel modules on servers and workstations that have no Bluetooth requirement.
  • Avoid programmatic patterns that toggle HCI device state while active sockets are transmitting.
bash
# Disable and blacklist Bluetooth on hosts that do not need it
sudo systemctl disable --now bluetooth.service
echo 'blacklist bluetooth' | sudo tee /etc/modprobe.d/blacklist-bluetooth.conf
echo 'blacklist btusb'     | sudo tee -a /etc/modprobe.d/blacklist-bluetooth.conf
sudo modprobe -r btusb bluetooth 2>/dev/null || true

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.