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.
Published: 2026-11-04
Score: 9.3 Critical
EPSS: n/a
KEV: No
Impact: Remote Code Execution and Denial of Service via TEE isolation breakout
Action: Immediate Patch
AI Analysis

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.

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

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 yet.

History

Wed, 04 Nov 2026 21:00:00 +0000

Type Values Removed Values Added
First Time appeared Espressif
Espressif esp-idf
Vendors & Products Espressif
Espressif esp-idf

Wed, 04 Nov 2026 19:15:00 +0000

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'}


Subscriptions

Espressif Esp-idf
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-11-04T19:04:21.450Z

Reserved: 2026-10-20T17:39:41.372Z

Link: CVE-2026-113780

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-04T19:17:18.493

Modified: 2026-11-04T19:17:18.493

Link: CVE-2026-113780

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-04T20:45:07Z

Weaknesses