Home / mcu-tools / mcuboot / CVE-2026-16665
CVE-2026-16665: is it exploited, and which versions of mcu-tools mcuboot are affected and fixed?
CVE-2026-16665 is an unusual condition not checked 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, 13:38 UTC). Affected: mcuboot 1.1.0 and later (CVE record by zephyr). No fixed version is listed in the sources yet; check the vendor advisory. Severity: High (7.4, CVSS 3.1, from zephyr).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 13:38 UTC, CVE record December 2, 2026, 14:33 UTC and NVD December 2, 2026, 16:13 UTC.
What is CVE-2026-16665?
MCUboot uses assert() as a security guard on the boot/swap/validation path; under NDEBUG (release builds) these checks are compiled out, so an inconsistent/attacker-influenced swap status is not aborted and the swap completes on bad state
Summary MCUboot enforces several security-critical invariants on the boot, image-swap, and validation paths using assert(). In a standard release/production build (NDEBUG defined) assert() expands to a no-op, so an invariant the code intends to halt on instead falls through, and execution continues with the bad or inconsistent state. Where the guarded condition is attacker-influenceable through the flash-write boundary (serial-recovery / DFU), this is a security check that is simply absent in release builds. This is one root cause (assert-as-security-guard, no-op under NDEBUG) with one fix approach (replace the security-critical asserts with real fail-closed checks), so it is filed as a single advisory covering the enumerated sites. Worst reachable instance — inconsistent swap status completes the swap without validation In the swap-resume status read, an inconsistent status (erased_sections > 1) is detected, logged, and — when MCUBOOT_VALIDATE_PRIMARY_SLOT is disabled — is meant to abort, because "there is no way to be sure the swapped primary slot is OK." The abort is assert(0): boot/bootutil/src/swap_move.c:181-194 — if (erased_sections > 1) { ... #if !defined(MCUBOOT_VALIDATE_PRIMARY_SLOT) / ... abort! / assert(0); #endif }, then execution falls through to compute bs->op/idx/state from the inconsistent status (lines 197-208) and return 0 (success). boot/bootutil/src/swap_offset.c:266-280 — identical pattern; falls through to bs->op/idx/state and return 0. boot/bootutil/src/swap_scratch.c:227-241 — same invalid/assert(0) pattern for the scratch backend. Under NDEBUG with primary-slot validation off, the inconsistent status is neither aborted (assert is a no-op) nor re-validated (validation off), so boot_complete_partial_swap() finishes the swap on inconsistent metadata and the primary slot is booted without a signature check. An attacker who can write the swap-status trailer can craft the inconsistent status. Reachability (threat model). Secondary slot + scratch trailers are A2-writable by definition (that is what a DFU upload is). Under MCUBOOT_SERIAL_RECOVERY the primary trailer is A2-writable too: boot/boot_serial/src/boot_serial.c:978 opens flash_area_id_from_multi_image_slot(img_num, 0) (== primary) and writes from offset 0 bounded by area_size, so it can paint the primary swap-status/magic. This is how the A2 (recovery/DFU, unauthenticated by design) attacker influences the guarded condition. Property violated: P1 (image authenticity / secure-boot bypass) when un-revalidated content is booted, and P6 (boot/recovery availability). Second reachable instance — resume-path swap_size from an unguarded trailer boot/bootutil/src/loader.c:1190-1193: the swap resume branch does fap = boot_find_status(...); assert(fap != NULL); rc = boot_read_swap_size(fap, &bs->swap_size); assert(rc == 0);. boot_find_status() (boot/bootutil/src/bootutil_misc.c:166-204) searches {scratch, primary} and, on no-valid-magic-match, returns the last-iterated area (primary), not NULL — so assert(fap != NULL) cannot fire even in debug, and under NDEBUG neither assert fires. swap_size is then read from an A2-writable (serial-recovery primary, or scratch) trailer with no fail-closed handling. This is the same swap-metadata-trust family as the recorded resume/swap_size disclosure. Reachable-security sites (center the fix here) 1. boot/bootutil/src/swap_move.c:193 — inconsistent-status assert(0), falls through to complete swap. A2 + !VALIDATE_PRIMARY. [worst] 2. boot/bootutil/src/swap_offset.c:278 — same, swap-offset backend. 3. boot/bootutil/src/swap_scratch.c:239 — same, swap-scratch backend. 4. boot/bootutil/src/loader.c:1191 and :1193 — resume assert(fap != NULL) / assert(rc == 0) guarding swap_size read from an A2-writable trailer; compounded by boot_find_status() never returning NULL. (Truncated. The full description is in the advisory: https://github.com/mcu-tools/mcuboot/security/advisories/GHSA-cr9j-p626-pwcc)
From the CVE record by zephyr, last updated December 2, 2026, 14:23 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| mcu-tools | mcuboot | 1.1.0 and later |
As the CVE record by zephyr states it, last updated December 2, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
How severe is CVE-2026-16665?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.4 | CVSS 3.1 | CVSS:3.1/AV:L/AC:H/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-16665 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: total (CISA ADP, December 2, 2026)
- EPSS
- 0.56% probability of exploitation activity in the next 30 days, percentile 48.0 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-754 Improper Check for Unusual or Exceptional Conditions
Where are the vendor advisories and references?
- Fix commit 36e56d691f4e patch
- Fix commit 43dc9d0d9765 patch
- Fix commit e0872142b9d7 patch
- Fix commit e52ced626dd0 patch
- Fix commit 3b9159e1e04c patch
- Fix commit 2d74b30860ac patch
- Fix commit 133148bd5d79 patch
- Fix commit 442c86b2131c patch
- Fix commit 9365411227c7 patch
- Fix commit 8e8ce11487c8 patch
- Fix commit 18c4f19e2e0e patch
- Fix commit ec006b882ce6 patch
- Fix commit 4d9424a747de patch
- Fix commit adc0e42effb9 patch
- Fix commit b0047116aa2a patch
- Fix commit ab3fd3d4d563 patch
- Remaining fix: pull request #3012
- GHSA-cr9j-p626-pwcc
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 2, 2026, 14:23 UTC by zephyr
- NVD
- Awaiting Analysis, last modified December 2, 2026, 15:17 UTC
- Last checked
- CVE list December 2, 2026, 14:33 UTC; NVD December 2, 2026, 16:13 UTC; KEV December 3, 2026, 13:38 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-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-16665
Is CVE-2026-16665 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 13:38 UTC. FIRST's EPSS gives it a 0.56% 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-16665?
mcuboot 1.1.0 and later, per the CVE record by zephyr. The tables above give every range the sources list.
Which version fixes CVE-2026-16665?
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-16665?
High (7.4, CVSS 3.1, from zephyr). The severity table above shows each score with its source.
Where is the official record of CVE-2026-16665?
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.