CVE-2025-70291: U-Boot do_mv Integer Overflow Heap Buffer Overflow
CVE-2025-70291 is an integer-overflow vulnerability in Denx U-Boot's do_mv directory-move command. Missing validation of string-length addition can cause the calculated allocation size for a constructed path to wrap, producing an undersized heap allocation. Subsequent copying with strcpy() can then write beyond the allocated heap buffer. U-Boot releases through v2026.01-rc4 are affected; the issue is fixed in v2026.04-rc1 and the upstream master branch.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation causes heap memory corruption in the U-Boot pre-boot environment. Depending on heap layout and platform-specific exploitability, this may permit arbitrary code execution with the privileges of U-Boot, as well as compromise of boot-time integrity or device availability.
Mitigation
If you can’t patch tonight, do this now.
Restrict access to the U-Boot interactive shell to trusted administrators, disable or password-protect the console where operationally feasible, and prevent untrusted users from supplying directory-move arguments. Limit physical and serial-console access on deployed devices until an updated U-Boot build is installed.
Remediation
Patch, then assume compromise.
Upgrade to U-Boot v2026.04-rc1 or a later release containing the upstream integer-overflow fixes. For maintained custom U-Boot branches, backport the upstream fix that performs checked string-length addition before allocation and rejects overflowing input sizes.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2025-70291 exploited in the wild?
- As of Nov 19, 2026, Mallory has no reports of CVE-2025-70291 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2025-70291?
- As of Nov 19, 2026, Mallory has found no public exploit for CVE-2025-70291.
- Is there a patch for CVE-2025-70291?
- Upgrade to U-Boot v2026.04-rc1 or a later release containing the upstream integer-overflow fixes. For maintained custom U-Boot branches, backport the upstream fix that performs checked string-length addition before allocation and rejects overflowing input sizes.
Recent activity
4 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.