Out-of-bounds Write Affecting TrustedFirmware-M/trusted-firmware-m package, versions [,2.1.3-RC1)[2.2.0-RC1,2.2.1-RC1)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.06% (18th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-TRUSTEDFIRMWAREMTRUSTEDFIRMWAREM-12179367
  • published25 Aug 2025
  • disclosed30 Jul 2025
  • creditBartek Piekarski

Introduced: 30 Jul 2025

CVE-2025-53022  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade TrustedFirmware-M/trusted-firmware-m to version 2.1.3-RC1, 2.2.1-RC1 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Write via the fwu_bootloader_install_image() function due to improper checking of the authenticity and integrity of the image candidates. An attacker can overwrite stack memory and potentially alter program execution by providing a crafted Type-Length-Value (TLV) entry with an excessively large length field in the unprotected section of a firmware upgrade image.

CVSS Base Scores

version 4.0
version 3.1