VDB

CVE-2024-29040

CVE-2024-29040 PUBLISHED CVSS 4.3 MEDIUM

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.

PackageEcosystemFixed in
tpm2-tss-develAmazon Linux4.0.2-1.amzn2023
tpm2-tssAlpine4.1.1-r0, 4.0.2-r0
tpm2-tss-fapiAmazon Linux4.0.2-1.amzn2023
tpm2_software_stacktpm2_software_stack_project4.1.0

Risk scores

CVSS 3.1
4.3
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N

Affected products

VendorProductVersions
tpm2-softwaretpm2-tss< 4.1.0
amazon:2023tpm2-tss-devel0
alpinetpm2-tss0, 0
tpm2_software_stack_projecttpm2_software_stack0
amazon:2023tpm2-tss-fapi0
tpm2-softwaretpm2-tss0
amazon:2023tpm2-tss0

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›