CVEfocus › CVE database › CVE-2024-29040

CVE-2024-29040Fapi Verify Quote: Does not detect if quote was not generated by TPM

CVSS 4.3 MediumEPSS 0.5% (higher than 37% of CVEs)Published 2024-06-28Updated 2025-11-04Assigner: GitHub_M

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.

CWE-502

What to do

Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.

Debian, Red Hat have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

10Fixed
3Fix pending
3Will not fix
6Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04tpm2-tssFixed4.0.1-7.1ubuntu5.1UBUNTU-CVE-2024-29040
Ubuntu 22.04tpm2-tssFixed3.2.0-1ubuntu1.1UBUNTU-CVE-2024-29040
Ubuntu 20.04tpm2-tssNot affected
vulnerable_code_not_present
Debian 14tpm2-tssFixed4.1.0-1DEBIAN-CVE-2024-29040
Debian 13tpm2-tssFixed4.1.0-1DEBIAN-CVE-2024-29040
Debian 12tpm2-tssFix pendingDEBIAN-CVE-2024-29040
Red Hat Enterprise Linux 10tpm2-tssNot affected
Red Hat Enterprise Linux 10tpm2-tss-develNot affected
Red Hat Enterprise Linux 10tpm2-tss-fapiNot affected
Red Hat Enterprise Linux 9tpm2-tssFix pending
Affected
Red Hat Enterprise Linux 9tpm2-tss-develFix pending
Affected
Red Hat Enterprise Linux 8tpm2-tssNot affected
Red Hat Enterprise Linux 8tpm2-tss-develNot affected
Red Hat Enterprise Linux 7tpm2-tssWill not fix
Out of support scope
Red Hat Enterprise Linux 7tpm2-tss-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7tpm2-tss-utilsWill not fix
Out of support scope
Alpine Linux 3.24tpm2-tssFixed4.1.1-r0ALPINE-CVE-2024-29040
Alpine Linux 3.23tpm2-tssFixed4.1.1-r0ALPINE-CVE-2024-29040
Alpine Linux 3.22tpm2-tssFixed4.1.1-r0ALPINE-CVE-2024-29040
Alpine Linux 3.21tpm2-tssFixed4.1.1-r0ALPINE-CVE-2024-29040
Alpine Linux 3.20tpm2-tssFixed4.1.1-r0ALPINE-CVE-2024-29040
Alpine Linux 3.19tpm2-tssFixed4.0.2-r0ALPINE-CVE-2024-29040

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.