Skip to content
High 8.4

MCUboot の暗号化シリアル復旧で認証前に任意のメモリを書き換えられる脆弱性

CVE-2026-16663 First seen on SecPulse

Summary

MCUboot の暗号化されたシリアル復旧の処理で、認証前にスタックの範囲外へ書き込まれる脆弱性(CVE-2026-16663)が見つかりました。1.9.0以上2.5.1未満が影響を受け、修正版は2.5.1です。 攻撃を受けるおそれがあるため、2.5.1への更新を急いでください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

MCUboot の暗号化されたシリアル復旧の処理で、認証前にスタックの範囲外へ書き込まれる脆弱性(CVE-2026-16663)が見つかりました。1.9.0以上2.5.1未満が影響を受け、修正版は2.5.1です。 攻撃を受けるおそれがあるため、2.5.1への更新を急いでください。

Affected packages

PackageAffected → Fixed
mcu-toolsmcuboot
≥ 1.9.0, < 2.5.1→ 2.5.1
Original description The description as published by the source.

MCUboot's encrypted serial-recovery path contains an attacker-controlled out-of-bounds stack write in decrypt_region_inplace() in boot/boot_serial/src/boot_serial_encryption.c. The routine decrypts an uploaded encrypted image one flash sector at a time into a sector-sized stack VLA buf[sz], but when the current sector is still inside the image header it sets the destination index to the absolute header size (idx = hdr->ih_hdr_size; at boot/boot_serial/src/boot_serial_encryption.c:156) and then decrypts into &buf[idx]. The correct sibling routine boot/bootutil/src/loader.c:876 uses the sector-relative idx = hdr->ih_hdr_size - abs_off; the serial path is missing the - abs_off term, so for any sector after the first the index runs past the end of the stack buffer.

The ih_hdr_size field is a uint16_t taken verbatim from the uploaded image header. On the second sector onward, when ih_hdr_size exceeds the sector size, &buf[idx] points beyond buf and boot_enc_decrypt() writes attacker-controlled plaintext into adjacent stack frames. The path is reached pre-authentication: bs_upload() calls boot_handle_enc_fw() (boot/boot_serial/src/boot_serial.c:1208) after upload, and the pre-decryption signature gate in decrypt_image_inplace() is compiled out (#if 0 at boot/boot_serial/src/boot_serial_encryption.c:226-233), so the header is never validated before decryption.

A second error in the same window computation affects the first sector. When a sector holds both the end of the header and…

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details