Bug 1223690 (CVE-2024-29040)

Summary: VUL-0: CVE-2024-29040: tpm2-0-tss: arbitrary quote data may go undetected by Fapi_VerifyQuote
Product: [Novell Products] SUSE Security Incidents Reporter: SMASH SMASH <smash_bz>
Component: IncidentsAssignee: Matthias Gerstner <matthias.gerstner>
Status: IN_PROGRESS --- QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P3 - Medium CC: camila.matos, carlos.lopez
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/403799/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-29040:5.5:(AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N)
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description SMASH SMASH 2024-05-02 10:36:26 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

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-29040
https://bugzilla.redhat.com/show_bug.cgi?id=2278077
Comment 2 Matthias Gerstner 2024-05-03 14:16:21 UTC
The FAPI library is not yet present in the following codestreams:

- SUSE:SLE-12-SP3:Update
- SUSE:SLE-12-SP5:Update
- SUSE:SLE-15:Update

I submitted updates for:

- SUSE:SLE-15-SP3:Update
- SUSE:SLE-15-SP4:Update
- SUSE:SLE-15-SP6:Update

The Factory package has been bumped to version 4.1 containing the fixes.

Once the Factory submission has been accepted, I will forward this package to
SUSE:ALP:Source:Standard:1.0, which is also affected.
Comment 4 OBSbugzilla Bot 2024-05-06 11:25:01 UTC
This is an autogenerated message for OBS integration:
This bug (1223690) was mentioned in
https://build.opensuse.org/request/show/1172147 Factory / tpm2-0-tss
Comment 6 Maintenance Automation 2024-05-10 16:30:01 UTC
SUSE-SU-2024:1605-1: An update that solves one vulnerability can now be installed.

Category: security (moderate)
Bug References: 1223690
CVE References: CVE-2024-29040
Maintenance Incident: [SUSE:Maintenance:33670](https://smelt.suse.de/incident/33670/)
Sources used:
openSUSE Leap 15.3 (src):
 tpm2-0-tss-2.4.5-150300.3.9.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 7 Maintenance Automation 2024-05-14 12:30:06 UTC
SUSE-SU-2024:1635-1: An update that solves one vulnerability can now be installed.

Category: security (moderate)
Bug References: 1223690
CVE References: CVE-2024-29040
Maintenance Incident: [SUSE:Maintenance:33671](https://smelt.suse.de/incident/33671/)
Sources used:
openSUSE Leap 15.4 (src):
 tpm2-0-tss-3.1.0-150400.3.6.1
openSUSE Leap Micro 5.3 (src):
 tpm2-0-tss-3.1.0-150400.3.6.1
openSUSE Leap Micro 5.4 (src):
 tpm2-0-tss-3.1.0-150400.3.6.1
openSUSE Leap 15.5 (src):
 tpm2-0-tss-3.1.0-150400.3.6.1
SUSE Linux Enterprise Micro for Rancher 5.3 (src):
 tpm2-0-tss-3.1.0-150400.3.6.1
SUSE Linux Enterprise Micro 5.3 (src):
 tpm2-0-tss-3.1.0-150400.3.6.1
SUSE Linux Enterprise Micro for Rancher 5.4 (src):
 tpm2-0-tss-3.1.0-150400.3.6.1
SUSE Linux Enterprise Micro 5.4 (src):
 tpm2-0-tss-3.1.0-150400.3.6.1
SUSE Linux Enterprise Micro 5.5 (src):
 tpm2-0-tss-3.1.0-150400.3.6.1
Basesystem Module 15-SP5 (src):
 tpm2-0-tss-3.1.0-150400.3.6.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.