7.5

CVE-2023-40271: trustedfirmware trusted_firmware-m Incorrect Comparison

CVSS: 7.5v3.1HighModified
Published 08-09-2023Last modified 26-09-2024

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 31.2% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
40/100
0100
Medium · default modelHow is this calculated?
CVSS score
7.5/10
010
High · v3.1 (NVD)
EPSS score
0.39%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1reference

Timeline

  1. 08-09-2023
    PublishedVulnerability first disclosed.
  2. 26-09-2024
    Last 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 version

EPSS trend

Probability

0.39%

Chance of exploitation in the next 30 days

Percentile

31%

Versus all other CVEs

30-day change

0.00 pp

From 0.39% on 20-09-2026

20-09-202620-10-2026
EPSS score
0.39%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (git.trustedfirmware.org)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Trustedfirmware1 product

1 vendor · 1 product

References

2 links