CVE-2026-16663 — mcu-tools mcuboot
One of 3 mcu-tools mcuboot vulnerabilities published together by NVD: our article covers all of them.
MalwareVulnerabilitiesData protectionResearch article
mcu-tools mcuboot Out-of-Bounds Write Vulnerability
| CVE | CVE-2026-16663 |
|---|---|
| Vendor and product | mcu-tools mcuboot |
| Published | November 26, 2026 02:20 UTC |
| Research cut-off | November 26, 2026 01:50 UTC |
| Sources reviewed | 3: NVD record (last modified 2026-11-24); CISA KEV catalog; FIRST EPSS (2026-11-25) |
Executive summary
CVE-2026-16663 affects mcu-tools mcuboot, allowing an attacker to write beyond stack boundaries in the bootloader's encryption path [1]. The CVSS 3.1 score is 8.4 HIGH, scored by vulnerabilities@zephyrproject.org [1]. The vulnerability impacts versions ≥ 1.9.0 and < 2.5.1 [1]. CVE-2026-16663 is not listed in the CISA KEV catalog as of 2026-11-26 [2], and that listing is not evidence it has not been exploited. The main action is to upgrade to the fixed version 2.5.1.
Key points
- CVE-2026-16663 affects mcu-tools mcuboot, allowing an attacker to write beyond stack boundaries in the bootloader's encryption path [1].
- The CVSS 3.1 score is 8.4 HIGH, scored by vulnerabilities@zephyrproject.org [1].
- The vulnerability impacts versions ≥ 1.9.0 and < 2.5.1 [1].
- CVE-2026-16663 is not listed in the CISA KEV catalog as of 2026-11-26 [2], and that listing is not evidence it has not been exploited.
- The main action is to upgrade to the fixed version 2.5.1 [1].
Vulnerability identification
| Field | Value |
|---|---|
| CVE ID | CVE-2026-16663 |
| Vendor | mcu-tools |
| Product | mcuboot |
| CWE | CWE-787 (Out-of-bounds Write) |
| CVSS 3.1 | 8.4 HIGH, scored by vulnerabilities@zephyrproject.org [1] |
| Published | 2026-11-24 |
| Last Modified | 2026-11-24 |
| Record Status | Received |
Vulnerability description
A stack overflow occurs in mcuboot's encrypted serial-recovery path. The decryptregioninplace() function decrypts an uploaded image into a stack buffer, but when the header is still being processed, it incorrectly sets the destination index, leading to writes beyond the buffer's size [1]. This issue is present in configurations where MCUBOOTENCIMAGES and serial recovery are activated, and the attacker must have access to the device's serial or USB recovery port [1].
Attack surface and exploitation prerequisites
The attack depends on the attacker having access to the device's serial or USB recovery port, which does not require authentication. The attacker must also be able to upload an encrypted image through the device's serial or USB recovery interface, and the build must have MCUBOOTENCIMAGES and serial recovery enabled [1]. No user interaction is needed for exploitation, as the CVSS vector lists UI:N [1]; the pre-decryption signature gate is compiled out, so the header goes unchecked prior to decryption [1].
Impact analysis
The flaw enables an attacker to damage stack memory, which could result in code execution within the secure-boot root of trust and cause a denial-of-service condition. The CVSS vector indicates high impact on confidentiality, integrity, and availability [1].
Affected products and versions
| Affected Version | Fixed Version |
|---|---|
| ≥ 1.9.0, < 2.5.1 | 2.5.1 |
Exploitation and threat intelligence status
CVE-2026-16663 is not listed in the CISA KEV catalog as of 2026-11-26 [2]. The EPSS score for this CVE is 0.0040 (0.40%) with a percentile of 0.2586, indicating a low estimated probability of exploitation in the next 30 days [3].
Detection and exposure assessment
To determine if a system is exposed, check if the installed version of mcuboot is in the affected range [1]. The CVE record does not describe detection steps.
Remediation
The fixed version of mcuboot is 2.5.1 [1]. Users are advised to update to this version to mitigate the vulnerability. No additional mitigation steps are provided by the sources [1].
Remediation checklist
- Upgrade mcuboot to version 2.5.1 or later [1].
- Verify that the device's serial/USB recovery interface is not accessible to unauthenticated users.
- Review build configurations to check whether MCUBOOTENCIMAGES and serial recovery are enabled.
Evidence gaps
- The sources do not describe the affected component's internals.
- The sources do not mention a workaround.
- The sources do not describe the attack lifecycle in detail.
- The sources do not provide indicators of compromise.
- The sources do not list any additional fixed versions beyond 2.5.1.
References
- CVE-2026-16663 record. NIST National Vulnerability Database (NVD), 2026-11-24. https://nvd.nist.gov/vuln/detail/CVE-2026-16663. Accessed 2026-11-26.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-11-26. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-26.
- EPSS score for CVE-2026-16663. FIRST, 2026-11-25. https://api.first.org/data/v1/epss?cve=CVE-2026-16663. Accessed 2026-11-26.
Summary
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.
Severity breakdown
High · 8.4
An attacker without an account can exploit this with local access, without any user action.
- Attack from
- local access (a logged-in user, or a malicious file opened on the device)
- Attack complexity
- low (no special conditions)
- Login needed
- no
- User action needed
- no
- Scope
- stays within the vulnerable component
- Impact
- high on confidentiality, integrity and availability
Weakness
- CWE-787: Out-of-bounds Write
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| mcu-tools mcuboot | ≥ 1.9.0, < 2.5.1 | 2.5.1 |
References by type
Vendor advisories
Patches and fixed releases
Affected
- mcu-tools mcuboot
Frequently asked questions
What is CVE-2026-16663?
CVE-2026-16663 affects mcu-tools mcuboot, allowing an attacker to write beyond stack boundaries in the bootloader's encryption path. The CVSS 3.1 score is 8.4 HIGH, scored by vulnerabilities@zephyrproject.org. The vulnerability impacts versions ≥ 1.9.0 and < 2.5.1. CVE-2026-16663 is not listed in the CISA KEV catalog as of 2026-11-26, and that listing is not evidence it has not been exploited. Weakness type: Out-of-bounds Write (CWE-787).
How severe is CVE-2026-16663?
CVE-2026-16663 has a CVSS 3.1 base score of 8.4 (high), from the CNA (zephyrproject.org). An attacker without an account can exploit this with local access, without any user action.
Is CVE-2026-16663 being exploited?
Not as far as is known: CVE-2026-16663 is not in CISA's Known Exploited Vulnerabilities catalog as of November 28, 2026. EPSS estimates a 0.4% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-16663?
mcu-tools mcuboot ≥ 1.9.0, < 2.5.1 (fixed in 2.5.1).
How do I fix CVE-2026-16663?
Upgrade mcuboot to version 2.5.1 or later. Verify that the device's serial/USB recovery interface is not accessible to unauthenticated users. Review build configurations to check whether MCUBOOTENCIMAGES and serial recovery are enabled.