Bug 2278071 (CVE-2024-29038)

Summary: CVE-2024-29038 tpm2-tools: arbitrary quote data may go undetected by tpm2_checkquote
Product: [Other] Security Response Reporter: Robb Gatica <rgatica>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedKeywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: tpm2-tools 5.7 Doc Type: ---
Doc Text:
A flaw was found in the tpm2-tools package. This issue occurs due to a missing check whether the magic number in attest is equal to TPM2_GENERATED_VALUE, which can allow an attacker to generate arbitrary quote data that may not be detected by tpm2_checkquote.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2292187    
Bug Blocks: 2278069    

Description Robb Gatica 2024-05-01 00:24:55 UTC
It was not checked whether the magic number in the attest is equal to TPM2_GENERATED_VALUE. So an attacker could generate arbitrary quote data which was not detected by tpm2 checkquote.

References:
https://github.com/tpm2-software/tpm2-tools/commit/66d922d6547b7b4fe4f274fb2ec10b376e0e259c

Comment 2 Dhananjay Arunesh 2024-06-13 11:22:09 UTC
Created tpm2-tools tracking bugs for this issue:

Affects: fedora-all [bug 2292187]

Comment 5 errata-xmlrpc 2024-11-12 10:57:55 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2024:9424 https://access.redhat.com/errata/RHSA-2024:9424