目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2026-16668— Unbounded CBOR recursion in MCUboot serial recovery allows pre-authentication stack exhaustion

一分钟漏洞结论

影响对象
mcu-tools mcuboot
利用判断
尚无明确在野利用证据,仍需结合暴露面评估
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

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,

CVSS 2.4 · Low
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2026-16668 基础信息

漏洞信息

Shenlong is analyzing...


对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
Unbounded CBOR recursion in MCUboot serial recovery allows pre-authentication stack exhaustion
来源: CVE Program / CVE List V5
Vulnerability 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.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
来源: CVE Program / CVE List V5
Vulnerability Type
未经控制的递归
来源: CVE Program / CVE List V5

受影响产品

厂商 产品 影响版本 CPE 订阅
mcu-tools mcuboot 2.0.0 ~ 2.5.1 -

二、漏洞 CVE-2026-16668 的公开POC

# POC 描述 源链接 神龙链接
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2026-16668 的情报信息

请登录查看更多情报信息。

CVE-2026-16668 其他参考 (2)

同批安全公告 · mcu-tools · 2026-11-24 · 共 7 条

CVE-2026-16663 8.4 HIGH Pre-authentication out-of-bounds write in MCUboot encrypted serial recovery image decrypti
CVE-2026-16665 7.4 HIGH MCUboot uses assert() as a security guard on the boot/swap/validation path; under NDEBUG (
CVE-2026-16667 6.2 MEDIUM Cypress/PSoC6 flash backend fails to bounds-check flash accesses, allowing pre-auth out-of
CVE-2026-16666 5.7 MEDIUM MCUboot swap resume trusts a flash-resident swap_size, allowing pre-authentication out-of-
CVE-2026-16670 4.0 MEDIUM Out-of-bounds read in the PSA ECDSA signature DER parser on a malformed signature TLV befo
CVE-2026-16669 2.0 LOW Espressif flash-encryption provisioning leaves eFuse key material and plaintext sector buf

IV. Related Vulnerabilities