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.
{
"cna_assigner": "zephyr",
"cwe_ids": [
"CWE-226"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/127xxx/CVE-2026-127928.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "1.9.0"
},
{
"fixed": "2.5.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"fixed": "411949f830724617fbc08b9b32f0a45ba0c80baf"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-127928.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "199075891783003349131634296036755056960",
"length": 1375
},
"id": "CVE-2026-127928-12edb89a",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/mcu-tools/mcuboot/commit/411949f830724617fbc08b9b32f0a45ba0c80baf",
"target": {
"file": "boot/boot_serial/src/boot_serial_encryption.c",
"function": "decrypt_image_inplace"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "235381141299352217535905370032499337195",
"length": 660
},
"id": "CVE-2026-127928-7ce5d697",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/mcu-tools/mcuboot/commit/411949f830724617fbc08b9b32f0a45ba0c80baf",
"target": {
"file": "boot/boot_serial/src/boot_serial_encryption.c",
"function": "boot_image_validate_encrypted"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"249568147214454698335649714152520132866",
"258606838929422600206029639285394882262",
"159001359901218049493130081822149983193",
"93504434616514693352639757313420745050",
"269397417095457023581383422020008694502",
"40519445049144501887883131896027422456",
"157762236715940392404870358638146755699",
"71572575152438090718306976945767953618",
"194882491151552421456940524155514650959",
"265692053930767546968607655756511035106",
"91279107775934622152699221276557110410",
"287889118630903186404684724221302528368",
"182828411405347614264236056051874219910",
"162078119954182000760154066011135291958",
"192869895119786898824621801245091917850",
"51783582434205911799112560558169123648",
"9636294424870747910251563299490175275",
"56937551679452444812524637477735032400",
"178990212830900601503930834978281089868",
"61862846837565277727844614879752969269",
"255738166427399069582730966761062963593"
],
"threshold": 0.9
},
"id": "CVE-2026-127928-a8c03a61",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/mcu-tools/mcuboot/commit/411949f830724617fbc08b9b32f0a45ba0c80baf",
"target": {
"file": "boot/boot_serial/src/boot_serial_encryption.c"
}
}
]
"2026-11-13T13:10:12Z"