Skip to content
Heist/ feed
Back to feed
Medium

Fapi Verify Quote: Does not detect if quote was not generated by TPM

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-29040
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 18:24 UTC · Revision 1

Source evidence

Fapi Verify Quote: Does not detect if quote was not generated by TPM

core-osv · Original source

Published 28 Jun 2024, 21:02 UTC

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.

osv:CVE-2024-29040
Complete source record
{
  "id": "5632765a51e3f08177bfb6500e03f3fb3baf1fa71d6dcccfb4a41f1a34182096",
  "url": "https://osv.dev/vulnerability/CVE-2024-29040",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Fapi Verify Quote: Does not detect if quote was not generated by TPM",
    "summary": "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.",
    "evidence": "osv:CVE-2024-29040",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2024-29040",
      "aliases": [
        "CVE-2024-29040",
        "GHSA-837m-jw3m-h9p6"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/tpm2-software/tpm2-tss",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "46a1079d5edaaba5268d18e7a7a461f2552c5465"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "4.1.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "46a1079d5edaaba5268d18e7a7a461f2552c5465"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "4.1.0"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "4.1.0"
                      }
                    ],
                    "source": "DESCRIPTION"
                  }
                ]
              }
            }
          ],
          "versions": [
            "4.1.0-rc1",
            "4.1.0-rc0",
            "4.0.0",
            "3.2.0",
            "3.0.0",
            "2.4.0",
            "2.0.0",
            "1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-29040.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:38.323029023Z",
      "provider": "osv",
      "references": [
        "https://github.com/tpm2-software/tpm2-tss/releases/tag/4.1.0",
        "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/",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/29xxx/CVE-2024-29040.json",
        "https://github.com/tpm2-software/tpm2-tss/security/advisories/GHSA-837m-jw3m-h9p6",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-29040"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-502"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/29xxx/CVE-2024-29040.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-29040",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 505640,
  "published_at": "2024-06-28T21:02:04.076+00:00"
}