Vulnerability · Published Jun 28, 2024 · Assigned by GitHub_M
CVE-2024-29039Missing check in tpm2_checkquote allows attackers to misrepresent the TPM state
Critical 9.1
In plain English
A critical-severity security flaw in tpm2-tools from tpm2-software. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 63% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
tpm2 is the source repository for the Trusted Platform Module (TPM2.0) tools. This vulnerability allows attackers to manipulate tpm2_checkquote outputs by altering the TPML_PCR_SELECTION in the PCR input file. As a result, digest values are incorrectly mapped to PCR slots and banks, providing a misleading picture of the TPM state. This issue has been patched in version 5.7.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:9 | tpm2-tools | 5.2-4.el9 | ALSA-2024:9424 |
| Alpine:v3.21 | tpm2-tools | 5.7-r0 | ALPINE-CVE-2024-29039 |
| Alpine:v3.22 | tpm2-tools | 5.7-r0 | ALPINE-CVE-2024-29039 |
| Alpine:v3.23 | tpm2-tools | 5.7-r0 | ALPINE-CVE-2024-29039 |
| Alpine:v3.24 | tpm2-tools | 5.7-r0 | ALPINE-CVE-2024-29039 |
| Debian:12 | tpm2-tools | no fix listed | DEBIAN-CVE-2024-29039 |
| Debian:13 | tpm2-tools | 5.7-1 | DEBIAN-CVE-2024-29039 |
| Debian:14 | tpm2-tools | 5.7-1 | DEBIAN-CVE-2024-29039 |
| Rocky Linux:9 | tpm2-tools | 0:5.2-4.el9 | RLSA-2024:9424 |
| Ubuntu:22.04:LTS | tpm2-tools | no fix listed | UBUNTU-CVE-2024-29039 |
| Ubuntu:24.04:LTS | tpm2-tools | no fix listed | UBUNTU-CVE-2024-29039 |
| Ubuntu:25.10 | tpm2-tools | no fix listed | UBUNTU-CVE-2024-29039 |
| Ubuntu:26.04:LTS | tpm2-tools | no fix listed | UBUNTU-CVE-2024-29039 |
| Ubuntu:26.10 | tpm2-tools | no fix listed | UBUNTU-CVE-2024-29039 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| tpm2-software | tpm2-tools | < 5.7 |
Weakness: CWE-807 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
References
- https://github.com/tpm2-software/tpm2-tools/security/advisories/GHSA-8rjm-5f5f-h4q6 x_refsource_CONFIRM
- https://github.com/tpm2-software/tpm2-tools/releases/tag/5.7 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/