Bug 2257583 (CVE-2022-36764)

Summary: CVE-2022-36764 EDK2: heap buffer overflow in Tcg2MeasurePeImage()
Product: [Other] Security Response Reporter: TEJ RATHI <trathi>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedKeywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A heap-based buffer overflow flaw was found via the Tcg2MeasurePeImage() function in EDK2. Successful exploitation requires a local attacker to trigger an integer overflow in the calculation of the EventSize variable at DxeTpm2MeasureBootLib.c, leading to the heap-buffer overflow, presenting a moderate risk to confidentiality and integrity. However, the primary consequence is likely a crash or denial of service.
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: 2257590, 2257587    
Bug Blocks: 2257597    

Description TEJ RATHI 2024-01-10 06:12:12 UTC
EDK2 is susceptible to a vulnerability in the Tcg2MeasurePeImage() function, allowing a user to trigger a heap buffer overflow via a local network. Successful exploitation of this vulnerability may result in a compromise of confidentiality, integrity, and/or availability.

https://github.com/tianocore/edk2/security/advisories/GHSA-4hcq-p8q8-hj8j

Comment 1 TEJ RATHI 2024-01-10 06:35:57 UTC
Created edk2 tracking bugs for this issue:

Affects: epel-all [bug 2257590]
Affects: fedora-all [bug 2257587]

Comment 3 errata-xmlrpc 2024-04-30 09:57:40 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

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

Comment 4 errata-xmlrpc 2024-05-22 09:35:35 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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