TOCTOU Vulnerability in ESP-IDF Bootloader Could Bypass Anti-Rollback Protection
CVE-2024-28183

6.1MEDIUM

Key Information:

Vendor
Espressif
Status
Vendor
CVE Published:
25 March 2024

Summary

ESP-IDF is the development framework for Espressif SoCs supported on Windows, Linux and macOS. A Time-of-Check to Time-of-Use (TOCTOU) vulnerability was discovered in the implementation of the ESP-IDF bootloader which could allow an attacker with physical access to flash of the device to bypass anti-rollback protection. Anti-rollback prevents rollback to application with security version lower than one programmed in eFuse of chip. This attack can allow to boot past (passive) application partition having lower security version of the same device even in the presence of the flash encryption scheme. The attack requires carefully modifying the flash contents after the anti-rollback checks have been performed by the bootloader (before loading the application). The vulnerability is fixed in 4.4.7 and 5.2.1.

Affected Version(s)

esp-idf < 4.4.7 < 4.4.7

esp-idf >= 5.0, <= 5.0.6 <= 5.0, 5.0.6

esp-idf >= 5.1, <= 5.1.3 <= 5.1, 5.1.3

References

CVSS V3.1

Score:
6.1
Severity:
MEDIUM
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Physical
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.