← Vulnerability feed

Vulnerability record · CVE-2023-40271 · published 8 September 2023

CVE-2023-40271: Trustedfirmware trusted firmware-m vulnerability

Trustedfirmware · Trusted Firmware M

In Trusted Firmware-M through TF-Mv1.8.0, for platforms that integrate the CryptoCell accelerator, when the CryptoCell PSA Driver software Interface is selected, and the Authenticated Encryption with Associated Data Chacha20-Poly1305 algorithm is used, with the single-part verification function (defined during the build-time configuration phase) implemented with a dedicated function (i.e., not relying on usage of multipart functions), the buffer comparison during the verification of the authentication tag does not happen on the full 16 bytes but just on the first 4 bytes, thus leading to the possibility that unauthenticated payloads might be identified as authentic. This affects TF-Mv1.6.0, TF-Mv1.6.1, TF-Mv1.7.0, and TF-Mv1.8.

7.5 CVSS 3.1 High EPSS 0.39% · top 69.9% CWE-697 · CWE-697
7.5CVSS 3.1 base score
0.39%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
4References, 2 tagged exploit
17 Jun 2026Last modified by NVD

Description

In Trusted Firmware-M through TF-Mv1.8.0, for platforms that integrate the CryptoCell accelerator, when the CryptoCell PSA Driver software Interface is selected, and the Authenticated Encryption with Associated Data Chacha20-Poly1305 algorithm is used, with the single-part verification function (defined during the build-time configuration phase) implemented with a dedicated function (i.e., not relying on usage of multipart functions), the buffer comparison during the verification of the authentication tag does not happen on the full 16 bytes but just on the first 4 bytes, thus leading to the possibility that unauthenticated payloads might be identified as authentic. This affects TF-Mv1.6.0, TF-Mv1.6.1, TF-Mv1.7.0, and TF-Mv1.8.

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

Affected products

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

References

Track CVE-2023-40271 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.

5.5CVE-2021-27562Arm Trusted Firmware-M out-of-bounds write in NSPE handler modeTrusted Firmware-M through 1.2 mishandles secure function calls made from the Non-Secure Processing Environment handler mode, allowing an out-of-boun…KEVEPSS 3.1%analysed7.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-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%9.2CVE-2024-5217ServiceNow Now Platform input validation flaw enables unauthenticated RCEServiceNow's Washington DC, Vancouver, and earlier Now Platform releases contain an input validation vulnerability (CWE-184 incomplete list of disall…KEVEPSS 100%analysed7.5CVE-2020-5849Unraid authentication bypass in version 6.8.0Unraid 6.8.0 contains an authentication bypass (CWE-697, incorrect comparison) that lets an unauthenticated remote party get past login checks. The r…KEVEPSS 93%analysed

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