CVE-2025-53022 Memory corruption in n/a

High 8.6 Published Updated

A stack buffer overflow in TrustedFirmware-M allows attackers to execute arbitrary code or escalate privileges via a malicious firmware upgrade image.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-53022?

CVE-2025-53022 is a high-severity memory corruption vulnerability in n/a, published on 30 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

TrustedFirmware-M (aka Trusted Firmware for M profile Arm CPUs) before 2.1.3 and 2.2.x before 2.2.1 lacks length validation during a firmware upgrade. While processing a new image, the Firmware Upgrade (FWU) module does not validate the length field of the Type-Length-Value (TLV) structure for dependent components against the maximum allowed size. If the length specified in the TLV exceeds the size of the buffer allocated on the stack, the FWU module will overwrite the buffer (and potentially other stack data) with the TLV's value content. An attacker could exploit this by crafting a malicious TLV entry in the unprotected section of the MCUBoot upgrade image. By setting the length field to exceed the expected structure size, the attacker can manipulate the stack memory of the system during the upgrade process.

Weakness: CWE-121

Which versions are affected by CVE-2025-53022?

How do I fix CVE-2025-53022?

No fix has been published for CVE-2025-53022 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-53022 being exploited?

There is no known exploitation of CVE-2025-53022 in the wild and no public exploit code.

Sources

Also known as GHSA-px58-jc8j-245h, UBUNTU-CVE-2025-53022.

Is CVE-2025-53022 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free