What’s Vulnerable › Vulnerabilities
CVE-2024-29040: Fapi Verify Quote: Does not detect if quote was not generated by TPM
- Severity: medium (CVSS 4.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-06-28 · updated 2026-06-17
- Weakness: CWE-502
Description
This repository hosts source code implementing the Trusted Computing Group's (TCG) TPM2 Software Stack (TSS). The JSON Quote Info returned by Fapi_Quote has to be deserialized by Fapi_VerifyQuote to the TPM Structure `TPMS_ATTEST`. For the field `TPM2_GENERATED magic` of this structure any number can be used in the JSON structure. The verifier can receive a state which does not represent the actual, possibly malicious state of the device under test. The malicious device might get access to data it shouldn't, or can use services it shouldn't be able to. This issue has been patched in version 4.1.0.
Affected products
- Tpm2 Software Tpm2 Tools: before 4.1.0 — fixed in 4.1.0
How to fix
Upgrade to a fixed version: Tpm2 Software Tpm2 Tools 4.1.0. Check the vendor advisory for mitigations.
References
- https://github.com/tpm2-software/tpm2-tss/releases/tag/4.1.0
- https://github.com/tpm2-software/tpm2-tss/security/advisories/GHSA-837m-jw3m-h9p6
- https://github.com/tpm2-software/tpm2-tss/releases/tag/4.1.0
- https://github.com/tpm2-software/tpm2-tss/security/advisories/GHSA-837m-jw3m-h9p6
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EFR7SVEWCOXORHPCLLGXEMHFMIGG2MFE/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GI4JFEZBKQQUPJ4RWK6IHEWXAFCEJDPI/
Get alerted when CVE-2024-29040 or the next vulnerability affects your stack