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

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2026-16664— MCUboot Zephyr 越界读取漏洞

一分钟漏洞结论

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

MCUboot 中 Zephyr 串行恢复上传处理函数 (位于 )将主机在 MCUmgr 镜像上传请求中提供的 字段解码为 (一个完整的 32 位值),并在 的数据包上直接将其锁定,且未进行任何范围检查。随后,该函数直接将 传递给 。在 Zephyr 移植版本中,此函数解析为 中的 ,并以 的形式索引静态常量整型数组 。该数组仅包含 个条目,因此任何大于或等于 的 都会导致越界读取。 该路径可被任何能够访问串行/SMP 恢复控制台的用户触发,而该控制台在设计上是无需身份验证的。此外,恶意数值在任何镜像签名验证之前即

CVSS 5.1 · Medium EPSS 0.12% · P2

影响版本矩阵 1

厂商产品 版本范围状态
mcu-tools mcuboot 2.0.0≤ * affected
获取后续新漏洞提醒 登录后订阅

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

漏洞信息

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

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

Vulnerability Title
Unchecked serial-recovery image index causes out-of-bounds slot-table read in MCUboot Zephyr port
来源: CVE Program / CVE List V5
Vulnerability Description
MCUboot's Zephyr serial-recovery upload handler bs_upload() in boot/boot_serial/src/boot_serial.c decodes the host-supplied image field of an MCUmgr image-upload request into img_num (a full 32-bit value) and latches it on the off == 0 packet without any range check. It then passes img_num straight to flash_area_id_from_multi_image_slot(img_num, 0), which on the Zephyr port resolves to __flash_area_ids_for_slot() in boot/zephyr/include/sysflash/sysflash.h and indexes the static const int all_slots[] table as all_slots[img_num 2]. That table holds only MCUBOOT_IMAGE_NUMBER 2 entries, so any img_num >= MCUBOOT_IMAGE_NUMBER is an out-of-bounds read. The path is reachable by anyone with access to the serial / SMP recovery console, which is unauthenticated by design, and the bad value is supplied before any image signature is verified. The defect is specific to the default non-direct upload path (MCUBOOT_SERIAL_DIRECT_IMAGE_UPLOAD disabled) on the Zephyr port with the array-backed slot layout (not CONFIG_SINGLE_APPLICATION_SLOT). It is not gated on a multi-image configuration: MCUBOOT_IMAGE_NUMBER defaults to 1, so even a default single-image build is affected for any image >= 1. The MCUBOOT_SERIAL_DIRECT_IMAGE_UPLOAD path is safe (its flash_area_id_from_direct_image() switch returns -EINVAL for unknown indices). flash_area_id_from_multi_image_slot() takes a signed int image_index while img_num is uint32_t, so the attacker controls the sign of the index as well as its magnitude: an image of 0xFFFFFFFE converts to -2 and reads all_slots[-4], off the front of the table, while large positive values read off the end (CWE-192). (0xFFFFFFFF itself is the "no image given" sentinel and selects image 0.) Either way the index multiply img * 2 is performed in int, so a wild offset yields a bus/hard fault, giving a reliable denial of service of the bootloader during recovery. For moderately out-of-range indices the read returns adjacent .rodata as a garbage flash-area id that is handed to flash_area_open(); this normally fails with MGMT_ERR_EINVAL, but if the garbage id happens to match a valid non-image partition, the subsequent erase/write can target a partition outside the image set (CWE-787). The attacker-supplied value is never echoed back, so there is no information disclosure. The fix is to reject img_num >= BOOT_IMAGE_NUMBER on the off == 0 packet, before the slot lookup. The comparison must be made on the unsigned img_num: an equivalent guard applied after the conversion to int would not reject the negative case above. __flash_area_ids_for_slot() should bounds-check its own arguments as defence in depth. This vulnerability was reported independently twice: by NVIDIA Project Vanessa on 2026-06-22, and by Kai Phan (@kaimandalic) on 2026-07-19 as GHSA-8v33-88p6-jffj, which is closed as a duplicate of this advisory. Both original reports are reproduced in full below.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
来源: CVE Program / CVE List V5
Vulnerability Type
对数组索引的验证不恰当
来源: CVE Program / CVE List V5

受影响产品

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

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

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

未找到公开 POC。

登录以生成 AI POC

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

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

CVE-2026-16664 补丁与修复 (3)

CVE-2026-16664 厂商安全公告 (1)

同批安全公告 · mcu-tools · 2026-11-13 · 共 8 条

CVE-2026-16659 4.0 MEDIUM MCUboot 加密镜像上传预认证空指针解引用漏洞
CVE-2026-127916 2.9 LOW MCUboot 镜像验证越界读取漏洞
CVE-2026-16671 2.9 LOW MCUboot SHA-384/512构建栈越界写入漏洞
CVE-2026-16662 2.4 LOW MCUboot 未初始化栈信息泄露漏洞
CVE-2026-127915 2.0 LOW MCUboot bootutil TLV越界读取漏洞
CVE-2026-127928 2.0 LOW MCUboot 密钥栈残留漏洞
CVE-2026-128091 2.0 LOW MCUboot TinyCrypt AES-CTR 密钥未清除漏洞

IV. Related Vulnerabilities