Skip to main content

MCUboot Espressif port CVE-2026-16669

| EUVDEUVD-2026-134824 LOW
Sensitive Information in Resource Not Removed Before Reuse (CWE-226)
2026-11-25 vulnerabilities@zephyrproject.org GHSA-jmj8-qqvq-jhqq
2.0
CVSS 3.1 · Vendor: zephyrproject
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain physical/JTAG or UART ROM access
  2. Delivery
    Target first-boot provisioning window
  3. Exploit
    Halt bootloader or capture RAM/core dump
  4. Execution
    Read un-zeroized XTS-AES key from stack
  5. Impact
    Recover flash-encryption key material

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V14 - Data Protection Sensitive info in resource not removed before reuse
Exploitation Conditions

Exploitation is possible ONLY on the MCUboot Espressif port (ESP32/ESP32S2/ESP32C3) built with CONFIG_SECURE_FLASH_ENC_ENABLED, and ONLY during the single first-boot provisioning pass when flash encryption is not yet enabled; on all subsequent boots the key and sector buffers are never created, so there is nothing to recover. Recovery further REQUIRES an out-of-band memory-disclosure primitive to be available during that one boot - JTAG/debug halt, UART ROM download, a core/crash dump, or a warm-boot RAM scrape. Strong limiting factors: under the recommended CONFIG_SECURE_FLASH_ENCRYPTION_MODE_RELEASE plus secure boot, all of those disclosure channels are fused off and no exposure exists; the eFuse key block is burned read+write-protected so the transient stack copy is the only readable copy; and where a disclosure channel is open (development builds), the attacker can usually already read the still-plaintext flash directly.

Impact

This is a genuine low-priority, defense-in-depth hardening gap, not an actionable emergency. The CVSS:3.1 vector (AV:P/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N, base 2.0) and the vuln.today 'monitor' decision label agree: exploitation needs physical/debug-local access (AV:P), is high-complexity (AC:H), and yields only limited confidentiality impact with no integrity or availability effect. No EPSS score was provided, the CVE is NOT on CISA KEV, and no public exploit or PoC reference is present in the input - no public exploit identified at time of analysis. All exploitation signals point the same direction (low real-world risk), with no conflict between them. The one caveat worth flagging: the single reference is tagged 'Denial Of Service,' which directly contradicts the CWE-226 information-exposure nature and the I:N/A:N vector - that tag is mislabeled and should be disregarded for triage. The residue (an XTS-AES flash-encryption key and one plaintext sector) is readable only during the one-time first-boot provisioning pass and only if an out-of-band RAM/stack disclosure primitive (JTAG halt, UART ROM download, core/crash dump, or warm-boot RAM scrape) is open; under the recommended CONFIG_SECURE_FLASH_ENCRYPTION_MODE_RELEASE plus secure boot those channels are fused off and no exposure exists. Even where a channel is open (development builds), an attacker able to scrape RAM can typically already read the still-plaintext flash directly, so the marginal confidentiality gain is small.

Exploit ScenarioDerived

During a device's one-time first-boot flash-encryption provisioning, an attacker with physical access to a development-configured ESP32/S2/C3 (JTAG or UART ROM download still enabled) halts the bootloader or captures a core/RAM dump and reads the freshly generated XTS-AES key (or the last plaintext sector) left un-zeroized on the bootloader stack. No public exploit or PoC is identified, and the attack requires a specific SoC/debug configuration plus precise timing within the single provisioning boot, so it is high-complexity and not demonstrated from source alone.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 25, 2026

MCUboot's Espressif port can leave a freshly generated XTS-AES flash-encryption key and the final plaintext flash sector in bootloader stack memory because two local buffers in boot/espressif/hal/src/flash_encrypt.c are never zeroized before their functions return. Exposure is limited to the ESP32/ESP32S2/ESP32C3 port built with CONFIG_SECURE_FLASH_ENC_ENABLED and only during the one-time first-boot provisioning pass; recovering the residue requires an already-available out-of-band memory-disclosure channel such as JTAG, UART ROM download, a crash dump, or a warm-boot RAM scrape, and release-mode fusing plus secure boot removes those channels entirely. Assessed as a low-severity defense-in-depth gap (CVSS 2.0, CWE-226), with no public exploit identified at time of analysis.

RemediationAI

No vendor-released patch was identified at time of analysis: the advisory states that no fix has been released and that an open pull request, https://github.com/mcu-tools/mcuboot/pull/2800, targets main. Track GHSA-jwgx-96h6-4m8v at https://github.com/mcu-tools/mcuboot/security/advisories/GHSA-jwgx-96h6-4m8v and apply PR #2800 or the resulting release once available. Until then, the effective mitigation is to provision production devices with CONFIG_SECURE_FLASH_ENCRYPTION_MODE_RELEASE plus secure boot so that JTAG/debug halt, UART ROM download, core/crash dumps, and warm-boot RAM scraping are fused off during the one-time provisioning boot; the trade-off is irreversible eFuse burning and loss of debug and recovery access. In development builds where a disclosure channel remains open, no complete software mitigation exists, so restrict physical access, close JTAG, disable UART ROM download, and avoid capturing crash or core dumps during the provisioning boot, accepting that these controls reduce but do not eliminate the out-of-band disclosure primitive required for recovery.

Affected VersionsENISA

mcuboot 1.9.0 ≤*

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

CWE-226 covers sensitive information remaining in memory before or after resource release, and this advisory describes exactly that: in check_and_generate_encryption_keys(), the generated XTS-AES flash-encryption key sits in the stack array keys[BLOCKS_NEEDED][32] at flash_encrypt.c:216, is filled by bootloader_fill_random() at :219, is consumed by esp_efuse_write_keys() at :223, and the function returns at :243 without a memset, bzero, or mbedtls_platform_zeroize. Separately, esp_flash_encrypt_region() uses a plaintext sector buffer buf[FLASH_SECTOR_SIZE/4] at :454 and returns at :480/:482 without scrubbing it. The same port already calls bzero for public_key_digests in boot/espressif/hal/src/secure_boot.c:75, so the omission is inconsistent with nearby practice rather than a stated policy. The affected code is scoped inside a check that short-circuits when flash encryption is already enabled, and boot/espressif/main.c:236-267 runs the provisioning path only when flash_encryption_enabled is false, so the sensitive buffers exist only during the single first-boot provisioning pass. The eFuse key block is burned read+write-protected, making the transient stack copy the only readable copy, and only for that one boot; under CONFIG_SECURE_FLASH_ENCRYPTION_MODE_RELEASE plus secure boot the disclosure channels are fused off. Real-world recovery depends on a specific SoC/debug configuration and is not exercisable from source alone. The supplied feed tag says Denial Of Service, but the advisory and assessed vector describe confidentiality-only impact with no integrity or availability effect.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (zephyrproject) PRIMARY 2.0 LOW
AV:P/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
vuln.today AI 2.0 LOW

Needs physical/debug (JTAG/UART) access (AV:P) and a precise, config-dependent window during one provisioning boot (AC:H); only a key/sector leaks (C:L, I:N/A:N), no auth needed (PR:N).

3.1 AV:P/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
4.0 AV:P/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (zephyrproject).

CVSS VectorVendor: zephyrproject

Attack Vector
Physical
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.1%
Top 99% exploitable
Prevalence
Medium
MCUboot is a common embedded/IoT bootloader, but only the Espressif port is affected
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

10
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Related Vulnerabilities in MCUboot Flash and Crypto Security Flaws

View all 4

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy