Skip to main content

MCUboot EUVDEUVD-2026-124810

| CVE-2026-127928 LOW
Sensitive Information in Resource Not Removed Before Reuse (CWE-226)
2026-11-13 zephyr
2.0
CVSS 3.1 · Vendor: zephyr
View

Attack ChainAIDerived

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

  1. Access
    Obtain physical access to affected device
  2. Exploit
    Read device RAM via debug port or retained RAM
  3. Execution
    Locate residual AES content key in dead stack memory
  4. Impact
    Decrypt the protected firmware image plaintext

Vulnerability Assessment

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

Exploitation requires that the target firmware be built with encrypted-image support (MCUBOOT_ENC_IMAGES / Zephyr CONFIG_BOOT_ENCRYPT_IMAGE) combined with serial recovery, on MCUboot versions 1.9.0 through 2.4.0. The key is left on the stack when an encrypted image is uploaded to the primary slot over the serial-recovery protocol (bs_upload -> boot_handle_enc_fw -> decrypt_image_inplace), or when the image list/state is queried while an encrypted image sits in the secondary slot (boot_image_validate_encrypted). The decisive limiting factor is that no recovery-protocol or remote channel returns this memory: the attacker must independently possess a separate memory-read capability - a hardware debug port (e.g. SWD/JTAG) or access to retained/un-cleared RAM across reset - and typically physical access to the device. Recovered material is further limited to a single image's per-build-random AES content key; the long-term private decryption key is not exposed.

Impact

All signals converge on low real-world risk, and they are mutually consistent rather than conflicting. The vendor CVSS of 2.0 (CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N) reflects a physical attack vector, high attack complexity, scope-unchanged, and only low confidentiality impact with no integrity or availability impact - i.e. a residual-secret cleanup defect (CWE-226), not a directly exploitable code path. The vuln.today Decision label is 'monitor', the weakest urgency tier, which agrees with the low CVSS. This CVE is not on CISA KEV (no confirmed active exploitation), no EPSS score was supplied, and the original reporter's PoC section was empty, so there is no public exploit identified at time of analysis. Critically, the vulnerability is not self-contained: by the advisory's own statement, 'No remote or recovery-protocol channel that returns this memory is known, so exploitation requires a separate memory-read capability.' The CVSS vector and the description therefore agree - AV:P is justified because recovery of the leaked AES key depends on an out-of-band physical/debug RAM read, not on the recovery protocol itself. The impact is also bounded: a recovered key decrypts only the single, per-build-random AES content key for one image, and the device's long-term private decryption key is explicitly not exposed. Net: this is a genuine but low-priority defensive-depth hardening fix, not a high-CVSS-but-overstated issue - it is correctly rated low and warrants routine patching, not emergency response.

Exploit ScenarioDerived

An attacker with physical possession of a device running an affected MCUboot build (encrypted images plus serial recovery) attaches to a debug port, or reads retained/un-cleared RAM after a warm reset, and scans dead stack memory for the per-image AES content key that decrypt_image_inplace() or boot_image_validate_encrypted() left behind. Using that key, the attacker decrypts the corresponding encrypted firmware image to recover its plaintext and any embedded trade secrets. No public exploit code exists, and the attack is only possible because of a pre-existing, separate memory-read capability - the MCUboot flaw itself exposes no remote or protocol-reachable channel to the leaked memory.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 13, 2026

MCUboot 1.9.0 through 2.4.0 built with encrypted-image support (MCUBOOT_ENC_IMAGES / Zephyr CONFIG_BOOT_ENCRYPT_IMAGE) together with serial recovery leaves a per-image AES content key in dead stack memory, allowing an attacker who can later read device RAM - via a debug port or retained memory across reset - to recover the key and decrypt protected firmware images. The leak occurs in decrypt_image_inplace() during a primary-slot upload over the recovery protocol and in boot_image_validate_encrypted() when image list or state is queried with an encrypted image in the secondary slot; the stack-local struct boot_status carrying enckey[] is never wiped, and early error returns bypass the boot_enc_zeroize()/expanded-key-context cleanup. The exposure is constrained: no recovery-protocol or remote channel returns this memory (CVSS 3.1 base score 2.0, AV:P/AC:H, C:L, no integrity or availability impact), only the single per-build image content key is exposed rather than the device's long-term private decryption key, and no public exploit has been identified at time of analysis. A vendor fix is available in MCUboot 2.5.0.

RemediationAI

