Skip to content
FlawDB
Sign in

CVE-2026-127928

LOW 2.0EPSS 0%

AES image key left on the stack after serial-recovery encrypted-image handling in MCUboot

Mitigation

  • Upgrade mcuboot to 2.5.0 or later.

Who should check

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

Vulnerability facts

Affected
mcu-tools mcuboot >= 1.9.0, < 2.5.0
Fixed in
mcu-tools mcuboot 2.5.0
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
2.0 (v3.1, CNA)CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:NOpen in CVSS calculator
Show all 8 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
EPSS
0.11% chance of exploitation in 30 days (percentile 0, 2026-11-28)
CWE
CWE-226
Published
Modified

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

Package / productAffectedFixedSource
mcu-tools mcuboot>= 1.9.0, < 2.5.0—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

See all
Vulnerabilities, newest first
SeverityIdentifier / vulnerabilityTechnologySignalsAge
MEDIUM 4.0CVE-2026-16670

Out-of-bounds read in the PSA ECDSA signature DER parser on a malformed signature TLV before verification

mcu-tools
EPSS 5%
LOW 2.0CVE-2026-16669

Espressif flash-encryption provisioning leaves eFuse key material and plaintext sector buffers on the bootloader stack

mcu-tools
EPSS 2%
MEDIUM 6.2CVE-2026-16667

Cypress/PSoC6 flash backend fails to bounds-check flash accesses, allowing pre-auth out-of-bounds reads

mcu-tools
EPSS 14%
MEDIUM 5.7CVE-2026-16666

MCUboot swap resume trusts a flash-resident swap_size, allowing pre-authentication out-of-bounds flash operations

mcu-tools
EPSS 6%
LOW 2.4CVE-2026-16668

Unbounded CBOR recursion in MCUboot serial recovery allows pre-authentication stack exhaustion

mcu-tools
EPSS 44%
Sponsors