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
    • 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-28139

CVE-2021-28139: Espressif ESP-IDF RCE Vulnerability

CVE-2021-28139 is a remote code execution flaw in Espressif ESP-IDF's Bluetooth Classic that allows attackers in radio range to execute arbitrary code on ESP32 devices. This article covers technical details, affected versions, and mitigation.

Published: February 25, 2026

CVE-2021-28139 Overview

CVE-2021-28139 is a critical firmware vulnerability affecting the Bluetooth Classic implementation in Espressif ESP-IDF 4.4 and earlier versions. The vulnerability exists in the handling of LMP (Link Manager Protocol) Feature Response Extended packets, where the Feature Page is not properly restricted upon reception. This flaw allows attackers within Bluetooth radio range to trigger arbitrary code execution on ESP32 devices by sending a crafted Extended Features bitfield payload.

This vulnerability is part of the broader "BrakTooth" family of Bluetooth Classic vulnerabilities, which affect multiple commercial Bluetooth chipsets. The ESP32's widespread deployment in IoT devices, industrial systems, smart home products, and consumer electronics significantly amplifies the potential impact of this security flaw.

Critical Impact

Attackers within Bluetooth radio range can achieve arbitrary code execution on vulnerable ESP32 devices without authentication, potentially compromising IoT ecosystems, smart home systems, and industrial control devices.

Affected Products

  • Espressif ESP-IDF versions 4.4 and earlier
  • Espressif ESP32 hardware with Bluetooth Classic enabled
  • All devices utilizing ESP32 with vulnerable ESP-IDF Bluetooth Classic stack

Discovery Timeline

  • September 7, 2021 - CVE-2021-28139 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2021-28139

Vulnerability Analysis

The vulnerability resides in the Bluetooth Classic stack's handling of LMP Feature Response Extended packets. The Link Manager Protocol is responsible for link setup and control between Bluetooth devices, including the exchange of supported features through LMP_FEATURES_REQ and LMP_FEATURES_RES transactions.

When an ESP32 device receives an LMP Feature Response Extended packet, the implementation fails to properly validate the Feature Page parameter. The Feature Page field is intended to indicate which page of extended features is being reported (e.g., Page 1, Page 2), with each page containing a 64-bit features bitmask. The vulnerable implementation does not adequately bounds-check this value before using it as an index or offset in memory operations.

An attacker can craft a malicious Extended Features packet with an out-of-bounds Feature Page value combined with a specially constructed bitfield payload. When processed by the vulnerable Bluetooth stack, this triggers memory corruption that can be leveraged to achieve arbitrary code execution on the ESP32 microcontroller.

Root Cause

The root cause of this vulnerability is insufficient input validation in the Bluetooth Classic stack's LMP packet processing routines. Specifically, the code fails to verify that the Feature Page value falls within the expected range before using it in subsequent operations. This constitutes an improper input validation flaw that leads to memory corruption.

The ESP32's Bluetooth stack processes LMP packets in a privileged context, meaning successful exploitation provides the attacker with significant control over the device's execution environment. The lack of proper boundary checks on protocol fields received over the air represents a critical security oversight in the firmware design.

Attack Vector

The attack vector requires the attacker to be within Bluetooth radio range of the target ESP32 device (typically up to 100 meters with Class 1 Bluetooth). The attack can be executed against any ESP32 device with Bluetooth Classic functionality enabled, without requiring prior authentication or pairing.

The attack flow involves:

  1. The attacker establishes a Bluetooth Classic connection attempt with the target ESP32 device
  2. During the link setup phase, LMP packets are exchanged to negotiate features
  3. The attacker sends a malformed LMP Feature Response Extended packet with a crafted Feature Page and bitfield payload
  4. The vulnerable ESP32 Bluetooth stack processes the packet without proper validation
  5. Memory corruption occurs, allowing the attacker to redirect execution flow
  6. Arbitrary code execution is achieved on the ESP32 processor

Due to the absence of verified code examples, technical details of the specific exploitation mechanism can be found in the BrakTooth research paper.

Detection Methods for CVE-2021-28139

Indicators of Compromise

  • Unexpected Bluetooth connection attempts or authentication failures on ESP32-based devices
  • Anomalous behavior in IoT devices utilizing ESP32 chips, such as unexpected reboots or unresponsive states
  • Bluetooth Classic activity from unknown or suspicious MAC addresses in proximity to affected devices
  • Device firmware integrity check failures or unexpected modifications

Detection Strategies

  • Implement Bluetooth traffic monitoring to detect malformed LMP packets with invalid Feature Page values
  • Deploy network segmentation to isolate IoT devices and limit lateral movement from compromised ESP32 systems
  • Utilize endpoint detection and response solutions capable of monitoring embedded device behavior
  • Conduct regular firmware version audits to identify devices running vulnerable ESP-IDF versions

Monitoring Recommendations

  • Monitor for Bluetooth Classic connection attempts during unusual hours or from unauthorized locations
  • Implement logging of Bluetooth stack events where device capabilities allow
  • Establish baseline behavior profiles for ESP32-based IoT devices to detect anomalous activity
  • Deploy physical security measures to limit Bluetooth radio range access in sensitive environments

How to Mitigate CVE-2021-28139

Immediate Actions Required

  • Update ESP-IDF to version 4.4.1 or later, which contains patches for this vulnerability
  • Disable Bluetooth Classic functionality on ESP32 devices where it is not required for operation
  • Reduce Bluetooth transmission power to minimize the effective attack range where possible
  • Implement physical access controls to limit proximity-based attacks in critical deployments

Patch Information

Espressif has addressed this vulnerability in updated versions of the ESP-IDF framework and the ESP32 Bluetooth library. Organizations should upgrade to ESP-IDF version 4.4.1 or later and update the esp32-bt-lib component to the latest available version.

Refer to the GitHub ESP-IDF Repository for the latest firmware releases. For Bluetooth-specific updates, consult the GitHub ESP32 BT Library repository. Additional product information is available on the Espressif ESP32 Product Page.

Workarounds

  • Disable Bluetooth Classic and use Bluetooth Low Energy (BLE) instead, as BLE uses a different stack not affected by this vulnerability
  • Implement RF shielding or deploy devices in locations with limited physical access to reduce radio-range attack feasibility
  • Use external Bluetooth modules with patched firmware if ESP32 Bluetooth Classic functionality is required
  • Consider replacing affected ESP32 devices with newer hardware revisions that ship with patched firmware
bash
# ESP-IDF configuration to disable Bluetooth Classic
# In your project's sdkconfig or using menuconfig:
CONFIG_BT_CLASSIC_ENABLED=n
CONFIG_BT_ENABLED=y
CONFIG_BT_BLUEDROID_ENABLED=y
CONFIG_BT_BLE_ENABLED=y

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechEspressif Esp Idf

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability1.56%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • NVD-CWE-noinfo
  • Technical References
  • Packet Storm Security Paper

  • GitHub ESP-IDF Repository

  • GitHub ESP32 BT Library
  • Vendor Resources
  • Espressif ESP32 Product Page
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs Path Traversal 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