Learn/esp-idfsecurityesp32-c6

ESP-TEE Vulnerability: Does It Reach Your ESP32-C6 Home Board?

Espressif rated the ESP-TEE vulnerability critical, but it only touches four chips with ESP-TEE switched on. How to check your ESP32-C6 board, and what to rebuild.

Signed by M·
Brick shelf where a small green board sits beside a tiny brick vault holding a bright orb, with one golden thread running to a dimmer orb on a desk
Does the ESP-TEE vulnerability affect my ESP32 home board?

Only if the chip is an ESP32-C5, C6, C61 or H2 and the firmware was built with ESP-TEE enabled on an affected ESP-IDF version: v6.1, v6.0.3 or v5.5.5. ESP-TEE is an opt-in setting, so many boards never use it. If yours does, rebuild on ESP-IDF v6.1.1 or v5.5.6, since Espressif lists no runtime workaround.

On November 4, 2026, a critical ESP-TEE vulnerability got a CVE number, and a lot of ESP32 owners reasonably wondered whether their home board was on fire. The short version is: probably not. The flaw lives in an optional security feature on four newer chips, and most hobby builds never switch that feature on. The longer version takes a few minutes to check, and this page walks through it so you do not have to guess.

I did not test any of this on a board. Everything below comes from Espressif's advisory, release notes and documentation, which I link as I go.

What the ESP-TEE vulnerability actually is

Espressif's security advisory GHSA-49x8-xqjg-2pjg, rated Critical at CVSS 9.3 and tracked as CVE-2026-113780, covers the esp_tee component. It reads like this in plain words. When your app calls into the trusted side, the entry code saved the caller's registers using a stack pointer the caller supplied, before checking that pointer. A bad pointer aimed at the trusted side's memory could make that write land there. The fix validates the pointer first, on both the call path and the interrupt path.

The advisory is clear about who is exposed. It affects chips with ESP-TEE support: the ESP32-C5, ESP32-C6, ESP32-C61 and ESP32-H2. The attacker needs local code execution in the normal application, and no special privileges. The score's attack vector is Local, which is different from someone reaching in over the network.

Then there is the word "optional". Espressif's ESP-TEE user guide says that when enabled, ESP-TEE runs in parallel with your ESP-IDF application, and the project option that turns it on is CONFIG_SECURE_ENABLE_TEE. If your firmware never set it, the vulnerable entry code is not what your board is running. That is my reading of the guide, so confirm it on your own build.

How to check your own board, step by step

Go in this order. Most boards drop out at step one or two.

Step one: is the chip one of the four?

Look at the module or dev board name. An ESP32-C6-DevKitC or any ESP32-H2 board counts. The classic ESP32, S2, S3 and C3 are not on the advisory's list. If you are unsure which chip a board carries, esptool's chip-id command, described in the esptool docs, reads it over USB. If you are still choosing hardware, the guide to choosing an ESP32 board covers the families.

Step two: did your build turn ESP-TEE on?

Open the sdkconfig of the project you built from and search for CONFIG_SECURE_ENABLE_TEE. If it is missing or set to no, you are done: this advisory is not about your firmware. If it says y, the ESP-TEE vulnerability may apply to you, so keep going. A firmware someone else built, say a sample or a vendor image, needs their release notes, because you cannot tell from the binary alone.

Step three: which ESP-IDF version built it?

The advisory lists v6.1, v6.0.3 and v5.5.5 as affected. In firmware, esp_get_idf_version() returns the version string, and Espressif's system API reference says it matches the IDF_VER build variable. The Bluetooth advisory check shows the same lookup in more detail, so I will not repeat it here.

What to rebuild, and what to watch for

If steps one to three all said yes, you have work to do. If any said no, you can stop and move on with your afternoon.

Pick the release that carries the fix

The advisory's patched list is v6.1.1, v6.0.4 and v5.5.6. ESP-IDF v6.1.1 was published on November 16, 2026, and its security section includes a TEE hardening line about copying secure-service arguments into TEE memory before use. It does not name the CVE, so treat the advisory as the authority on which release fixes what. I also found no v6.0.4 release on November 26, 2026, even though the advisory lists it. For v6.0 projects, the advisory suggests cherry-picking the fix commit, or you can move to 6.1.1.

One small oddity: the advisory text still says v6.1.1 is "yet to be released" even though it is out. The patched list is the part to trust.

Read the breaking changes before you bump

A point release is not always a free swap. The v6.1.1 notes list breaking changes, including a fix to Content-Length handling in the HTTP server that adds a body-size limit setting, and signature changes in the BLE audio functions. It also makes esp_https_ota refuse plain HTTP unless you allow it, which the OTA guide already covers. Rebuild, flash over USB, and run your usual restart check, like the one in the power-cycle test.

Keep the risk in proportion

Because the attack needs code running on the board already, the realistic worry is a device that loads third-party code or has another bug that gives someone a foothold. A sensor that runs only your own firmware and never turns on ESP-TEE is a different case from a board you use to guard keys. I make no claim here about how the house stack uses ESP-TEE, because I have not verified it. For the owner side of updating, see how ESP32 devices join a MATA home computer, and keep the flash and monitor loop handy for the rebuild.

FAQ

Quick answers for builders evaluating this technology.

What is ESP-TEE?

ESP-TEE is Espressif's Trusted Execution Environment for some RISC-V chips. When enabled, it runs next to your normal ESP-IDF application and keeps things like keys and attestation out of the application's reach. Espressif's guide calls the two sides the TEE, which is protected, and the REE, where your app runs.

Can someone exploit this over Wi-Fi or Bluetooth?

Espressif's advisory describes a local attack: the attacker needs code already running in the application side, and no TEE privileges. It scores the attack vector as Local. That makes it a problem for devices that run code you did not write or can be made to run someone else's code, not a remote break-in on its own.

Is there a workaround if I cannot rebuild right now?

No. The advisory states there is no runtime workaround. Your options are to update to an ESP-IDF release that carries the fix, or to cherry-pick the listed fix commit onto your own branch. If your firmware does not enable ESP-TEE, the vulnerable code is not part of your build.

Which ESP-IDF versions have the fix?

The advisory lists v6.1.1, v6.0.4 and v5.5.6 as patched. v6.1.1 was published on November 16, 2026 and v5.5.6 on October 16, 2026. When I checked on November 26, 2026, I could not find a v6.0.4 release, so v6.0 users need the fix commit or a move to 6.1.1.

How do I know which ESP-IDF version my firmware was built with?

In firmware, esp_get_idf_version() returns the ESP-IDF version used to compile the application, the same value as the IDF_VER build variable. In your project, idf.py --version reports the installed framework. A binary you did not build needs its maker's release notes, since the version is not something to guess.