CVE-2025-53022
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedTrustedFirmware-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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceTrustedFirmware-M before 2.1.3 and 2.2.x before 2.2.1 contains a buffer overflow vulnerability in the Firmware Upgrade (FWU) module. The module fails to validate the length field of TLV (Type-Length-Value) structures against maximum allowed sizes when processing upgrade images. When the TLV length exceeds the stack-allocated buffer size, the FWU module overwrites stack memory with attacker-controlled TLV value content, enabling potential arbitrary code execution.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- Low
- Availability
- Low
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify TrustedFirmware-M usageInspect the firmware or bootloader binary for TF-M version strings, or check the build configuration files (such as platform and secure boot configurations) for TrustedFirmware-M references. TF-M is commonly used in ARM Cortex-M based secure systems.Affected if The device uses TrustedFirmware-M as its secure firmware component.
-
Determine the installed TF-M versionExtract version information from the firmware image, bootloader, or build artifacts. Look for version strings in the format 'TrustedFirmware-M vX.Y.Z' or check the tfm_version field in the TF-M metadata/header if present.Affected if The identified version is before 2.1.3, or is in the 2.2.x range before 2.2.1.
-
Verify the FWU module is enabledCheck the TF-M build configuration for the presence of the CONFIG_TFM_FWU_SERIAL or CONFIG_TFM_FWU_ENABLE option, or examine the compiled firmware image for FWU-related symbols (such as 'fwu_process_image' or similar). The FWU module is optional and must be explicitly built.Affected if The Firmware Upgrade module is compiled into the firmware.
-
Confirm TLV processing is reachableReview the boot and upgrade flow configuration to verify that the FWU module can be invoked during runtime, either via serial interface, USB, or other upgrade mechanisms. Check that image validation paths include TLV parsing.Affected if The device supports firmware upgrade functionality and the FWU module is active in the boot flow.
The environment is affected if TrustedFirmware-M versions before 2.1.3 or 2.2.x before 2.2.1 are in use AND the optional Firmware Upgrade (FWU) module is enabled in the build.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpgrade TrustedFirmware-M to version 2.1.3, 2.2.1, or later. Until patches are applied, ensure firmware upgrade images are obtained from trusted sources and verify image authenticity using cryptographic signatures.
Upgrade to TrustedFirmware-M 2.1.3 (LTS) or 2.2.1
- Identify the current version of TrustedFirmware-M being used in your deployment
- Download TrustedFirmware-M version 2.1.3 (for the 2.1.x branch) or version 2.2.1 (for the 2.2.x branch) from the official TrustedFirmware-M repository at git.trustedfirmware.org
- Rebuild the TrustedFirmware-M firmware image with the fixed version, ensuring all build configurations remain consistent with your existing setup
- Verify the built image passes integrity checks and matches expected cryptographic signatures
- Deploy the updated firmware image to affected devices following your standard firmware update procedure
- After deployment, confirm the firmware upgrade completes successfully and the system boots to the new TrustedFirmware-M version
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation8.0 h
- Implementation16.0 h
- Testing16.0 h
- Review / QA8.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $13,312.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2025-53022 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-53022 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data