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

CVE-2026-97977: Linux Kernel Bluetooth UAF Vulnerability

CVE-2026-97977 is a use-after-free flaw in the Linux kernel Bluetooth subsystem that can cause system instability through improper memory handling. This article covers technical details, impact analysis, and mitigation strategies.

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-97977 Overview

CVE-2026-97977 is a use-after-free vulnerability in the Linux kernel's Bluetooth USB (btusb) driver. The flaw lives in the rx_work delayed work handler and is triggered during device teardown. When btusb_close() and btusb_flush() cancel data->rx_work using the asynchronous cancel_delayed_work(), a concurrently executing btusb_rx_work() on another CPU continues to run after the cancel returns. If btusb_disconnect() then calls hci_unregister_dev() and frees btusb_data, the still-running worker dereferences freed memory.

Critical Impact

A race between Bluetooth USB device teardown and the rx_work handler can lead to kernel memory corruption, potentially enabling denial of service or local privilege escalation on affected Linux systems.

Affected Products

  • Linux kernel Bluetooth USB driver (drivers/bluetooth/btusb.c)
  • Linux distributions shipping unpatched upstream kernels with the vulnerable btusb code
  • Systems using USB Bluetooth adapters managed by the btusb driver

Discovery Timeline

  • 2026-09-25 - CVE-2026-97977 published to NVD
  • 2026-09-25 - Last updated in NVD database

Technical Details for CVE-2026-97977

Vulnerability Analysis

The vulnerability is a classic use-after-free (UAF) race condition in the Linux kernel Bluetooth USB driver. The btusb_close() and btusb_flush() functions attempt to cancel the delayed work item data->rx_work using cancel_delayed_work(). This API returns immediately without waiting for an already-running worker to finish.

If btusb_rx_work() is executing on another CPU, the cancel call does not stop it. The subsequent btusb_disconnect() path invokes hci_unregister_dev(), which calls btusb_close() and then frees the btusb_data structure. The still-running worker continues to dereference the freed data pointer in a loop that dequeues ACL packets:

while ((skb = skb_dequeue(&data->acl_q))) data->recv_acl(data->hdev, skb);

This read-after-free of data->acl_q, data->recv_acl, and data->hdev can corrupt kernel memory or redirect control flow if an attacker shapes the freed slab contents.

Root Cause

The root cause is the use of the non-synchronous cancel_delayed_work() on a worker whose lifetime is tied to a structure about to be freed. Correct teardown requires cancel_delayed_work_sync(), which blocks until any running instance completes. Additionally, the cancel must occur after btusb_stop_traffic(); otherwise a URB completion racing with the cancel can requeue the work immediately after it has been waited for.

Attack Vector

Exploitation requires local physical or logical access to trigger Bluetooth USB device disconnect events while receive traffic is in flight. An attacker able to attach, detach, or power-cycle USB Bluetooth devices (including virtual or malicious USB devices) can race the teardown path against incoming ACL packet processing to reach the freed memory state.

See the upstream fix commits for the exact source changes: Kernel Git Commit 1c12c31, Kernel Git Commit 472d005, Kernel Git Commit 93b5993, and Kernel Git Commit fa391ad.

Detection Methods for CVE-2026-97977

Indicators of Compromise

  • Kernel oops or panic messages referencing btusb_rx_work, skb_dequeue, or hci_unregister_dev in dmesg or /var/log/kern.log
  • KASAN use-after-free reports naming btusb_data or the acl_q field on kernels built with memory sanitizers enabled
  • Unexpected Bluetooth stack crashes correlated with USB disconnect events

Detection Strategies

  • Enable CONFIG_KASAN on test and staging kernels to surface the UAF deterministically during Bluetooth USB stress testing
  • Monitor kernel ring buffer events for btusb module faults following USB hotplug activity
  • Audit installed kernel versions across the fleet against the stable branches that include the four fix commits

Monitoring Recommendations

  • Centralize kernel log collection and alert on BUG:, Oops:, and KASAN entries involving btusb or bluetooth
  • Track USB subsystem udev events on endpoints that permit Bluetooth adapters to detect anomalous attach/detach bursts
  • Correlate Bluetooth driver crashes with user sessions and process activity to identify intentional race attempts

How to Mitigate CVE-2026-97977

Immediate Actions Required

  • Update the Linux kernel to a stable release containing the four referenced fix commits once distribution packages are available
  • On systems that do not require Bluetooth, unload the btusb module with modprobe -r btusb and blacklist it
  • Restrict physical and virtual USB device attachment on sensitive hosts using USB access control policies

Patch Information

The fix replaces cancel_delayed_work() with cancel_delayed_work_sync() in btusb_close() and btusb_flush(), and reorders the cancel to occur after btusb_stop_traffic() so URB completions cannot requeue the worker after it has been waited for. The upstream patches are available at Kernel Git Commit 1c12c31, Kernel Git Commit 472d005, Kernel Git Commit 93b5993, and Kernel Git Commit fa391ad.

Workarounds

  • Disable the Bluetooth stack entirely on servers and workstations that do not require it by masking bluetooth.service and blacklisting the btusb and bluetooth modules
  • Enforce USB device allowlists through tools such as USBGuard to prevent attachment of untrusted Bluetooth adapters
  • Limit local account access on multi-user systems to reduce opportunity for an attacker to trigger the race condition
bash
# Disable and blacklist the btusb driver
sudo systemctl mask bluetooth.service
sudo modprobe -r btusb
echo "blacklist btusb" | sudo tee /etc/modprobe.d/blacklist-btusb.conf
echo "blacklist bluetooth" | sudo tee -a /etc/modprobe.d/blacklist-btusb.conf
sudo update-initramfs -u

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.