Vendor-released patch: MCUboot 2.5.0, delivered upstream as commit 411949f830724617fbc08b9b32f0a45ba0c80baf (PR #2734) - upgrade any 1.9.0-2.4.0 tree that builds encrypted images with serial recovery, and confirm the release line you track has taken the backport, since lines without it remain affected (advisory: https://github.com/mcu-tools/mcuboot/security/advisories/GHSA-hqmg-jwp9-8cf8). Where updating is not immediately possible, the exposure can be removed by not shipping the combination: dropping MCUBOOT_ENC_IMAGES / CONFIG_BOOT_ENCRYPT_IMAGE from builds that also enable serial recovery, or disabling the serial-recovery upload and image list/state handlers on encrypted-image products, at the cost of losing encrypted-image support or field recovery respectively. Because exploitation additionally requires an independent memory-read path, restricting debug access (disabling or locking SWD/JTAG and enforcing debug authentication on production units) and ensuring RAM is scrubbed on the reset/application hand-off for the platforms in question limit recoverability of the residue, though these are compensating controls rather than a substitute for the fix and depend on SoC and boot-flow support.

Affected VersionsENISA

mcuboot 1.9.0 <2.5.0

Affected Packages

euvd mcuboot fix: 2.5.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

MCUboot's serial recovery can accept an encrypted firmware image in the primary slot, in which case boot_handle_enc_fw() calls decrypt_image_inplace() (boot/boot_serial/src/boot_serial_encryption.c) to decrypt sectors in place; boot_image_validate_encrypted() performs the analogous validation when the image list or state commands encounter an encrypted secondary-slot image. Both routines keep a stack-local struct boot_status, whose enckey[BOOT_NUM_SLOTS][BOOT_ENC_KEY_ALIGN_SIZE] field (boot/bootutil/src/bootutil_priv.h) is filled by boot_enc_load() with the decrypted raw AES content key before boot_enc_set_key() copies it into the encryption backend's context. This is CWE-226 (sensitive information in resource not removed before reuse): the structure was never cleared on any exit path, and a decrypt failure inside the per-sector loop of decrypt_image_inplace() returned early via FIH_RET, skipping the total_out: cleanup so the expanded AES key schedule (enc_data) also survived on the stack; the error paths of boot_image_validate_encrypted() likewise skipped boot_enc_zeroize(). The flaw is inherited from 953a76180dcc (v1.9.0, originally in boot/zephyr/single_loader.c) and moved unchanged into boot_serial_encryption.c with c9fa60886b39 (v2.0.0); the file is only compiled when CONFIG_BOOT_ENCRYPT_IMAGE is set. The upstream commit 411949f8 routes the error returns through the existing cleanup labels and adds bootutil_wipe_memory(&_bs, sizeof(_bs)) - the volatile wipe helper in boot/bootutil/src/bootutil_misc.c - so the key material no longer persists after return.

Know when Mcuboot gets its next vulnerability

  • 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 (zephyr) 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

AV:P and AC:H because recovery needs a separate physical/debug RAM-read capability the flaw itself does not provide; C:L for one per-image key only; I:N/A:N as no modification or disruption results.

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:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (zephyr).

CVSS VectorVendor: zephyr

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

DescriptionCVE.org

In MCUboot's serial-recovery encrypted-image support (boot/boot_serial/src/boot_serial_encryption.c), decrypt_image_inplace() and boot_image_validate_encrypted() each keep a stack-local struct boot_status. boot_enc_load() writes the plaintext per-image AES key into its enckey[] field. Neither function cleared this structure before returning. In addition, a decrypt failure inside the per-sector loop of decrypt_image_inplace() returned early and skipped the total_out: cleanup, which left the expanded AES key context (enc_data) on the stack as well. The error paths of boot_image_validate_encrypted() similarly skipped boot_enc_zeroize().

The affected code is built when encrypted images (MCUBOOT_ENC_IMAGES, Zephyr CONFIG_BOOT_ENCRYPT_IMAGE) are combined with serial recovery. It runs when an encrypted image is uploaded to the primary slot over the recovery protocol, and when the image list or state is queried while an encrypted image is in the secondary slot. After these functions return, the image's AES content key remains in dead stack memory. An attacker who can later read device RAM, for example through a debug port or retained RAM, can recover it.

This weakens the confidentiality of image-encryption keys within the bootloader trust boundary. A recovered key exposes the plaintext of the encrypted firmware image it protects. The device's long-term private decryption key is not exposed. No remote or recovery-protocol channel that returns this memory is known, so exploitation requires a separate memory-read capability.

Threat Intelligence Overview

EPSS Score
0.1%
Top 100% exploitable
Prevalence
Medium
MCUboot is a common embedded/IoT secure bootloader, not universally deployed
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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 Yes
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· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Low

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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