#VU54288 Time-of-check Time-of-use (TOCTOU) Race Condition in ESP-IDF


Published: 2021-06-21 | Updated: 2022-01-26

Vulnerability identifier: #VU54288

Vulnerability risk: Low

CVSSv3.1: 2.9 [CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N/E:U/RL:O/RC:C]

CVE-ID: CVE-2021-27926

CWE-ID: CWE-367

Exploitation vector: Local

Exploit availability: No

Vulnerable software:
ESP-IDF
Server applications / Other server solutions

Vendor: Espressif Systems

Description

The vulnerability allows a local user to disable data encryption.

The vulnerability exists due to a potential physical access TOCTOU attack that can be used to remove encrypted partition flag in partition table. A local user can disable encryption and gain access to sensitive information.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

ESP-IDF: 4.0 - 4.2.1


External links
http://github.com/espressif/esp-idf/releases/tag/v4.2.2


Q & A

Can this vulnerability be exploited remotely?

No. This vulnerability can be exploited locally. The attacker should have authentication credentials and successfully authenticate on the system.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability