Stack Overflow Vulnerability in MCUBOOT Due to Unbounded CBOR Recursion
CVE-2026-16668
What is CVE-2026-16668?
The MCUBOOT bootloader contains a vulnerability in the zcbor decoder that allows for unbounded recursion during the processing of CBOR encoded data. Specifically, the function zcbor_any_skip() can descend into multiple layers of nesting in lists or maps without a depth restriction, creating a risk of stack overflow. This can lead to device faults or hangs during recovery modes, particularly in systems where the serial recovery command parser is enabled. The issue arises when attacker-controlled CBOR bytes trigger deep recursion levels during image uploads, compromising device availability. Proper mitigation strategies involve implementing a depth counter or bounding the number of allowable nesting levels to prevent potential exploits.
Affected Version(s)
mcuboot 2.0.0 < 2.5.1
