CVE-2023-40271: trustedfirmware trusted_firmware-m Incorrect Comparison
Vulnerability summary
CVE-2023-40271 is a high (CVSS 7.5) Incorrect Comparison vulnerability in trustedfirmware trusted_firmware-m. EPSS estimates a 0.39% chance of exploitation in the next 30 days, higher than 34.8% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (reference, Date unknown)
Source freshness unavailable
How is this decided?Timeline
- 08-09-2023PublishedVulnerability first disclosed.
- 26-09-2024Last modifiedVulnerability information updated.
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 metrics
1 score · 1 source · 1 versionEPSS trend
Probability
0.39%
Chance of exploitation in the next 30 days
Percentile
35%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.39% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (git.trustedfirmware.org)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Trustedfirmware1 product
- trusted_firmware-m1.6.0 | 1.6.1 | 1.7.0 | 1.8.0
1 vendor · 1 product