Use After Free Affecting espressif/esp-idf package, versions [,5.1.7)[5.2.1,6.0-beta2)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.2% (10th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-ESPRESSIFESPIDF-15220790
  • published5 Feb 2026
  • disclosed4 Feb 2026
  • creditMaxime Rossi Bellom, Ramtine Tofighi Shirazi

Introduced: 4 Feb 2026

CVE-2026-25507  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade espressif/esp-idf to version 5.1.7, 6.0-beta2 or higher.

Overview

Affected versions of this package are vulnerable to Use After Free in the protocomm_ble layer when provisioning is stopped with keep_ble_on = true. An attacker can cause invalid memory access by sending BLE read or write requests after the internal state and GATT metadata have been freed, while the BLE stack and GATT services remain active.

CVSS Base Scores

version 4.0
version 3.1