Bug 2278077 (CVE-2024-29040) - CVE-2024-29040 tpm2-tss: arbitrary quote data may go undetected by Fapi_VerifyQuote
Summary: CVE-2024-29040 tpm2-tss: arbitrary quote data may go undetected by Fapi_Verif...
Keywords:
Status: NEW
Alias: CVE-2024-29040
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2292189
Blocks: 2278069
TreeView+ depends on / blocked
 
Reported: 2024-05-01 01:29 UTC by Robb Gatica
Modified: 2024-06-13 11:50 UTC (History)
0 users

Fixed In Version: tpm2-tss 4.1.0
Doc Type: ---
Doc Text:
A flaw was found in the tpm2-tss package, where it was not checked to see if the magic number in the attest is equal to the TPM2_GENERATED_VALUE. This flaw allows an attacker to generate arbitrary quote data, which may not be detected by Fapi_VerifyQuote.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Robb Gatica 2024-05-01 01:29:28 UTC
After deserializing the quote info it was not checked whether the magic number in the attest is equal TPM2_GENERATED_VALUE. So a malicious attacker could generate arbitrary quote data which was not detected by Fapi_VerifyQuote. Now the number magic number is checked in verify quote and also
in the deserialization of TPM2_GENERATED. The check is also added to the Unmarshal function for TPMS_ATTEST.

Reference:
https://github.com/tpm2-software/tpm2-tss/commit/710cd0b6adf3a063f34a8e92da46df7a107d9a99

Comment 2 Dhananjay Arunesh 2024-06-13 11:23:45 UTC
Created tpm2-tss tracking bugs for this issue:

Affects: fedora-all [bug 2292189]


Note You need to log in before you can comment on or make changes to this bug.