Bug 1964427 (CVE-2021-3565)

Summary: CVE-2021-3565 tpm2-tools: fixed AES wrapping key in tpm2_import
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: bhu, core-kernel-mgr, fmartine, jsnitsel, pbrobinson, yunying.sun
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: tpm2-tools 5.1.1, tpm2-tools 4.3.2 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in tpm2-tools. tpm2_import used a fixed AES key for the inner wrapper, potentially allowing a MITM attacker to unwrap the inner portion and reveal the key being imported. The highest threat from this vulnerability is to data confidentiality.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-10 00:22:26 UTC 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: 1964428, 1964429, 1965981, 1965982    
Bug Blocks: 1964113, 1964430    

Description Guilherme de Almeida Suckevicz 2021-05-25 13:26:14 UTC
During tpm2_import command invocation a fixed AES wrapping key is used. This presents a weakness in that, when no encrypted session with the TPM is used, the encrypted inner wrapper key is known and thus an entity performing an MITM on the TPM would be able to unwrap the inner portion and reveal the key being imported.

Comment 1 Guilherme de Almeida Suckevicz 2021-05-25 13:27:05 UTC
Created tpm2-tools tracking bugs for this issue:

Affects: epel-7 [bug 1964429]
Affects: fedora-all [bug 1964428]

Comment 5 errata-xmlrpc 2021-11-09 18:41:54 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2021:4413 https://access.redhat.com/errata/RHSA-2021:4413

Comment 6 Product Security DevOps Team 2021-11-10 00:22:24 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-3565