Time-of-check Time-of-use (TOCTOU) Race Condition in ESP-IDF - CVE-2024-28183
Published: March 25, 2024 / Updated: May 13, 2026
ESP-IDF
Detailed vulnerability description
The vulnerability allows an attacker with physical access to bypass anti-rollback protection.
The vulnerability exists due to a time-of-check time-of-use race condition in the ESP-IDF bootloader anti-rollback scheme when verifying and loading the application from flash. An attacker with physical access can carefully modify flash contents after the anti-rollback checks and before the application is loaded to bypass anti-rollback protection.
In the presence of flash encryption, exploitation can allow booting a past passive application partition with a lower security version from the same device.