PT-2026-146113

CVE-2026-16664

·

Published

2026-11-13

·

Updated

2026-11-13

Description by

CVSS 3.1
5.1
Medium
MetricsAV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
Name of the Vulnerable Software and Affected Versions MCUboot (affected versions not specified)
Description The Zephyr serial-recovery upload handler bs upload() in boot/boot serial/src/boot serial.c fails to perform a range check on the img num variable decoded from the host-supplied image field of an MCUmgr image-upload request. This value is passed to flash area id from multi image slot(), which resolves to flash area ids for slot() in boot/zephyr/include/sysflash/sysflash.h. Because the all slots[] table has a limited number of entries, providing an img num greater than or equal to MCUBOOT IMAGE NUMBER results in an out-of-bounds read.
This issue is reachable via the unauthenticated serial or SMP recovery console and occurs before image signature verification. It specifically affects the Zephyr port using the array-backed slot layout when MCUBOOT SERIAL DIRECT IMAGE UPLOAD is disabled and CONFIG SINGLE APPLICATION SLOT is not used. An attacker can control the sign and magnitude of the index, potentially causing a bus or hard fault that leads to a denial of service of the bootloader. Additionally, if an out-of-range index returns a value that matches a valid non-image partition, subsequent erase or write operations could target partitions outside the intended image set.
Recommendations Reject any img num greater than or equal to BOOT IMAGE NUMBER on the off == 0 packet before the slot lookup is performed, ensuring the comparison is made using the unsigned img num value. Implement bounds-checking for arguments within the flash area ids for slot() function as a defense-in-depth measure.
Exploitability
Exploit
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-8RCQ-2MGR-FHP8
Found an issue in the description? Have something to add? Feel free to write us 👾