Espressif published bug advisory AR2026-009 on 20 November 2026. It concerns the ESP32-P4 only: under certain conditions, the ESP-IDF bootloader starts the application without invalidating stale data in the chip's L1 cache, so the application reads old cached data instead of what is actually in flash. Espressif says no other chip series is affected.
What goes wrong
The stale data is read very early, while the application sets up things such as the PMU (power management) parameters and the memory map. The advisory lists these symptoms:
- the application stalls during startup;
- incorrect power parameters are configured;
- an assertion fails at startup, for example the size check on
g_mmu_mem_regions, and the chip resets; after the reset it sometimes recovers and sometimes fails again; - other failures caused by reading stale data from the cache.
What makes the bug hard to pin down is that it depends on how the segments of the application image are laid out, and the symptoms are not deterministic. Rebuilding the image, changing the configuration or using a different build environment can all change the behaviour. Espressif stresses that an image which booted fine before is still at risk.
Who is most exposed
The bootloader normally runs a deobfuscation step that happens to push stale data out of the cache. Espressif therefore treats two setups as high risk:
- image validation is skipped in the bootloader (
BOOTLOADER_SKIP_VALIDATE_ALWAYS,BOOTLOADER_SKIP_VALIDATE_ON_POWER_ONorBOOTLOADER_SKIP_VALIDATE_IN_DEEP_SLEEP), because deobfuscation is skipped as well; - all application segments loaded into L2MEM, including
.dataand.text, are shorter than 64 KB, in which case deobfuscation may not evict everything.
The first Secure Boot start is also unsafe, because the public key digest is computed after deobfuscation and leaves stale data behind. With physical eFuses that happens once per device, with virtual eFuses at every start. If Secure Boot and Flash Encryption are enabled together on the first boot, the application is not affected: Flash Encryption resets the chip after writing the key instead of starting the application directly.
Affected versions and fixes
| ESP-IDF branch | Affected | Fixed in |
|---|---|---|
| release/v6.1 | v6.1 | v6.1.1 |
| release/v6.0 | v6.0-v6.0.3 | v6.0.4 (not released yet) |
| release/v5.5 | v5.5-v5.5.6 | v5.5.7 (not released yet) |
| release/v5.4 | v5.4-v5.4.4 | v5.4.5 (not released yet) |
| release/v5.3 | v5.3-v5.3.6 | v5.3.7 (not released yet) |
The fix commits landed on the release branches on 5 November. ESP-IDF v6.1.1, out since 16 November, already includes it: its release notes mention stale flash data left in the L1 cache after the bootloader remaps memory, with failures in esp_mmu_map_init and pmu_init. The fix doesn't change any API, and it works if either the bootloader or the application contains it. For devices already in the field whose bootloader can't be updated, an OTA update of the application is enough.
What it means for ESPHome users
ESPHome 2026.11.0 recommends ESP-IDF 5.5.6 for ESP32 builds, which is inside the affected range, and 5.5.7 hasn't been released. For now, ESP32-P4 boards running ESPHome are built with an affected version. Espressif strongly recommends updating and rebuilding in the high-risk setups and recommends it for everyone else too, to remove what it calls a low-probability risk. If a P4 board hangs or resets at random during startup, this bug is one cause worth checking. Espressif asks anyone who hits it to send the ESP-IDF version or commit, the chip model, whether Secure Boot and Flash Encryption are enabled, and the boot log.