Bug 1758595 (CVE-2019-14561)

Summary: CVE-2019-14561 edk2: improper input validation leads to memory corruption when loading PE sections
Product: [Other] Security Response Reporter: Riccardo Schirone <rschiron>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: berrange, ddepaula, jferlan, kraxel, lersek, pbonzini, philmd, security-response-team, virt-maint
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-25 22:12:11 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: 1892355    
Bug Blocks: 1801279    

Description Riccardo Schirone 2019-10-04 14:57:23 UTC
Function PeCoffLoaderLoadImage() in library MdePkg/BasePeCoffLib does not properly compute the End address of PE sections, allowing the End address to be before the Base one. A malicious PE could be used to corrupt the memory during the boot process, by using a VirtualSize equals to 0.