CVE-2021-27562 is a flaw in Arm Trusted Firmware-M up to v1.2: when non-secure code calls secure functions from handler mode, the IPC-model SVC handler reads the wrong stack, which can crash or reset the device and, rarely, overwrite or leak secure data. NVD scores it 5.5 and CISA lists it in KEV; TF-M fixed it in commit e212ea16.
Vulnerability summary
CVSS base score
5.5
Medium severity
EPSS score (FIRST)
3.1%
Probability of exploitation in the wild in the next 30 days
CISA KEV catalog
Yes
Listed as known exploited
Published
Vulnerability ID: CVE-2021-27562 · Source: NVD
Affected components
| Component | CPE | Version range |
|---|---|---|
| Arm Trusted Firmware-M (TF-M), IPC model on Armv8-M | cpe:2.3:o:trustedfirmware:trusted_firmware-m:*:*:*:*:*:*:*:* | All versions up to and including v1.2 (TF-M advisory TFMV-2; NVD: up to and including 1.2.0); fixed by commit e212ea1637a66255b44d0e7c19ebe9786ab56ccb; Library model not vulnerable |
What does this mean for affected devices?
CVE-2021-27562 is an out-of-bounds write (CWE-787) in Arm Trusted Firmware-M (TF-M), the open-source secure-side firmware for Armv8-M processors. The CVE record, published by MITRE on 2021-05-25, says: "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" (CVE record). NVD's Primary score is 5.5, CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H, plus NVD CVSS v2 4.9, with CWE-787; CISA's ADP container gives the same 5.5, and the record carries no CNA score (NVD).
What does the TF-M advisory say?
The project's advisory TFMV-2, dated 5 March 2021, explains the cause. After a non-secure call enters TF-M, the secure SVC handler picks the caller's stack pointer from the SPSEL bit of EXC_RETURN. In handler mode the main stack is always in use, so for a non-secure caller in handler mode the handler reads the secure process stack instead. The advisory affects "All versions up to and including TF-M v1.2" in the IPC model on Armv8-M; the Library model is not vulnerable because it checks the processor mode at the secure entry. Its impact analysis: "Most likely a crash in secure world or reset whole system, with a very low likelihood of overwriting some memory contents", and in very rare cases secure data printed through the log interface. TF-M rates the severity Medium. The issue was credited to Øyvind Rønningstad of Nordic Semiconductor.
How do you fix CVE-2021-27562?
TFMV-2 names the fix as TF-M commit e212ea1637a66255b44d0e7c19ebe9786ab56ccb. Per the advisory, the secure SVC handler must check both the processor mode and SPSEL, and must stop callers in non-secure handler mode from using TF-M SVC functions. NVD marks TF-M up to and including 1.2.0 as vulnerable, so firmware built on TF-M v1.2 or earlier with the IPC model needs a TF-M release that contains that commit, then a new device firmware build. Owners of finished products get it only through the device maker's firmware update. CISA's required action is to apply updates per vendor instructions. For secure-world firmware in general, see the secure boot and hardware root of trust guide and the memory corruption fix guide.
Is CVE-2021-27562 exploited?
CISA added it to the KEV catalog on 2021-11-03, the earliest date in the catalog, as "Arm Trusted Firmware Out-of-Bounds Write Vulnerability", due 2021-11-17, with known ransomware campaign use marked Unknown. It is listed as of 2026-11-25 (catalog version 2026.11.24). The KEV short description adds "This vulnerability affects Yealink Device Management servers"; neither the CVE record nor TFMV-2 mentions Yealink, and the neighbouring KEV entry CVE-2021-27561 is a Yealink Device Management flaw, so treat that sentence with care. FIRST EPSS gives it 0.0306, the 88th percentile, in the 2026-11-24 dataset. The KEV and EPSS prioritisation guide explains how to rank it.
Evidence
- NVD: status Analyzed; [email protected] Primary CVSS 3.1 5.5 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H and Primary CVSS 2.0 4.9; CISA-ADP Secondary 5.5 same vector; CWE-787; CPE trusted_firmware-m up to and including 1.2.0; published 2021-05-25; read 2026-11-25. — NVD
- CVE record (CNA MITRE, published 2021-05-25): Arm Trusted Firmware M through 1.2; 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. — CVE.org
- TF-M advisory TFMV-2 (dated 2021-03-05): all versions up to and including TF-M v1.2, IPC model on Armv8-M; Library model not vulnerable; impact most likely a secure-world crash or system reset, very low likelihood of memory overwrite; severity Medium; fix commit e212ea1637a66255b44d0e7c19ebe9786ab56ccb; credit Øyvind Rønningstad, Nordic Semiconductor. — Trusted Firmware-M
- CISA KEV catalog 2026.11.24: dateAdded 2021-11-03 (earliest dateAdded in the catalog), due 2021-11-17, knownRansomwareCampaignUse Unknown, CWE-787; short description ends "This vulnerability affects Yealink Device Management servers."; required action: Apply updates per vendor instructions. CVE-2021-27561 is listed as Yealink Device Management. Checked 2026-11-25. — CISA KEV
- EPSS 0.0306, percentile 0.8784, dataset 2026-11-24, read 2026-11-25. — FIRST EPSS

Related advisories
Sources
Frequently asked questions
Which Trusted Firmware-M versions are affected by CVE-2021-27562?
All versions up to and including TF-M v1.2 using the IPC model on Armv8-M. The Library model is not vulnerable (per TF-M advisory TFMV-2 and NVD).
How is CVE-2021-27562 fixed?
TF-M fixed it in commit e212ea1637a66255b44d0e7c19ebe9786ab56ccb, ; the advisory says the SVC handler must check the processor mode as well as SPSEL. Device makers rebuild their firmware on a TF-M release containing it; product owners install the vendor firmware update (per TF-M advisory TFMV-2 and CISA KEV).
What is the real impact of CVE-2021-27562?
Most likely a crash in the secure world or a full system reset. TF-M says overwriting secure memory or leaking secure data through the log output is possible but extremely unlikely, and rates the severity Medium (per TF-M advisory TFMV-2).
Does CVE-2021-27562 affect Yealink devices?
CISA's KEV text says it affects Yealink Device Management servers, but the CVE record and the TF-M advisory describe only Trusted Firmware-M and do not mention Yealink. The adjacent KEV entry CVE-2021-27561 is the Yealink Device Management flaw (per CISA KEV, the CVE record and TFMV-2).
Questions about this page?