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

CVE-2026-98294: Linux Kernel Bluetooth Use-After-Free Flaw

CVE-2026-98294 is a use-after-free vulnerability in the Linux kernel Bluetooth hci_qca driver that causes writes to closed serial ports. This article covers the technical details, affected systems, 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-98294 Overview

CVE-2026-98294 affects the Linux kernel Bluetooth stack, specifically the hci_qca driver used for Qualcomm Bluetooth controllers such as the WCN399x family. The flaw occurs when qca_serdev_remove() writes to a serial port that has already been closed by hci_uart_close(). A failed hci_dev_open_sync() following a successful qca_setup() leaves the regulator state (power->vregs_on) set to true even though the underlying serdev port is closed. On driver unbind, qca_power_off() then attempts a baud rate change on the closed port, triggering a NULL pointer dereference in tty_set_termios().

Critical Impact

Local attackers or faulty hardware conditions can trigger a kernel NULL pointer dereference leading to denial of service on systems using Qualcomm WCN399x Bluetooth controllers.

Affected Products

  • Linux kernel Bluetooth subsystem (drivers/bluetooth/hci_qca.c)
  • Systems using Qualcomm WCN399x Bluetooth controllers (including WCN3988)
  • Any Linux-based device relying on the hci_uart driver with HCI_QUIRK_NON_PERSISTENT_SETUP

Discovery Timeline

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

Technical Details for CVE-2026-98294

Vulnerability Analysis

The vulnerability resides in the Qualcomm Bluetooth HCI UART driver (hci_qca). When HCI_QUIRK_NON_PERSISTENT_SETUP is set, hci_uart_close() closes the serdev port after setup. If hci_dev_open_sync() fails after qca_setup() succeeds, the cleanup path invokes hdev->close() but skips hdev->shutdown(). This asymmetric cleanup leaves the regulator flag power->vregs_on set to true while the serial port is already closed.

When a user later unbinds the driver, qca_serdev_remove() evaluates power->vregs_on and calls qca_power_off(). That function unconditionally attempts to write to the serial port, dereferencing a NULL serport->tty pointer during the baud rate change operation.

Root Cause

The root cause is a state-tracking inconsistency between the regulator power state and the serdev port state. The driver tracks these resources independently but assumes they move together. The qca_power_off() routine does not verify that the UART protocol is still ready (HCI_UART_PROTO_READY) before issuing I/O against the port.

Attack Vector

An attacker with local privileges capable of unbinding kernel drivers can trigger the condition after inducing a controller initialization failure. The resulting NULL pointer dereference causes a kernel oops in tty_set_termios(), called via ttyport_set_baudrate() and serdev_device_set_baudrate() from qca_power_shutdown() (renamed qca_power_off() in current kernels). The call chain terminates at unbind_store(), confirming the vulnerability is reachable through the standard sysfs driver unbind interface.

No synthetic exploit code is published. See the upstream fix commits for technical details: Kernel Git Commit 15754e4, Kernel Git Commit 4e93c65, and Kernel Git Commit a5414b0.

Detection Methods for CVE-2026-98294

Indicators of Compromise

  • Kernel oops messages referencing tty_set_termios, ttyport_set_baudrate, or qca_power_shutdown in dmesg or /var/log/kern.log.
  • NULL pointer dereference faults at virtual address 0x0000000000000038 originating from the hci_uart module.
  • Unexpected system reboots or Bluetooth stack crashes after driver unbind events on Qualcomm WCN399x hardware.

Detection Strategies

  • Monitor kernel ring buffer output for stack traces containing qca_serdev_remove and serdev_device_set_baudrate call sequences.
  • Audit sysfs unbind events against the hci_uart driver using kernel auditing (auditctl -w /sys/bus/serial/drivers/hci_uart).
  • Track Bluetooth controller initialization failures preceding driver unload operations across fleet telemetry.

Monitoring Recommendations

  • Collect kernel panic and oops telemetry from Linux endpoints and forward to a centralized SIEM for correlation.
  • Alert on repeated hci_qca initialization failures that could indicate attempts to trigger the vulnerable code path.
  • Baseline normal driver bind/unbind activity on embedded and mobile Linux systems to detect anomalous unbind operations.

How to Mitigate CVE-2026-98294

Immediate Actions Required

  • Apply the upstream Linux kernel patches referenced in the kernel.org commits for your supported stable kernel branch.
  • Restrict access to driver bind/unbind sysfs interfaces to privileged users only.
  • Inventory devices using Qualcomm WCN399x Bluetooth controllers to prioritize patch deployment.

Patch Information

The fix adds a check for HCI_UART_PROTO_READY before writing to the serial port in qca_power_off(). The regulator disable call remains unconditional so the controller still powers down safely. Patched commits are available at Kernel Git Commit 15754e4, Kernel Git Commit 4e93c65, and Kernel Git Commit a5414b0. A follow-up patch addresses the related dangling serport->tty use-after-free condition.

Workarounds

  • Avoid unbinding the hci_uart driver on affected hardware until the kernel is patched.
  • Disable the Bluetooth subsystem via kernel module blacklist on systems where Bluetooth is not required.
  • Restrict CAP_SYS_ADMIN capabilities to prevent unprivileged driver unbind operations.
bash
# Blacklist the hci_uart module until patched
echo "blacklist hci_uart" | sudo tee /etc/modprobe.d/blacklist-hci_uart.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.