The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2021-43400

CVE-2021-43400: BlueZ Use-After-Free Vulnerability

CVE-2021-43400 is a use-after-free vulnerability in BlueZ affecting gatt-database.c when clients disconnect during D-Bus processing. This article covers the technical details, affected versions, impact, and mitigation.

Published: February 25, 2026

CVE-2021-43400 Overview

A critical use-after-free vulnerability has been discovered in BlueZ 5.61, specifically within the gatt-database.c file. This memory corruption flaw occurs when a client disconnects during D-Bus processing of a WriteValue call, leading to improper memory handling that can be exploited remotely over the network.

Critical Impact

This use-after-free vulnerability allows remote attackers to potentially compromise system confidentiality and integrity through the BlueZ Bluetooth stack without requiring any user interaction or special privileges.

Affected Products

  • BlueZ 5.61
  • Debian Linux 10.0
  • Systems using affected BlueZ versions with GATT database functionality

Discovery Timeline

  • November 04, 2021 - CVE-2021-43400 published to NVD
  • November 04, 2025 - Last updated in NVD database

Technical Details for CVE-2021-43400

Vulnerability Analysis

This vulnerability is classified as CWE-416 (Use After Free), a memory corruption issue that occurs when a program continues to use a pointer after the memory it references has been freed. In the context of BlueZ, this flaw manifests in the GATT (Generic Attribute Profile) database handling code during D-Bus IPC operations.

The vulnerability can be triggered remotely over the network without requiring authentication or user interaction. When successfully exploited, an attacker can achieve high impact on both confidentiality and integrity of the affected system, though availability is not directly impacted by this particular flaw.

Root Cause

The root cause lies in improper memory lifecycle management within gatt-database.c. When a Bluetooth client disconnects during an active WriteValue call being processed through D-Bus, the code fails to properly handle the race condition between the client disconnection and the ongoing write operation. This results in the application attempting to access memory that has already been deallocated due to the client disconnection, creating a use-after-free condition.

Attack Vector

The attack vector is network-based, allowing remote exploitation without requiring local access to the target system. An attacker can exploit this vulnerability by:

  1. Establishing a Bluetooth GATT connection to a vulnerable BlueZ service
  2. Initiating a WriteValue operation through the GATT protocol
  3. Strategically timing a disconnection during the D-Bus processing phase
  4. Triggering the use-after-free condition when the freed memory is accessed

This attack requires no privileges or user interaction, making it particularly dangerous in environments where BlueZ services are exposed. The vulnerability can lead to information disclosure or potential memory corruption that could be leveraged for further exploitation.

Detection Methods for CVE-2021-43400

Indicators of Compromise

  • Unexpected BlueZ daemon crashes or segmentation faults during GATT operations
  • Anomalous Bluetooth connection patterns with rapid connect/disconnect sequences
  • Memory corruption errors in system logs related to gatt-database.c or D-Bus processing
  • Unusual GATT WriteValue operations followed immediately by client disconnections

Detection Strategies

  • Monitor BlueZ daemon logs for use-after-free crash signatures or memory access violations
  • Implement runtime memory safety tools (AddressSanitizer, Valgrind) in development environments to detect exploitation attempts
  • Deploy endpoint detection solutions capable of monitoring Bluetooth stack behavior for anomalous patterns
  • Configure system audit logging to capture D-Bus method calls to BlueZ services

Monitoring Recommendations

  • Enable enhanced logging for BlueZ daemon to capture GATT database operations and client connection states
  • Set up alerts for BlueZ service crashes or unexpected restarts that may indicate exploitation attempts
  • Monitor system memory usage patterns for anomalies that could indicate memory corruption
  • Implement network-level Bluetooth traffic analysis where feasible

How to Mitigate CVE-2021-43400

Immediate Actions Required

  • Update BlueZ to a patched version that includes commit 838c0dc7641e1c991c0f3027bf94bee4606012f8
  • Apply operating system security updates from Debian or your Linux distribution vendor
  • Consider disabling or restricting BlueZ GATT services if not required for operations
  • Implement network segmentation to limit Bluetooth exposure where possible

Patch Information

The vulnerability has been addressed by the BlueZ maintainers in commit 838c0dc7641e1c991c0f3027bf94bee4606012f8. This fix properly handles the memory lifecycle during WriteValue D-Bus processing to prevent the use-after-free condition when clients disconnect. The patch is available through the BlueZ Git Repository.

Debian has released security advisories addressing this vulnerability for affected distributions. Refer to the Debian LTS Security Advisory - October 2022 and the Debian LTS Security Advisory - September 2024 for distribution-specific patch information.

Workarounds

  • Disable Bluetooth services entirely on systems where Bluetooth functionality is not required
  • Restrict D-Bus access to BlueZ services using D-Bus policy configurations
  • Implement firewall rules or Bluetooth adapter management to limit which devices can connect
  • Run BlueZ services in sandboxed environments with restricted memory access capabilities
bash
# Configuration example - Disable BlueZ service if not needed
sudo systemctl stop bluetooth
sudo systemctl disable bluetooth

# Alternatively, restrict D-Bus access in /etc/dbus-1/system.d/bluetooth.conf
# Add restrictive policies to limit which processes can access BlueZ interfaces

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

  • Vulnerability Details
  • TypeUse After Free

  • Vendor/TechBluez

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.17%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-416
  • Technical References
  • Debian LTS Security Advisory - Oct 2022

  • Debian LTS Security Advisory - Sep 2024
  • Vendor Resources
  • BlueZ Commit Update
  • Related CVEs
  • CVE-2022-0204: Bluez Heap Overflow DoS Vulnerability

  • CVE-2020-24490: BlueZ Denial of Service Vulnerability

  • CVE-2020-0556: BlueZ Privilege Escalation Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English