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
- 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
Only for publicly disclosed vulnerabilities, and only material from testing you were authorised to perform. This platform does not buy, sell, or broker exploits — see earning from vulnerability research for legitimate bounty programs. Submissions are reviewed before they appear. Text only; do not include live credentials, personal data, or anything targeting systems you are not permitted to test.
Query this programmatically
Agents can read this through the MCP endpoint, or over HTTP:
curl https://cve.zerocrew.in/api/cve/CVE-2026-16668