CVE-2024-29040
Fapi Verify Quote: Does not detect if quote was not generated by TPM
Reported by github_m · Published June 28, 2024
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| tpm2-tss-devel | Amazon Linux | 4.0.2-1.amzn2023 |
| tpm2-tss | Alpine | 4.1.1-r0, 4.0.2-r0 |
| tpm2-tss-fapi | Amazon Linux | 4.0.2-1.amzn2023 |
| tpm2_software_stack | tpm2_software_stack_project | 4.1.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| tpm2-software | tpm2-tss | < 4.1.0 |
| amazon:2023 | tpm2-tss-devel | 0 |
| alpine | tpm2-tss | 0, 0 |
| tpm2_software_stack_project | tpm2_software_stack | 0 |
| amazon:2023 | tpm2-tss-fapi | 0 |
| tpm2-software | tpm2-tss | 0 |
| amazon:2023 | tpm2-tss | 0 |
Timeline
- Jun 15, 2024 CVE Published
- Jun 29, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (10 in total, the first dated here)
- Jan 14, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-29040
vulnetix vdb fixes CVE-2024-29040
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-29040/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/tpm2-software/tpm2-tss/security/advisories/GHSA-837m-jw3m-h9p6 x_refsource_CONFIRM
- https://github.com/tpm2-software/tpm2-tss/releases/tag/4.1.0 x_refsource_MISC
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GI4JFEZBKQQUPJ4RWK6IHEWXAFCEJDPI/ url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EFR7SVEWCOXORHPCLLGXEMHFMIGG2MFE/ url