Home / mcu-tools / mcuboot / CVE-2026-16666
CVE-2026-16666: is it exploited, and which versions of mcu-tools mcuboot are affected and fixed?
CVE-2026-16666 is an improper array index validation 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, 16:09 UTC). Affected: mcuboot 1.0.0 and later (CVE record by zephyr). No fixed version is listed in the sources yet; check the vendor advisory. Severity: Medium (5.7, CVSS 3.1, from zephyr).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:09 UTC, CVE record November 25, 2026, 20:16 UTC and NVD November 30, 2026, 16:09 UTC.
What is CVE-2026-16666?
MCUboot swap resume trusts a flash-resident swap_size, allowing pre-authentication out-of-bounds flash operations
When MCUboot resumes an interrupted image swap it takes the number of bytes to move straight from the flash-resident status trailer. In boot_swap_image() (boot/bootutil/src/loader.c) the fresh-swap branch recomputes copy_size from the image headers and is bounded — swap_run() in boot/bootutil/src/swap_move.c carries an explicit "not enough free space" check (last_idx >= first_trailer_idx) — but that check runs only inside if (boot_status_is_reset(bs)). On the resume branch the code instead does boot_read_swap_size(fap, &bs->swap_size); copy_size = bs->swap_size; and passes the value to swap_run() with no re-derivation and no bound. swap_run() turns that byte count into a sector index by summing sector sizes until it reaches the count, with no ceiling on the real sector count: find_last_idx() in swap_move.c and swap_offset.c, and find_last_sector_idx() in swap_scratch.c, are all while (1) loops. The resulting index is fed to boot_img_sector_off() / boot_img_sector_size() (boot/bootutil/src/bootutil_priv.h), which index the fixed BOOT_MAX_IMG_SECTORS sectors[] arrays with no bounds check. Past num_sectors the loop reads zero-initialised — and past BOOT_MAX_IMG_SECTORS, adjacent-struct — entries; a sector size of 0 makes the loop never terminate, and a bogus computed offset is handed to boot_erase_region() / boot_copy_region() as an out-of-bounds flash erase or copy. MCUboot itself only ever writes a validated, slot-bounded swap_size (swap_misc.c, fixup_revert()), so reaching the defect requires writing the trailer from outside. Serial recovery provides exactly that: an upload writes attacker bytes contiguously from offset 0 of the primary slot (boot/boot_serial/src/boot_serial.c, via flash_area_id_from_multi_image_slot()), bounded only by img_size <= area_size, so it controls the whole trailer — magic, swap_info, op/idx/state and swap_size. The resume gate boot_status_is_reset() keys solely on those op/idx/state fields, and boot_find_status() explicitly trusts valid magic as implying valid metadata. A forged in-progress status with an oversized swap_size therefore drives the unbounded walk during swap setup — before the primary image's signature is validated, and serial recovery is unauthenticated by design. The outcome is an out-of-bounds flash erase or copy, or a non-terminating loop, inside the bootloader: an unbootable or bricked device, with the possibility of bootloader memory corruption. That exceeds what serial recovery is designed to grant, which is only the ability to stage an image that must still pass signature verification. Exposure requires a swap-based update backend — MCUBOOT_SWAP_USING_MOVE (the default for swap builds), MCUBOOT_SWAP_USING_SCRATCH or MCUBOOT_SWAP_USING_OFFSET; overwrite-only, direct-XIP and RAM-load builds are unaffected — together with MCUBOOT_SERIAL_RECOVERY. Without serial recovery the path is only reachable by an attacker who can already write flash directly, which is outside the threat model. The fix is to treat the trailer's swap_size as untrusted: reject or clamp it in boot_swap_image() before it becomes copy_size, bounding it by the primary slot's usable image area (sector count x sector size, excluding the trailer) rather than the raw flash_area_get_size(), and aborting recovery with a non-zero error on overflow. The same guard should cover the independent boot_read_swap_size() reads in each backend's boot_read_image_header().
From the CVE record by zephyr, last updated November 25, 2026, 20:02 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| mcu-tools | mcuboot | 1.0.0 and later |
As the CVE record by zephyr states it, last updated November 25, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
How severe is CVE-2026-16666?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.7 | CVSS 3.1 | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:L/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-16666 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, November 25, 2026)
- EPSS
- 0.20% probability of exploitation activity in the next 30 days, percentile 10.4 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-129 Improper Validation of Array Index
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, 23:37 UTC
- CVE record updated
- November 25, 2026, 20:02 UTC by zephyr
- NVD
- Awaiting Analysis, last modified November 30, 2026, 15:25 UTC
- Last checked
- CVE list November 25, 2026, 20:16 UTC; NVD November 30, 2026, 16:09 UTC; KEV December 3, 2026, 16:09 UTC; EPSS December 3, 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-16668 mcu-tools mcuboot: uncontrolled recursion
- Nov 24, 2026CVE-2026-16665 mcu-tools mcuboot: unusual condition not checked
- Nov 24, 2026CVE-2026-16663 mcu-tools mcuboot: out-of-bounds write (memory corruption)
- 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-16666
Is CVE-2026-16666 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 16:09 UTC. FIRST's EPSS gives it a 0.20% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of mcu-tools mcuboot are affected by CVE-2026-16666?
mcuboot 1.0.0 and later, per the CVE record by zephyr. The tables above give every range the sources list.
Which version fixes CVE-2026-16666?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2026-16666?
Medium (5.7, CVSS 3.1, from zephyr). The severity table above shows each score with its source.
Where is the official record of CVE-2026-16666?
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.