CVE Feed
2.4 Low

The vendored zcbor decoder's zcboranyskip() in boot/zcbor/src/zcbordecode.c descends one C-stack frame per level of CBOR nesting.

CVE-2026-16668

The vendored zcbor decoder's zcboranyskip() in boot/zcbor/src/zcbordecode.c descends one C-stack frame per level of CBOR nesting. On a list or map it copies the decoder state (memcpy(&statecopy, state, sizeof(zcborstatet))) and recurses once per member, with no depth cap: the skip path does not use zcbor's backup stack, and ZCBORMAXELEMCOUNT is SIZEMAX, 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 zcbormapdecodebulk() (boot/bootserial/src/zcborbulk.c), which skips any map key it does not recognise by calling zcboranyskip() on the encoded value; the echo handler in boot/bootserial/src/bootserial.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 MCUBOOTSERIALMAXRECEIVESIZE = 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 zcborstatet copy plus locals. The impact is…

Assessment

CVSS
2.4 (v3.1)
Severity
Low
Known exploited
Not listed in CISA KEV
Exploit availability
Nothing found in Exploit-DB, Metasploit, Nuclei or public PoC repositories
Published
25 November 2026
Last updated
25 November 2026
Affected
mcu-tools · mcuboot
Assigner
zephyr

CVSS vectorCVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

At the source

References

Community proofs of concept

No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.

Submit a proof of concept
Before you submit *

Query this programmatically

Agents can read this through the MCP endpoint, or over HTTP:

curl https://cve.zerocrew.in/api/cve/CVE-2026-16668