PT-2026-158546

CVE-2026-16668

·

Published

2026-11-24

·

Updated

2026-11-25

Description by

CVSS 3.1
2.4
Low
MetricsAV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Name of the Vulnerable Software and Affected Versions MCUboot (affected versions not specified)
Description A stack overflow occurs in the vendored zcbor decoder due to unbounded recursion in the zcbor any skip() function located in boot/zcbor/src/zcbor decode.c. When processing a list or map, the function recurses for each member without a depth limit, copying the zcbor state t state into each C-stack frame. This function is accessible via attacker-controlled bytes before authentication, specifically through the serial-recovery command parser using zcbor map decode bulk() in boot/boot serial/src/zcbor bulk.c and the echo handler in boot/boot serial/src/boot serial.c during image upload.
An attacker can provide a deeply nested CBOR request (up to approximately 500 levels within the default 512-byte receive buffer) to exhaust the bootloader's stack, causing the device to fault or hang. This issue affects products that enable MCUBOOT SERIAL and expose serial recovery over externally reachable transports or fallback to recovery when no valid image is present.
Recommendations Implement a recursion-depth counter within the zcbor any skip() function or configure zcbor map decode bulk() to reject values that exceed a small constant nesting limit. As a temporary mitigation, restrict access to the serial recovery transport or the physical pin used for recovery entry to prevent unauthenticated access.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Related identifiers
GHSA-JCHR-4HHC-J9GJ
Found an issue in the description? Have something to add? Feel free to write us 👾