# CVE-2026-127928: AES image key left on the stack after serial-recovery encrypted-image handling in MCUboot

- **Severity:** LOW 2.0
- **CVSS:** 2.0 (v3.1, CNA) `CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N`
- **CVSS metrics:** Attack vector: Physical; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.11% (percentile 0, 2026-11-28)
- **CWE:** CWE-226
- **Published:** 2026-11-13T00:22:56.789Z
- **Modified:** 2026-11-17T17:18:01.677Z

## Who should check

- Anyone running mcu-tools mcuboot \>= 1.9.0, \< 2.5.0

## Description

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.

## Affected and fixed versions

- mcu-tools mcuboot: \>= 1.9.0, \< 2.5.0 (cvelist)

## Mitigation

- Upgrade mcuboot to 2.5.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-127928. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-127928.md
Affected: mcu-tools mcuboot >= 1.9.0, < 2.5.0
Fixed in: mcu-tools mcuboot 2.5.0

Steps:
1. Search this machine and project for mcu-tools mcuboot: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-127928 being exploited?

There is no confirmed exploitation: CVE-2026-127928 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.11% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-127928?

Low: CVSS 2.0 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-127928?

mcu-tools mcuboot \>= 1.9.0, \< 2.5.0.

### Is there a fix for CVE-2026-127928?

Yes. Fixed in mcu-tools mcuboot 2.5.0. Upgrade mcuboot to 2.5.0 or later.

### How do I check if I'm affected by CVE-2026-127928?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/mcu-tools/mcuboot/security/advisories/GHSA-hqmg-jwp9-8cf8>
- patch: <https://github.com/mcu-tools/mcuboot/commit/411949f830724617fbc08b9b32f0a45ba0c80baf>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-127928>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-127928> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-127928>
