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-98247 Overview
CVE-2026-98247 is an out-of-bounds read vulnerability in the Linux kernel Bluetooth subsystem, specifically within the hci_codec Read Local Supported Codecs parser. The parser consumes a variable-sized standard codec array before reaching the vendor codec count byte. The initial reply-size check accounts for the vendor count byte in the fixed layout but does not guarantee the byte remains available after the standard codec array is consumed. A malicious or malformed controller reply can cause the parser to read vnd_codecs->num beyond the socket buffer (skb) data boundary.
Critical Impact
A crafted Bluetooth controller response can trigger an out-of-bounds read in kernel memory, potentially leading to information disclosure or kernel instability.
Affected Products
- Linux kernel versions containing the hci_codec Read Local Supported Codecs parser prior to the referenced stable commits
- Systems with Bluetooth Host Controller Interface (HCI) enabled
- Distributions shipping unpatched upstream Linux kernels
Discovery Timeline
- 2026-10-06 - CVE-2026-98247 published to NVD
- 2026-10-06 - Last updated in NVD database
Technical Details for CVE-2026-98247
Vulnerability Analysis
The vulnerability resides in the Bluetooth hci_codec subsystem that parses the Read Local Supported Codecs HCI command reply. The reply contains a variable-length array of standard codec entries followed by a vendor codec count byte and a corresponding vendor codec array.
The parser performs an initial reply-size check that accounts for the fixed layout, including the vendor count byte. However, after walking the variable-sized standard codec array, the parser does not re-validate that the vendor count byte and subsequent vendor codec headers still reside within the skb buffer. When a controller returns a reply that terminates immediately after the standard codec array, the parser dereferences vnd_codecs->num past the end of the buffer. Computing the vendor codec array size from this out-of-bounds value compounds the issue.
The fix replaces direct pointer arithmetic with skb_pull_data(), which validates buffer bounds and consumes each codec header atomically before its fields are read. The patch is applied to both command variants (BR/EDR and LE codec enumeration paths).
Root Cause
The root cause is insufficient bounds validation after consuming a variable-length structure within a socket buffer. The initial length check reserves space for fixed fields but does not re-verify remaining buffer length after dynamic consumption. This matches patterns associated with out-of-bounds read [CWE-125].
Attack Vector
Exploitation requires a Bluetooth controller or an attacker capable of injecting responses on the HCI transport to return a crafted Read Local Supported Codecs reply. Attack surface includes malicious USB Bluetooth adapters, compromised firmware on embedded Bluetooth controllers, or local attackers with access to the HCI socket interface. Successful exploitation yields a kernel out-of-bounds read, which can expose adjacent kernel memory or destabilize the Bluetooth stack.
See the upstream fix in Linux Kernel Commit a6da782f and related stable backports for technical details.
Detection Methods for CVE-2026-98247
Indicators of Compromise
- Kernel log entries referencing hci_codec, KASAN out-of-bounds read reports, or Bluetooth subsystem crashes shortly after device enumeration
- Unexpected disconnection or reinitialization of Bluetooth controllers following codec enumeration
- Presence of untrusted or unknown USB Bluetooth adapters in dmesg and lsusb output
Detection Strategies
- Enable Kernel Address Sanitizer (KASAN) on test systems to surface out-of-bounds reads in hci_codec parsing paths
- Monitor kernel ring buffer and journalctl -k output for Bluetooth subsystem warnings during controller initialization
- Track running kernel versions across the fleet and compare against the fixed stable commits referenced in the advisory
Monitoring Recommendations
- Alert on new or unauthorized USB device insertions, with emphasis on Bluetooth class devices
- Collect kernel crash dumps and oops traces to centralized logging for correlation with Bluetooth driver activity
- Audit which endpoints have Bluetooth enabled and whether the service is required for business function
How to Mitigate CVE-2026-98247
Immediate Actions Required
- Apply the latest stable Linux kernel update from your distribution vendor that incorporates the upstream fix
- Disable the Bluetooth kernel modules on systems that do not require Bluetooth functionality using rmmod and blacklist configuration
- Restrict physical access to USB ports on sensitive systems to prevent attachment of malicious Bluetooth adapters
Patch Information
The fix is distributed across multiple stable branches. Reference commits include Linux Kernel Commit 12a82819, Linux Kernel Commit 9c04b9a4, Linux Kernel Commit a6da782f, Linux Kernel Commit d0795cfd, Linux Kernel Commit e4cfd3c4, and Linux Kernel Commit f49a543d. The patches introduce skb_pull_data() validation for each codec header before its count field is consumed.
Workarounds
- Unload the bluetooth, btusb, and related modules where Bluetooth is not operationally required
- Add the Bluetooth modules to /etc/modprobe.d/blacklist.conf to prevent automatic loading at boot
- Disable the bluetooth.service unit via systemctl disable --now bluetooth.service on servers and workstations without Bluetooth needs
# Configuration example
# Disable and blacklist Bluetooth modules on systems that do not need Bluetooth
sudo systemctl disable --now bluetooth.service
echo 'blacklist btusb' | sudo tee -a /etc/modprobe.d/blacklist-bluetooth.conf
echo 'blacklist bluetooth' | sudo tee -a /etc/modprobe.d/blacklist-bluetooth.conf
sudo rmmod btusb bluetooth 2>/dev/null || true
# Verify the running kernel after applying the vendor patch
uname -r
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

