Skip to main content
Menu
CVEs

MCUboot denial of service in serial recovery CBOR parser

CVE-2026-16668EUVD-2026-134712Published November 24, 2026, updated

2.4LowCNA
Exploited
No known exploitation
Fix
Fixed in 2.5.1
Who is exposed
Not reported

Summary

MCUboot's serial recovery parser can be crashed by a physically present attacker who sends a deeply nested CBOR request, with no login needed. The bootloader's stack overflows, so the device can fault or hang during recovery, but the flaw does not expose data or bypass authentication.

Written by a model

Original description

The vendored zcbor decoder's zcbor_any_skip() in boot/zcbor/src/zcbor_decode.c descends one C-stack frame per level of CBOR nesting. On a list or map it copies the decoder state (memcpy(&state_copy, state, sizeof(zcbor_state_t))) and recurses once per member, with no depth cap: the skip path does not use zcbor's backup stack, and ZCBOR_MAX_ELEM_COUNT is SIZE_MAX, so nothing bounds how deep the recursion goes.

That function is reached on attacker-controlled bytes before any authentication. MCUboot's serial-recovery command parser decodes SMP/CBOR requests with zcbor_map_decode_bulk() (boot/boot_serial/src/zcbor_bulk.c), which skips any map key it does not recognise by calling zcbor_any_skip() on the encoded value; the echo handler in boot/boot_serial/src/boot_serial.c calls it directly on the same footing. Both run during image upload, long before the uploaded image's signature is checked. The default receive buffer is MCUBOOT_SERIAL_MAX_RECEIVE_SIZE = 512 bytes and each nesting level costs a single byte to encode (0x81), so roughly 500 levels of nesting fit in one request — comfortably more than a bootloader's stack can absorb, since every frame carries a full zcbor_state_t copy plus locals.

The impact is availability only: the bootloader's stack overflows and the device faults or hangs during recovery. There is no controlled out-of-bounds write that escapes the DFU buffer, no disclosure, and no authentication bypass — the recursion grows the stack with the decoder's own internal state. Whether a given board actually exhausts its stack depends on that board's bootloader stack size, which we did not measure; the fix is nevertheless unconditional, because an unauthenticated pre-authentication code path must not have its safety depend on a per-board stack margin.

Exposure requires MCUBOOT_SERIAL (serial/SMP recovery), which is not enabled by default, and recovery entry is normally gated on a physical pin (CONFIG_BOOT_SERIAL_ENTRANCE_GPIO / PIN_RESET), with a no-valid-image fallback path. Products that expose serial recovery over an externally reachable transport, or that fall into recovery when no valid image is present, are the ones at risk.

The fix is to bound the skip: thread a recursion-depth counter through zcbor_any_skip() (or have zcbor_map_decode_bulk() reject values nested beyond a small constant) and fail once the limit is exceeded — equivalently, take the bounded-skip implementation from upstream zcbor.

What to do

Upgrade to a fixed version: 2.5.1.

Check your systems with an agent

Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.

Check whether my systems are affected by CVE-2026-16668 (Unbounded CBOR recursion in MCUboot serial recovery allows pre-authentication stack exhaustion), using the cve.now data below.

Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.

What cve.now has for CVE-2026-16668 (entry last updated 2026-11-24):
Affected:
- mcu-tools mcuboot: from 2.0.0, fixed in 2.5.1
Fixed versions: 2.5.1.
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
CISA KEV: CVE-2026-16668 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-16668 only. If you also check another CVE, look up its own KEV status; never assume it from this one.

How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.

Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/mcu-tools/mcuboot/commit/1b9d870bad5ee45419824fe038ada8901d873749
- https://github.com/mcu-tools/mcuboot/security/advisories/GHSA-jchr-4hhc-j9gj
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.

Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.

Entry: https://cve.now/CVE-2026-16668
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-16668"}.

Affected versions

cve.now Index

2Pof 100 · provisional · methodology v3
  • Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
  • Exposure?/25Unknown. No advisory context yet
  • Reach?/20Unknown. No tracked technology or package matched
  • Severity2.4/10CVSS 2.4
  • No patch0/5No signal

What would change the score

  • Would score about 57 if added to CISA KEV
  • Would score about 52 if CISA's SSVC rates exploitation active
  • Would score about 24 if advisories confirm default setups are exposed

Timeline

  1. CVE published
  2. First seen by cve.now
  3. Record last updated

Evidence 5

KindSource
Vendor advisory 1Establishes: Affected and fixed versions.
AdvisoryGitHub · mcu-tools/mcuboot · Advisory GHSA-jchr-4hhc-j9gj
CVE record 2Establishes: The identifier and description.
RecordCVE List · CVE-2026-16668
RecordNVD · CVE-2026-16668
Public exploit code 1Establishes: Public exploit code exists (Exploit-DB, Metasploit, Nuclei and GitHub).
ExploitGitHub · googlesky/CVE-2026-16668 · Repository
Other links 1
PatchGitHub · mcu-tools/mcuboot · Commit 1b9d870b

Questions about CVE-2026-16668

Is CVE-2026-16668 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: cve.now feed data

Which versions are affected by CVE-2026-16668?

mcuboot: from 2.0.0 before 2.5.1.

Source: cve.now feed data

How do I fix CVE-2026-16668?

Upgrade to a fixed version: 2.5.1.

Source: cve.now feed data

No corrections so far. Something wrong on this page? Report an error.