CVE Feed
5.7 Medium

When MCUboot resumes an interrupted image swap it takes the number of bytes to move straight from the flash-resident status trailer.

CVE-2026-16666

When MCUboot resumes an interrupted image swap it takes the number of bytes to move straight from the flash-resident status trailer. In bootswapimage() (boot/bootutil/src/loader.c) the fresh-swap branch recomputes copysize from the image headers and is bounded — swaprun() in boot/bootutil/src/swapmove.c carries an explicit "not enough free space" check (lastidx >= firsttraileridx) — but that check runs only inside if (bootstatusisreset(bs)). On the resume branch the code instead does bootreadswapsize(fap, &bs->swapsize); copysize = bs->swapsize; and passes the value to swaprun() with no re-derivation and no bound. swaprun() turns that byte count into a sector index by summing sector sizes until it reaches the count, with no ceiling on the real sector count: findlastidx() in swapmove.c and swapoffset.c, and findlastsectoridx() in swapscratch.c, are all while (1) loops. The resulting index is fed to bootimgsectoroff() / bootimgsectorsize() (boot/bootutil/src/bootutilpriv.h), which index the fixed BOOTMAXIMGSECTORS sectors[] arrays with no bounds check. Past numsectors the loop reads zero-initialised — and past BOOTMAXIMGSECTORS, adjacent-struct — entries; a sector size of 0 makes…

Assessment

CVSS
5.7 (v3.1)
Severity
Medium
Known exploited
Not listed in CISA KEV
Exploit availability
Nothing found in Exploit-DB, Metasploit, Nuclei or public PoC repositories
Published
25 November 2026
Last updated
25 November 2026
Affected
mcu-tools · mcuboot
Assigner
zephyr

CVSS vectorCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H

At the source

References

Community proofs of concept

No community proof of concept yet. If you have one for a published vulnerability and the right to share it, add it below — it will appear here once reviewed.

Submit a proof of concept
Before you submit *

Query this programmatically

Agents can read this through the MCP endpoint, or over HTTP:

curl https://cve.zerocrew.in/api/cve/CVE-2026-16666