← Vulnerability feed

Vulnerability record · CVE-2021-27562 · published 25 May 2021

CVE-2021-27562: Arm Trusted Firmware-M out-of-bounds write in NSPE handler mode

Trustedfirmware · Trusted Firmware M

Trusted Firmware-M through 1.2 mishandles secure function calls made from the Non-Secure Processing Environment handler mode, allowing an out-of-bounds write (CWE-787). A non-secure caller can therefore halt the system, overwrite secure data, or cause secure data to be printed. The flaw undermines the isolation boundary that TF-M exists to enforce.

5.5 CVSS 3.1 Medium CISA KEV since 3 Nov 2021 EPSS 3.1% · top 12.8% CWE-787 · Out-of-bounds write
5.5CVSS 3.1 base score, v2 4.9
3.1%EPSS exploitation probability, 30 days
YesIn CISA KEV, fix deadline passed
1Affected product versions listed by NVD
5References
17 Jun 2026Last modified by NVD

Description

In Arm Trusted Firmware M through 1.2, the NS world may trigger a system halt, an overwrite of secure data, or the printing out of secure data when calling secure functions under the NSPE handler mode.

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

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 17 September 2026. Confidence: medium.

high priorityCISA KEV listing confirms real-world exploitation, and the flaw breaks the secure/non-secure isolation boundary, though it requires local low-privileged access and rates only medium CVSS.

What it is

Trusted Firmware-M through 1.2 mishandles secure function calls made from the Non-Secure Processing Environment handler mode, allowing an out-of-bounds write (CWE-787). A non-secure caller can therefore halt the system, overwrite secure data, or cause secure data to be printed. The flaw undermines the isolation boundary that TF-M exists to enforce.

Impact

An attacker with local non-secure code execution can corrupt or disclose secure-world data and cause a denial of service via system halt. Integrity and availability of the secure partition are at risk; confidentiality impact is not reflected in the CVSS vector but the description explicitly mentions printing of secure data.

Attack surface

Reached locally by non-secure world code invoking secure functions under the NSPE handler mode; the CVSS vector is AV:L/PR:L/UI:N, so low-privileged local access is required and no user interaction is needed. No network vector is described.

Exploitation

Listed in CISA KEV with a due date of 2021-11-17, indicating known exploitation in the wild; EPSS 30-day probability is about 3.1 percent (87th percentile). No ransomware campaign use is documented.

What to do

  • Apply the vendor update per Arm security guidance and the TF-M security advisory for the SVC caller SP fetching vulnerability; upgrade past TF-M 1.2.
  • If immediate patching is not possible, restrict or disable non-secure calls into the affected secure function paths.
  • Review and harden the NSPE handler-mode entry path so non-secure callers cannot reach privileged secure routines.
  • Track KEV remediation deadlines and verify deployed TF-M versions across all devices using the firmware.

Detection

  • Inventory firmware images and confirm TF-M version; flag any device still running 1.2 or earlier.
  • Monitor for unexpected system halts or resets originating from non-secure world activity.
  • Watch for anomalous secure-world data appearing in non-secure logs or debug output.
  • Audit non-secure callers invoking secure functions under NSPE handler mode for unexpected or malformed arguments.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Exploitation in the wild

CISA added CVE-2021-27562 to the Known Exploited Vulnerabilities catalog on 3 November 2021 as "Arm Trusted Firmware Out-of-Bounds Write Vulnerability". Required action: Apply updates per vendor instructions. Federal deadline 17 November 2021.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2021-27562 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

7.8CVE-2021-43619Trustedfirmware trusted firmware-m classic buffer overflow vulnerabilityTrusted Firmware M 1.4.x through 1.4.1 has a buffer overflow issue in the Firmware Update partition. In the IPC model, a psa_fwu_write caller from SP…EPSS 0.42%7.5CVE-2023-40271Trustedfirmware trusted firmware-m vulnerabilityIn Trusted Firmware-M through TF-Mv1.8.0, for platforms that integrate the CryptoCell accelerator, when the CryptoCell PSA Driver software Interface …EPSS 0.39%7.5CVE-2021-32032Trustedfirmware trusted firmware-m memory leak vulnerabilityIn Trusted Firmware-M through 1.3.0, cleaning up the memory allocated for a multi-part cryptographic operation (in the event of a failure) can preven…EPSS 1.8%5.9CVE-2021-40327Trustedfirmware trusted firmware-m missing authorization vulnerabilityTrusted Firmware-M (TF-M) 1.4.0, when Profile Small is used, has incorrect access control. NSPE can access a secure key (held by the Crypto service) …EPSS 1.2%4.7CVE-2023-51712Trustedfirmware trusted firmware-m vulnerabilityAn issue was discovered in Trusted Firmware-M through 2.0.0. The lack of argument verification in the logging subsystem allows attackers to read sens…EPSS 0.30%8.8CVE-2026-53266Linux kernel ebtables SNAT out-of-bounds write in ARP rewriteThe ebtables SNAT target rewrites the ARP sender hardware address via skb_store_bits() without first making that range writable. When the ARP SHA byt…KEVEPSS 0.65%analysed8.8CVE-2026-87491Google Chrome V8 out-of-bounds write enables sandbox code executionChrome before 153.0.8010.36 contains an out-of-bounds write in the V8 JavaScript engine. A crafted HTML page can trigger the memory corruption, and b…KEVEPSS 3.1%analysed9.8CVE-2025-25249Fortinet FortiOS and FortiSwitchManager heap buffer overflow via crafted packetsA heap-based buffer overflow (CWE-122/CWE-787) in Fortinet FortiOS 6.4 through 7.6.3 and FortiSwitchManager 7.0 through 7.2.6 lets an unauthenticated…KEVEPSS 3.9%analysed

Source: NIST National Vulnerability Database (record CVE-2021-27562), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.