Bug 1960321 (CVE-2021-38578)

Summary: CVE-2021-38578 edk2: integer underflow in SmmEntryPoint function leads to potential SMM privilege escalation
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: berrange, crobinso, ddepaula, jferlan, jmaloy, kraxel, lersek, pbonzini, philmd, security-response-team, virt-maint, virt-maint, xuwei
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in edk2. A integer underflow in the SmmEntryPoint function leads to a write into the SMM region allowing a local attacker with administration privileges on the system to execute code within the SMM privileged context. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-09 14:45:53 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: 1989856, 1989857, 2096378, 2096379    
Bug Blocks: 1959708    

Description Guilherme de Almeida Suckevicz 2021-05-13 16:32:19 UTC
Existing CommBuffer checks in SmmEntryPoint will not catch underflow when computing BufferSize.

Reference:
https://bugzilla.tianocore.org/show_bug.cgi?id=3387

Comment 5 Mauro Matteo Cascella 2022-06-13 16:39:29 UTC
Created edk2 tracking bugs for this issue:

Affects: epel-7 [bug 2096378]
Affects: fedora-all [bug 2096379]

Comment 6 Gerd Hoffmann 2022-06-14 11:59:28 UTC
https://edk2.groups.io/g/devel/message/90516

Comment 8 errata-xmlrpc 2023-05-09 07:13:09 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:2165 https://access.redhat.com/errata/RHSA-2023:2165

Comment 9 Product Security DevOps Team 2023-05-09 14:45:50 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-38578