Vulnerability · Published Jun 28, 2024 · Assigned by GitHub_M
CVE-2024-29040Fapi Verify Quote: Does not detect if quote was not generated by TPM
Medium 4.3
In plain English
A medium-severity unsafe deserialization in tpm2-tss from tpm2-software. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 26% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | tpm2-tss | 4.1.1-r0 | ALPINE-CVE-2024-29040 |
| Alpine:v3.21 | tpm2-tss | 4.1.1-r0 | ALPINE-CVE-2024-29040 |
| Alpine:v3.22 | tpm2-tss | 4.1.1-r0 | ALPINE-CVE-2024-29040 |
| Alpine:v3.23 | tpm2-tss | 4.1.1-r0 | ALPINE-CVE-2024-29040 |
| Alpine:v3.24 | tpm2-tss | 4.1.1-r0 | ALPINE-CVE-2024-29040 |
| Debian:12 | tpm2-tss | no fix listed | DEBIAN-CVE-2024-29040 |
| Debian:13 | tpm2-tss | 4.1.0-1 | DEBIAN-CVE-2024-29040 |
| Debian:14 | tpm2-tss | 4.1.0-1 | DEBIAN-CVE-2024-29040 |
| Ubuntu:22.04:LTS | tpm2-tss | 3.2.0-1ubuntu1.1 | USN-6796-1 |
| Ubuntu:22.04:LTS | tpm2-tss | 3.2.0-1ubuntu1.1 | UBUNTU-CVE-2024-29040 |
| Ubuntu:24.04:LTS | tpm2-tss | 4.0.1-7.1ubuntu5.1 | UBUNTU-CVE-2024-29040 |
| Ubuntu:24.04:LTS | tpm2-tss | 4.0.1-7.1ubuntu5.1 | USN-6796-1 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| tpm2-software | tpm2-tss | < 4.1.0 |
Weakness: CWE-502 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
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/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/EFR7SVEWCOXORHPCLLGXEMHFMIGG2MFE/