PT-2026-158557

CVE-2026-16669

·

تاريخ النشر

2026-11-24

·

تاريخ التحديث

2026-11-25

الوصف من

CVSS 3.1
2.0
منخفضة
المقاييسAV:P/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
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.
قابلية الاستغلال
إصلاح
المورّدون
المنتجات المتأثرة
المعرّفات ذات الصلة
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