CVE-2024-29040Fapi Verify Quote: Does not detect if quote was not generated by TPM
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | tpm2-tss | Fixed | 4.0.1-7.1ubuntu5.1 | UBUNTU-CVE-2024-29040 |
| Ubuntu 22.04 | tpm2-tss | Fixed | 3.2.0-1ubuntu1.1 | UBUNTU-CVE-2024-29040 |
| Ubuntu 20.04 | tpm2-tss | Not affected vulnerable_code_not_present | ||
| Debian 14 | tpm2-tss | Fixed | 4.1.0-1 | DEBIAN-CVE-2024-29040 |
| Debian 13 | tpm2-tss | Fixed | 4.1.0-1 | DEBIAN-CVE-2024-29040 |
| Debian 12 | tpm2-tss | Fix pending | DEBIAN-CVE-2024-29040 | |
| Red Hat Enterprise Linux 10 | tpm2-tss | Not affected | ||
| Red Hat Enterprise Linux 10 | tpm2-tss-devel | Not affected | ||
| Red Hat Enterprise Linux 10 | tpm2-tss-fapi | Not affected | ||
| Red Hat Enterprise Linux 9 | tpm2-tss | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | tpm2-tss-devel | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | tpm2-tss | Not affected | ||
| Red Hat Enterprise Linux 8 | tpm2-tss-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | tpm2-tss | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | tpm2-tss-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | tpm2-tss-utils | Will not fix Out of support scope | ||
| Alpine Linux 3.24 | tpm2-tss | Fixed | 4.1.1-r0 | ALPINE-CVE-2024-29040 |
| Alpine Linux 3.23 | tpm2-tss | Fixed | 4.1.1-r0 | ALPINE-CVE-2024-29040 |
| Alpine Linux 3.22 | tpm2-tss | Fixed | 4.1.1-r0 | ALPINE-CVE-2024-29040 |
| Alpine Linux 3.21 | tpm2-tss | Fixed | 4.1.1-r0 | ALPINE-CVE-2024-29040 |
| Alpine Linux 3.20 | tpm2-tss | Fixed | 4.1.1-r0 | ALPINE-CVE-2024-29040 |
| Alpine Linux 3.19 | tpm2-tss | Fixed | 4.0.2-r0 | ALPINE-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.
- tpm2-software tpm2-tss: affected: < 4.1.0
References
- 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
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.