CVE-2026-25507: CWE-416: Use After Free in espressif esp-idf
ESF-IDF is the Espressif Internet of Things (IOT) Development Framework. In versions 5.5.2, 5.4.3, 5.3.4, 5.2.6, and 5.1.6, a use-after-free vulnerability was reported in the BLE provisioning transport (protocomm_ble) layer. The issue can be triggered by a remote BLE client while the device is in provisioning mode. The vulnerability occurred when provisioning was stopped with keep_ble_on = true. In this configuration, internal protocomm_ble state and GATT metadata were freed while the BLE stack and GATT services remained active. Subsequent BLE read or write callbacks dereferenced freed memory, allowing a connected or newly connected client to trigger invalid memory acces. This issue has been patched in versions 5.5.3, 5.4.4, 5.3.5, 5.2.7, and 5.1.7.
AI Analysis
Technical Summary
The vulnerability CVE-2026-25507 affects the Espressif IoT Development Framework (esp-idf), specifically in the BLE provisioning transport layer (protocomm_ble). In affected versions 5.1.6 through 5.5.2, when the device is in provisioning mode and provisioning is stopped with the parameter keep_ble_on set to true, the internal protocomm_ble state and GATT metadata are freed while the BLE stack and GATT services remain active. This leads to a use-after-free condition where subsequent BLE read or write callbacks dereference freed memory. A remote BLE client connected or newly connecting to the device can trigger this invalid memory access, potentially causing application crashes or denial of service. The vulnerability does not require privileges or authentication but does require user interaction in the form of a BLE connection attempt during provisioning mode. Espressif has patched this issue in versions 5.1.7, 5.2.7, 5.3.5, 5.4.4, and 5.5.3. No known exploits are currently reported in the wild. The CVSS 3.1 vector (AV:A/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H) indicates a medium severity with no confidentiality impact but low integrity and high availability impact due to potential denial of service.
Potential Impact
For European organizations deploying IoT devices based on Espressif's esp-idf framework, this vulnerability poses a risk primarily to device availability and integrity during provisioning. Exploitation could cause device crashes or service interruptions, impacting operational continuity especially in critical infrastructure or industrial IoT scenarios. While confidentiality is not directly affected, denial of service on IoT endpoints could disrupt automation, monitoring, or control systems. The risk is heightened in environments where devices are provisioned via BLE in potentially untrusted or public areas, allowing remote attackers to trigger the vulnerability. This could affect sectors such as manufacturing, smart cities, healthcare, and utilities that rely on Espressif-based devices. The absence of known exploits reduces immediate risk but patching is essential to prevent future attacks.
Mitigation Recommendations
European organizations should immediately update esp-idf to patched versions 5.1.7 or later to remediate the vulnerability. For devices already deployed, firmware updates should be prioritized during maintenance windows. Network segmentation and BLE access controls can reduce exposure by limiting provisioning mode access to trusted personnel or secure environments. Monitoring BLE provisioning activity for unusual connection attempts can help detect exploitation attempts. Developers should review provisioning workflows to avoid enabling keep_ble_on=true unnecessarily and ensure proper lifecycle management of BLE services. Additionally, implementing runtime memory protection and watchdog timers can mitigate impact from unexpected crashes. Device manufacturers should communicate patches and mitigation guidance clearly to downstream integrators and customers.
Affected Countries
Germany, United Kingdom, France, Netherlands, Italy, Sweden
CVE-2026-25507: CWE-416: Use After Free in espressif esp-idf
Description
ESF-IDF is the Espressif Internet of Things (IOT) Development Framework. In versions 5.5.2, 5.4.3, 5.3.4, 5.2.6, and 5.1.6, a use-after-free vulnerability was reported in the BLE provisioning transport (protocomm_ble) layer. The issue can be triggered by a remote BLE client while the device is in provisioning mode. The vulnerability occurred when provisioning was stopped with keep_ble_on = true. In this configuration, internal protocomm_ble state and GATT metadata were freed while the BLE stack and GATT services remained active. Subsequent BLE read or write callbacks dereferenced freed memory, allowing a connected or newly connected client to trigger invalid memory acces. This issue has been patched in versions 5.5.3, 5.4.4, 5.3.5, 5.2.7, and 5.1.7.
AI-Powered Analysis
Technical Analysis
The vulnerability CVE-2026-25507 affects the Espressif IoT Development Framework (esp-idf), specifically in the BLE provisioning transport layer (protocomm_ble). In affected versions 5.1.6 through 5.5.2, when the device is in provisioning mode and provisioning is stopped with the parameter keep_ble_on set to true, the internal protocomm_ble state and GATT metadata are freed while the BLE stack and GATT services remain active. This leads to a use-after-free condition where subsequent BLE read or write callbacks dereference freed memory. A remote BLE client connected or newly connecting to the device can trigger this invalid memory access, potentially causing application crashes or denial of service. The vulnerability does not require privileges or authentication but does require user interaction in the form of a BLE connection attempt during provisioning mode. Espressif has patched this issue in versions 5.1.7, 5.2.7, 5.3.5, 5.4.4, and 5.5.3. No known exploits are currently reported in the wild. The CVSS 3.1 vector (AV:A/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H) indicates a medium severity with no confidentiality impact but low integrity and high availability impact due to potential denial of service.
Potential Impact
For European organizations deploying IoT devices based on Espressif's esp-idf framework, this vulnerability poses a risk primarily to device availability and integrity during provisioning. Exploitation could cause device crashes or service interruptions, impacting operational continuity especially in critical infrastructure or industrial IoT scenarios. While confidentiality is not directly affected, denial of service on IoT endpoints could disrupt automation, monitoring, or control systems. The risk is heightened in environments where devices are provisioned via BLE in potentially untrusted or public areas, allowing remote attackers to trigger the vulnerability. This could affect sectors such as manufacturing, smart cities, healthcare, and utilities that rely on Espressif-based devices. The absence of known exploits reduces immediate risk but patching is essential to prevent future attacks.
Mitigation Recommendations
European organizations should immediately update esp-idf to patched versions 5.1.7 or later to remediate the vulnerability. For devices already deployed, firmware updates should be prioritized during maintenance windows. Network segmentation and BLE access controls can reduce exposure by limiting provisioning mode access to trusted personnel or secure environments. Monitoring BLE provisioning activity for unusual connection attempts can help detect exploitation attempts. Developers should review provisioning workflows to avoid enabling keep_ble_on=true unnecessarily and ensure proper lifecycle management of BLE services. Additionally, implementing runtime memory protection and watchdog timers can mitigate impact from unexpected crashes. Device manufacturers should communicate patches and mitigation guidance clearly to downstream integrators and customers.
Affected Countries
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-02-02T18:21:42.486Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 69838cacf9fa50a62fa0938d
Added to database: 2/4/2026, 6:15:08 PM
Last enriched: 2/4/2026, 6:30:10 PM
Last updated: 2/6/2026, 10:18:49 PM
Views: 23
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Related Threats
CVE-2026-2069: Stack-based Buffer Overflow in ggml-org llama.cpp
MediumCVE-2026-25764: CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) in opf openproject
LowCVE-2026-25763: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in opf openproject
CriticalCVE-2026-2068: Buffer Overflow in UTT 进取 520W
HighCVE-2026-25760: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in BishopFox sliver
MediumActions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.