Security Resilience

CVE-2023-40271

Trustedfirmware Trusted Firmware-M 1.6.0 … 1.8.0

Public PoC
Published
08 September 2023
Modified
05 June 2026
Patch / advisory
CVSS Score v3.1 7.5
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS Score 0.0039 31th percentile
Risk Priority 57 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2023-40271 is a high-severity Incorrect Comparison (CWE-697) vulnerability in Trustedfirmware Trusted Firmware-M. Its CVSS base score is 7.5 (High).

Operationally, ranked at the 31th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

Related Threats

CVEs Like This One

CVE-2023-51712Same product: Trustedfirmware Trusted Firmware-M
CVE-2021-27562Same product: Trustedfirmware Trusted Firmware-M
CVE-2026-40290Same vendor: Trustedfirmware
CVE-2026-25833Same vendor: Trustedfirmware
CVE-2026-40257Same vendor: Trustedfirmware
CVE-2024-49195Same vendor: Trustedfirmware
CVE-2026-34873Same vendor: Trustedfirmware
CVE-2024-23744Same vendor: Trustedfirmware
CVE-2026-25834Same vendor: Trustedfirmware
CVE-2026-41434Same vendor: Trustedfirmware

Affected Assets

trustedfirmware
trusted firmware-m
1.6.0, 1.6.1, 1.7.0, 1.8.0

Mitigating Controls

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

blocks

Secure development lifecycle includes code review and testing that can catch incorrect comparison logic.

blocks

Application security requirements can mandate correct comparison logic for security decisions.

blocks

Secure architecture principles can require robust comparison mechanisms for access decisions.

prevents

Secure coding standards directly address avoiding incorrect comparison operators and logic.

Hardening callouts derived

DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.

  • No fine-grained STIG row for CWE-697, a pillar-level weakness, and none of its children carries one either.

References