CVE-2026-113780

ESF-IDF: Unvalidated Stack Pointer at the ESP-TEE Privilege-Switch Boundary

Published Nov 4, 2026 CVSS 3.1 · 9.3 Critical EPSS < 1% KEV · Not listed
Description
ESF-IDF is the Espressif Internet of Things (IOT) Development Framework. From 5.5.5 until 5.5.6, 6.0.4, and 6.1.1, the esp_tee trap entry in esp_tee_vectors_plic.S and esp_tee_vectors_clic.S saves a caller-controlled register frame through the REE-supplied stack pointer before switching to the trusted TEE stack or validating the pointer. A local unprivileged REE application can direct this machine-mode write into TEE-exclusive memory on ESP32-C5, ESP32-C6, ESP32-C61, and ESP32-H2 devices, breaking the REE/TEE isolation boundary and potentially corrupting TEE control-flow data for code execution, denial of service, or system crashes. Both secure-service ecall and interrupt entry paths contain the vulnerable ordering. This issue is fixed in version 5.5.6 and is scheduled to be fixed in versions 6.0.4 and 6.1.1.

Analysis

AI-generated

Technical impact

The ESP-IDF framework contained a flaw where a local unprivileged REE application could control a write through the REE-supplied stack pointer before a switch to the trusted TEE stack. This unvalidated stack pointer allowed the REE program to reach TEE‑exclusive memory on ESP32‑C5, ESP32‑C6, ESP32‑C61, and ESP32‑H2 devices, breaking the isolation boundary. The consequence is potential corruption of TEE control‑flow data, which could lead to remote code execution, denial of service, or system crashes. The weakness aligns with CWE‑787 (Out‑of‑Bounds Write) and CWE‑822 (Buffer Unbound Write).

Affected Systems

The affected products are Espressif’s ESP‑IDF IoT development framework. Versions from 5.5.5 up to, but not including, 5.5.6, as well as 6.0.4 and 6.1.1, contain the vulnerable ordering. Devices impacted are the ESP32‑C5, ESP32‑C6, ESP32‑C61, and ESP32‑H2. Any firmware built with these releases on the listed silicon is vulnerable.

Risk and Exploitability

With a CVSS score of 9.3 the vulnerability poses a high‑severity risk. The EPSS score is not available, and the vulnerability is not yet listed in CISA KEV. Attackers could exploit the issue locally from any REE code and leverage the untrusted stack pointer write to corrupt TEE memory. The exploit requires the attacker to have control over a non‑privileged REE application on the same device, making the risk highest in environments where untrusted user code runs on the device. The likely attack vector is a local REE application performing a crafted write before the privilege switch.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade ESP-IDF to version 5.5.6, 6.0.4, or 6.1.1, which contains the fixed trap entry logic.
  • Rebuild and flash the device firmware with the updated ESP-IDF so that the new trap handling is in place.
  • If an immediate upgrade is not possible, isolate the device from untrusted unprivileged REE applications or revoke their ability to perform arbitrary writes to TEE memory.

Generated by OpenCVE AI on November 4, 2026 at 20:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Espressif
Espressif esp-idf
Vendors & Products Espressif
Espressif esp-idf
Type Values Removed Values Added
Description ESF-IDF is the Espressif Internet of Things (IOT) Development Framework. From 5.5.5 until 5.5.6, 6.0.4, and 6.1.1, the esp_tee trap entry in esp_tee_vectors_plic.S and esp_tee_vectors_clic.S saves a caller-controlled register frame through the REE-supplied stack pointer before switching to the trusted TEE stack or validating the pointer. A local unprivileged REE application can direct this machine-mode write into TEE-exclusive memory on ESP32-C5, ESP32-C6, ESP32-C61, and ESP32-H2 devices, breaking the REE/TEE isolation boundary and potentially corrupting TEE control-flow data for code execution, denial of service, or system crashes. Both secure-service ecall and interrupt entry paths contain the vulnerable ordering. This issue is fixed in version 5.5.6 and is scheduled to be fixed in versions 6.0.4 and 6.1.1.
Title ESF-IDF: Unvalidated Stack Pointer at the ESP-TEE Privilege-Switch Boundary
Weaknesses CWE-787
CWE-822
References
Metrics cvssV3_1

{'score': 9.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 5, 2026, 7:10 PM
Reserved
Oct 20, 2026, 5:39 PM
Status
Awaiting Analysis
Published
Nov 4, 2026, 7:17 PM
Modified
Nov 12, 2026, 10:18 PM