CVE-2026-127928

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

2.0 low EPSS 0.10%

Published 13 Nov 2026 Updated 17 Nov 2026 CNA: zephyr

Check your servers for CVE-2026-127928

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-127928 affects mcuboot, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

2.0 low CVSS 3.1 from zephyr (CNA)
CVSS:3.1/AV:P/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Attack vector
physical: the attacker has to touch the device
Attack complexity
high: an attack depends on conditions outside the control of the attacker, such as a race
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality low, integrity none, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.10%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 1.07% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 17 Nov 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Weakness

  • CWE-226 Sensitive Information in Resource Not Removed Before Reuse

Affected products

As the CNA lists them.

ProductVersions
mcuboot
package mcuboot
affected from 1.9.0, before 2.5.0
Other versions: unaffected

Is my server affected?

Find the installed version of mcuboot and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.

Debian, Ubuntu

dpkg -l | grep -i mcuboot
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-127928 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-127928

RHEL, Rocky, Alma, Fedora

rpm -q mcuboot
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-127928

Alpine

apk list --installed | grep -i mcuboot

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-127928
trivy image --scanners vuln IMAGE | grep CVE-2026-127928

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Patches and release notes

Other references

Source: the record CVE-2026-127928 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.