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

Status: published. Published: 2026-11-24. Updated: 2026-11-24.

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 ROM download, a core/crash dump, or a warm-boot RAM scrape — captured during that single provisioning boot. Under the recommended CONFIG_SECURE_FLASH_ENCRYPTION_MODE_RELEASE plus secure boot, those channels are fused off and no exposure exists.

The practical impact is a low-severity, defense-in-depth hardening gap: a flash-encryption key (and last plaintext sector) may linger in bootloader stack memory. Because the eFuse key block is burned read+write-protected, the transient stack copy is the only readable copy, and only during one boot; in a development build where a disclosure channel is open, an attacker with that capability can usually already read the still-plaintext flash directly, so the marginal confidentiality gain is small. Confirming real-world recovery depends on a specific SoC/debug configuration not exercisable from source alone.

## Remediation

No remediation reported in collected sources

## Affected products and versions

- mcu-tools / mcuboot (mcuboot): ≥ 1.9.0; ≤ * (affected, semver). Source: CNA: zephyr

## Severity and prioritization

- CVSS 3.1: 2 (low); CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N; source: CNA: zephyr

- CISA KEV: No listing in collected sources

- EPSS: Not available

- SSVC: Not available

- Weaknesses: CWE-226

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://github.com/mcu-tools/mcuboot/security/advisories/GHSA-jwgx-96h6-4m8v (CNA: zephyr)

## Provenance

- CNA: zephyr: https://www.cve.org/CVERecord?id=CVE-2026-16669; retrieved 2026-11-25; source updated 2026-11-24

Revision: 059980acad1d5d5ab93b13815ea3b2d3154d682c0d31a961a90f46d22ee4345c

Canonical: https://y2.dev/cve/CVE-2026-16669

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.