Home / mcu-tools / mcuboot / CVE-2026-16663
CVE-2026-16663: is it exploited, and which versions of mcu-tools mcuboot are affected and fixed?
CVE-2026-16663 is an out-of-bounds write (memory corruption) vulnerability in mcu-tools mcuboot. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 06:08 UTC). Affected: mcuboot from 1.9.0 before 2.5.1 (CVE record by zephyr). Fixed in 2.5.1 (CVE record by zephyr). Severity: High (8.4, CVSS 3.1, from zephyr).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 06:08 UTC, CVE record December 1, 2026, 21:02 UTC and NVD December 1, 2026, 22:12 UTC.
What is CVE-2026-16663?
Pre-authentication out-of-bounds write in MCUboot encrypted serial recovery image decryption
MCUboot's encrypted serial-recovery path contains an attacker-controlled out-of-bounds stack write in decrypt_region_inplace() in boot/boot_serial/src/boot_serial_encryption.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->ih_hdr_size; at boot/boot_serial/src/boot_serial_encryption.c:156) and then decrypts into &buf[idx]. The correct sibling routine boot/bootutil/src/loader.c:876 uses the sector-relative idx = hdr->ih_hdr_size - abs_off; the serial path is missing the - abs_off term, so for any sector after the first the index runs past the end of the stack buffer. The ih_hdr_size field is a uint16_t taken verbatim from the uploaded image header. On the second sector onward, when ih_hdr_size exceeds the sector size, &buf[idx] points beyond buf and boot_enc_decrypt() writes attacker-controlled plaintext into adjacent stack frames. The path is reached pre-authentication: bs_upload() calls boot_handle_enc_fw() (boot/boot_serial/src/boot_serial.c:1208) after upload, and the pre-decryption signature gate in decrypt_image_inplace() is compiled out (#if 0 at boot/boot_serial/src/boot_serial_encryption.c:226-233), so the header is never validated before decryption. A second error in the same window computation affects the first sector. When a sector holds both the end of the header and the start of the TLV area, the decrypt length is clamped to tlv_off - (off + bytes_copied), measured from the start of the sector rather than from idx (boot/boot_serial/src/boot_serial_encryption.c:166). An encrypted image whose header and payload end within the first sector is therefore decrypted for ih_hdr_size bytes more than it should be: into the TLV area and, when the image ends near the end of the sector, past buf. This form needs no oversized header, so even an ordinary small encrypted image can trigger it, and it reaches devices with sectors of up to about 128 KiB rather than only those whose sector is smaller than the 16-bit ih_hdr_size. Reaching the sink requires a build with MCUBOOT_ENC_IMAGES and serial recovery enabled, and access to the device's serial/USB recovery interface (unauthenticated by design). With the public-key encryption schemes the AES content key is wrapped to the device's public encryption key, so an attacker can author a fully crafted encrypted image — including a malicious ih_hdr_size — without the image-signing private key. The result is a controllable stack memory-corruption inside the bootloader before any signature check, providing a path to code execution in the secure-boot root of trust that bypasses image authentication, as well as a denial-of-service. A 2048-byte out-of-bounds write was reproduced under AddressSanitizer (sz=4096, off=4096, ih_hdr_size=6144). On releases before v2.0.0 (v1.9.0 and v1.10.0) the destination is a file-scope static uint8_t buf[SOC_FLASH_ERASE_BLK_SZ] in .bss rather than the stack VLA described above — the code then lived in boot/zephyr/single_loader.c, before commit c9fa6088 relocated it to boot/boot_serial/src/boot_serial_encryption.c and changed the buffer's storage class. The out-of-bounds write is equally real and equally pre-authentication on those releases, but it corrupts adjacent static data rather than the stack, so a stack-smashing proof of concept written against a current release will not reproduce as-is there.
From the CVE record by zephyr, last updated December 1, 2026, 20:47 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| mcu-tools | mcuboot | from 1.9.0 before 2.5.1 | 2.5.1 |
As the CVE record by zephyr states it, last updated December 1, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
How severe is CVE-2026-16663?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.4 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | zephyr |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-16663 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: total (CISA ADP, December 1, 2026)
- EPSS
- 0.40% probability of exploitation activity in the next 30 days, percentile 36.4 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-787 Out-of-bounds Write
Where are the vendor advisories and references?
Who found and reported it?
- NVIDIA - Project Vanessa (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- July 22, 2026
- Published
- November 24, 2026, 21:39 UTC
- CVE record updated
- December 1, 2026, 20:47 UTC by zephyr
- NVD
- Awaiting Analysis, last modified December 1, 2026, 21:17 UTC
- Last checked
- CVE list December 1, 2026, 21:02 UTC; NVD December 1, 2026, 22:12 UTC; KEV December 3, 2026, 06:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect mcuboot?
- Nov 24, 2026CVE-2026-16670 mcu-tools mcuboot: out-of-bounds read
- Nov 24, 2026CVE-2026-16669 mcu-tools mcuboot: sensitive Information in Resource Not Removed Before Reuse
- Nov 24, 2026CVE-2026-16667 mcu-tools mcuboot: out-of-bounds read
- Nov 24, 2026CVE-2026-16666 mcu-tools mcuboot: improper array index validation
- Nov 24, 2026CVE-2026-16668 mcu-tools mcuboot: uncontrolled recursion
- Nov 24, 2026CVE-2026-16665 mcu-tools mcuboot: unusual condition not checked
- Nov 13, 2026CVE-2026-127916 mcu-tools mcuboot: out-of-bounds read
- Nov 13, 2026CVE-2026-127915 mcu-tools mcuboot: out-of-bounds read
Questions about CVE-2026-16663
Is CVE-2026-16663 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 06:08 UTC. FIRST's EPSS gives it a 0.40% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of mcu-tools mcuboot are affected by CVE-2026-16663?
mcuboot from 1.9.0 before 2.5.1, per the CVE record by zephyr. The tables above give every range the sources list.
Which version fixes CVE-2026-16663?
2.5.1, per the CVE record by zephyr. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-16663?
High (8.4, CVSS 3.1, from zephyr). The severity table above shows each score with its source.
Where is the official record of CVE-2026-16663?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.