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
    • AI 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-2026-25507

CVE-2026-25507: ESP-IDF BLE Use-After-Free Vulnerability

CVE-2026-25507 is a use-after-free vulnerability in ESP-IDF's BLE provisioning layer that allows remote attackers to trigger invalid memory access. This post covers technical details, affected versions, and mitigation steps.

Published: February 6, 2026

CVE-2026-25507 Overview

CVE-2026-25507 is a use-after-free vulnerability in the ESP-IDF (Espressif IoT Development Framework) affecting the BLE provisioning transport (protocomm_ble) layer. This memory corruption flaw can be triggered remotely by a BLE client while an ESP32-based device is in provisioning mode, potentially leading to denial of service or memory corruption.

The vulnerability occurs when provisioning is stopped with the keep_ble_on = true configuration option. Under this condition, internal protocomm_ble state and GATT metadata are freed while the BLE stack and GATT services remain active. Subsequent BLE read or write callbacks then dereference the freed memory, allowing a connected or newly connected client to trigger invalid memory access.

Critical Impact

Remote BLE attackers within adjacent network range can exploit this use-after-free condition during device provisioning to cause denial of service or potentially corrupt memory on ESP32-based IoT devices.

Affected Products

  • ESP-IDF version 5.5.2
  • ESP-IDF version 5.4.3
  • ESP-IDF version 5.3.4
  • ESP-IDF version 5.2.6
  • ESP-IDF version 5.1.6

Discovery Timeline

  • 2026-02-04 - CVE-2026-25507 published to NVD
  • 2026-02-05 - Last updated in NVD database

Technical Details for CVE-2026-25507

Vulnerability Analysis

This use-after-free vulnerability (CWE-416) exists in the protocomm_ble component of ESP-IDF, which handles BLE-based provisioning for ESP32 devices. The flaw stems from improper memory lifecycle management when the provisioning process is terminated.

When an application calls to stop provisioning with keep_ble_on = true, the framework frees the internal state structures and GATT service metadata used by protocomm_ble. However, the underlying BLE stack and registered GATT services remain active and operational. This creates a dangerous condition where the GATT callback functions still reference the freed memory structures.

A remote attacker within BLE range (adjacent network) can exploit this by either maintaining an existing connection or establishing a new connection to the device after provisioning has been stopped. When the attacker issues BLE read or write operations, the GATT callbacks attempt to dereference the freed memory pointers, resulting in invalid memory access.

Root Cause

The root cause is a race condition and improper resource cleanup in the protocomm_ble layer. When keep_ble_on is set to true, the code incorrectly assumes that freeing the internal protocol communication state is safe because the BLE functionality should persist. However, the GATT service callbacks were registered with pointers to the now-freed state structures, creating dangling pointer references.

The proper fix requires either unregistering the GATT callbacks before freeing the state, maintaining the state alive as long as the BLE stack is active, or implementing reference counting to track when memory can safely be freed.

Attack Vector

The attack vector is Adjacent Network, meaning an attacker must be within BLE radio range of the vulnerable device. The attack can be executed without authentication or special privileges, though user interaction is required in the form of the device being in or having recently completed provisioning mode with the vulnerable configuration.

An attacker would follow this exploitation path:

  1. Identify an ESP32-based IoT device running a vulnerable ESP-IDF version in provisioning mode
  2. Wait for the device to stop provisioning with keep_ble_on = true, or trigger this condition if possible
  3. Connect to the device via BLE (either maintaining an existing connection or establishing a new one)
  4. Issue BLE read or write operations targeting the GATT services
  5. The GATT callbacks dereference freed memory, causing undefined behavior ranging from crashes to potential memory corruption

Detection Methods for CVE-2026-25507

Indicators of Compromise

  • Unexpected device reboots or crashes during or shortly after BLE provisioning operations
  • BLE stack errors or memory fault exceptions in device logs
  • Unusual BLE connection patterns from unknown MAC addresses during provisioning windows
  • Memory corruption signatures in crash dumps referencing protocomm_ble or GATT callback functions

Detection Strategies

  • Monitor ESP32 device logs for memory access violations or stack traces involving protocomm_ble components
  • Implement BLE connection monitoring to detect suspicious connection attempts during provisioning phases
  • Deploy firmware version auditing to identify devices running vulnerable ESP-IDF versions (5.5.2, 5.4.3, 5.3.4, 5.2.6, 5.1.6)
  • Use watchdog mechanisms to detect and log unexpected device resets that may indicate exploitation attempts

Monitoring Recommendations

  • Enable verbose logging for BLE provisioning operations to capture potential exploitation attempts
  • Implement network-level BLE monitoring in environments with critical ESP32-based infrastructure
  • Configure alerting for repeated device crashes during provisioning windows
  • Maintain an asset inventory of ESP-IDF firmware versions across deployed IoT devices

How to Mitigate CVE-2026-25507

Immediate Actions Required

  • Upgrade all ESP-IDF based firmware to patched versions: 5.5.3, 5.4.4, 5.3.5, 5.2.7, or 5.1.7
  • If immediate patching is not possible, avoid using keep_ble_on = true configuration when stopping provisioning
  • Limit the provisioning window duration to reduce the attack surface
  • Restrict physical access to deployment areas during device provisioning phases

Patch Information

Espressif has released patched versions addressing this vulnerability. The fix ensures proper lifecycle management of protocomm_ble state and GATT metadata when provisioning is stopped. Multiple commits have been published to address this issue across different version branches.

For version 5.5.x, upgrade to 5.5.3. For version 5.4.x, upgrade to 5.4.4. For version 5.3.x, upgrade to 5.3.5. For version 5.2.x, upgrade to 5.2.7. For version 5.1.x, upgrade to 5.1.7.

Detailed patch information is available in the GitHub Security Advisory and associated commit updates.

Workarounds

  • Set keep_ble_on = false when stopping provisioning to ensure the BLE stack is properly shut down along with the freed state
  • Implement application-level controls to disable BLE entirely after provisioning is complete
  • Add physical security measures to limit BLE radio access during provisioning windows
  • Schedule provisioning operations in controlled environments with limited BLE exposure
bash
# Configuration example - Use secure provisioning configuration
# In your ESP-IDF project's sdkconfig or menuconfig:

# Ensure keep_ble_on is disabled when stopping provisioning
# This prevents the use-after-free condition by shutting down
# the BLE stack when provisioning state is freed

# In application code, when calling protocomm_ble_stop():
# protocomm_ble_stop(pc);  // Ensure BLE stack is fully stopped

# Update ESP-IDF to patched version:
# idf.py update-components
# Or manually update via:
# cd $IDF_PATH && git fetch && git checkout v5.5.3

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/TechEspressif

  • SeverityMEDIUM

  • CVSS Score6.3

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:A/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityHigh
  • CWE References
  • CWE-416
  • Technical References
  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Security Advisory
  • Latest CVEs
  • CVE-2026-40322: SiYuan Knowledge Management RCE Vulnerability

  • CVE-2026-40318: SiYuan Path Traversal Vulnerability

  • CVE-2026-40259: SiYuan Auth Bypass Vulnerability

  • CVE-2026-40255: AdonisJS HTTP Server CSRF 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