CVE-2026-16669 - Espressif flash-encryption provisioning leaves eFuse key material and plaintext sector buffers on the bootloader stack

Vulnerability · Reported by NVD · · CWE-226

Severity
Low Risk score 20/100
CVSS
2.0 v3.1 · from NVD
Exploit chance (EPSS)
0.15% Higher than 2% of CVEs
Known exploited
No Not in CISA KEV

Summary

MCUboot's Espressif port omits zeroization of two sensitive stack buffers in boot/espressif/hal/src/flash_encrypt.c. In check_and_generate_encryption_keys(), the freshly generated XTS-AES flash-encryption key is held in the stack array keys[BLOCKS_NEEDED][32] (flash_encrypt.c:216), written to eFuse via esp_efuse_write_keys(), and the function returns (flash_encrypt.c:243) without scrubbing it. In esp_flash_encrypt_region(), the plaintext flash sector buffer buf (flash_encrypt.c:454) retains the last sector's cleartext at both the success and flash_failed returns. Neither path performs a memset/bzero/mbedtls_platform_zeroize, even though the same port already does bzero for key digests in boot/espressif/hal/src/secure_boot.c. The affected code runs only on the Espressif port with CONFIG_SECURE_FLASH_ENC_ENABLED, and only during the one-time first-boot provisioning pass when flash encryption is not yet enabled (boot/espressif/main.c); on subsequent boots the buffers are never created. Recovering the residue requires an out-of-band stack/RAM-disclosure primitive — JTAG/debug halt, UART R

How this vulnerability can be exploited

An attacker can exploit this vulnerability with physical access to the device, without any login, and without any action from a user. Attack complexity is high, meaning specific conditions must exist first.

Is it being exploited?

The EPSS model estimates a 0.15% chance this CVE will be exploited in the next 30 days, which is low and higher than 2% of all published CVEs.

Patch priority and what to do

Patch during routine updates. Lower severity, but keep it on your list. 1) Check whether you run the affected product and version. 2) Apply the vendor update or patch listed in the advisory. 3) Review logs for signs of exploitation since the publication date.

CVSS vector

CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N

See what each part means in the official CVSS calculator ↗

Tags

CVE-2026-16669

Sources & references

How this data is collected: methodology & sources.

Run this software? Get free alerts for new vulnerabilities →

Need to block attackers? Free hourly IOC blocklists (IPs, domains, URLs, hashes) →

Open the live threat dashboard →

Subscribe via RSS.