Skip to content

mcuboot

AES key schedule not cleared by the TinyCrypt AES-CTR backend in MCUboot bootutil

CVE-2026-128091Published 13 Nov 2026, 00:22 UTC

Real-world risk

0.1/ 10Low

Routine

PreliminaryFrom the CVSS vector only · confidence low

CVSS

2.0

scored by the vendor (CNA), CVSS 3.1

In plain words

No plain-language summary yet. The original description is below.

Original description (from zephyr)

When MCUboot is built with the TinyCrypt crypto backend (MCUBOOT_USE_TINYCRYPT), bootutil_aes_ctr_drop() in boot/bootutil/include/bootutil/crypto/aes_ctr_tinycrypt.h was an empty stub. The AES-CTR context for this backend is the fully expanded AES-128 key schedule (struct tc_aes_key_sched_struct). Generic code relies on this hook to release and clear key state, so with TinyCrypt nothing was cleared. The mbedTLS and PSA backends do free or destroy their key state here. As a result, boot_state_clear(), which boot_go() calls before handing off to the application, left the image's AES content-encryption key schedule in the static boot_data state. This is the case after an encrypted upgrade in single-image builds, where boot_enc_zeroize() is not called. boot_decrypt_key() likewise left the ECIES-derived key-encryption key schedule on the stack. The affected build uses MCUBOOT_ENC_IMAGES with TinyCrypt, which is the default ECDSA and Ed25519 backend in the Zephyr port. The first AES-128 round key equals the cipher key, so anyone who can read the leftover bootloader RAM after boot can recover the image content key and decrypt that encrypted image. That includes a physical attacker with debug or RAM access, or code later running on the device. This weakens image-encryption key confidentiality (and so the confidentiality of the encrypted image's plaintext). The device's long-term private decryption key is not exposed, and image authenticity is not affected. The fix wipes the context with bootutil_wipe_memory().

Am I affected?

ProductAffected versions (from the sources)Fixed in
mcubootNiche>= 1.3.0, < 2.5.02.5.0

What to do

Update to a fixed version: 2.5.0.

Why this score

FactorValueEvidence×
ImpactMinorReflected XSS, CSRF with low effect, open redirect, minor leakFrom the CVSS vector0.30
Attacker positionPhysicalMust touch the deviceFrom the CVSS vector0.10
Privileges neededNoneNo accountFrom the CVSS vector1.00
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityHardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bugFrom the CVSS vector0.45

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 0.1% chance of exploitation in 30 days (percentile 1), as of 2026-12-03.

The arithmetic
  1. Prerequisites multiplied together0.045
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.3 × prerequisites 0.045 × threat 0.850.115
  4. Rounded to one decimal between 0.1 and 100.1

How the score works

Exploitation and evidence timeline

  1. 13 Nov 2026 Published
  2. 3 Dec 2026 Risk 0.1 (cvss fallback)

Weakness

CWE-226

References

Get alerts for mcuboot

Free email or text alerts when a vulnerability in mcuboot reaches risk 8 or higher. Nothing else.