CVE Feed
8.4 High

MCUboot's encrypted serial-recovery path contains an attacker-controlled out-of-bounds stack write in decryptregioninplace() in…

CVE-2026-16663

MCUboot's encrypted serial-recovery path contains an attacker-controlled out-of-bounds stack write in decryptregioninplace() in boot/bootserial/src/bootserialencryption.c. The routine decrypts an uploaded encrypted image one flash sector at a time into a sector-sized stack VLA buf[sz], but when the current sector is still inside the image header it sets the destination index to the absolute header size (idx = hdr->ihhdrsize; at boot/bootserial/src/bootserialencryption.c:156) and then decrypts into &buf[idx]. The correct sibling routine boot/bootutil/src/loader.c:876 uses the sector-relative idx = hdr->ihhdrsize - absoff; the serial path is missing the - absoff term, so for any sector after the first the index runs past the end of the stack buffer. The ihhdrsize field is a uint16t taken verbatim from the uploaded image header. On the second sector onward, when ihhdrsize exceeds the sector size, &buf[idx] points beyond buf and bootencdecrypt() writes attacker-controlled plaintext into adjacent stack frames. The path is reached pre-authentication: bsupload() calls boothandleencfw() (boot/bootserial/src/bootserial.c:1208) after upload, and the pre-decryption signature gate in…

Assessment

CVSS
8.4 (v3.1)
Severity
High
Known exploited
Not listed in CISA KEV
Exploit availability
Nothing found in Exploit-DB, Metasploit, Nuclei or public PoC repositories
Published
24 November 2026
Last updated
24 November 2026
Affected
mcu-tools · mcuboot
Assigner
zephyr

CVSS vectorCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

At the source

References

Community proofs of concept

No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.

Submit a proof of concept
Before you submit *

Query this programmatically

Agents can read this through the MCP endpoint, or over HTTP:

curl https://cve.zerocrew.in/api/cve/CVE-2026-16663