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.
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
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
| Link | Tags |
|---|---|
| https://developer.arm.com/support/arm-security-updates | Vendor Advisory |
| https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/tree/docs/security/security_advisories/svc_caller_sp_fetchin | Permissions RequiredThird Party Advisory |
| https://developer.arm.com/support/arm-security-updates | Vendor Advisory |
| https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/tree/docs/security/security_advisories/svc_caller_sp_fetchin | Permissions RequiredThird Party Advisory |
| https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-27562 | US Government Resource |
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.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
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.