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.

Severity (CVSS 3.1)9.1Critical
Exploit odds (30 days)1.0%top 37.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
AlmaLinux:9tpm2-tools5.2-4.el9ALSA-2024:9424
Alpine:v3.21tpm2-tools5.7-r0ALPINE-CVE-2024-29039
Alpine:v3.22tpm2-tools5.7-r0ALPINE-CVE-2024-29039
Alpine:v3.23tpm2-tools5.7-r0ALPINE-CVE-2024-29039
Alpine:v3.24tpm2-tools5.7-r0ALPINE-CVE-2024-29039
Debian:12tpm2-toolsno fix listedDEBIAN-CVE-2024-29039
Debian:13tpm2-tools5.7-1DEBIAN-CVE-2024-29039
Debian:14tpm2-tools5.7-1DEBIAN-CVE-2024-29039
Rocky Linux:9tpm2-tools0:5.2-4.el9RLSA-2024:9424
Ubuntu:22.04:LTStpm2-toolsno fix listedUBUNTU-CVE-2024-29039
Ubuntu:24.04:LTStpm2-toolsno fix listedUBUNTU-CVE-2024-29039
Ubuntu:25.10tpm2-toolsno fix listedUBUNTU-CVE-2024-29039
Ubuntu:26.04:LTStpm2-toolsno fix listedUBUNTU-CVE-2024-29039
Ubuntu:26.10tpm2-toolsno fix listedUBUNTU-CVE-2024-29039

Affected products (as reported)

VendorProductVersions
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