Bug 1758620 (CVE-2019-14563)

Summary: CVE-2019-14563 edk2: numeric truncation in MdeModulePkg/PiDxeS3BootScriptLib
Product: [Other] Security Response Reporter: Riccardo Schirone <rschiron>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: berrange, crobinso, kraxel, lersek, pbonzini, philmd, security-response-team, virt-maint, 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: 2020-04-28 16:34:22 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: 1801259, 1801260, 1801273, 1801274    
Bug Blocks: 1737084    

Description Riccardo Schirone 2019-10-04 15:53:33 UTC
It is possible for S3BootScriptLib APIs to cause numeric truncations that may lead to S3 boot script entry with wrong size being returned. This may lead to memory corruption.

Affected functions:
S3BootScriptSaveIoWrite
S3BootScriptSaveMemWrite
S3BootScriptSavePciCfgWrite
S3BootScriptSavePciCfg2Write
S3BootScriptSaveSmbusExecute
S3BootScriptSaveInformation
S3BootScriptSaveInformationAsciiString
S3BootScriptLabel (happen in S3BootScriptLabelInternal())

Comment 6 Riccardo Schirone 2020-02-10 14:28:48 UTC
Created edk2 tracking bugs for this issue:

Affects: epel-all [bug 1801260]
Affects: fedora-all [bug 1801259]

Comment 9 Riccardo Schirone 2020-02-10 14:44:43 UTC
Upstream bug:
https://bugzilla.tianocore.org/show_bug.cgi?id=2001

Comment 10 errata-xmlrpc 2020-04-28 15:43:23 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2020:1712 https://access.redhat.com/errata/RHSA-2020:1712

Comment 11 Product Security DevOps Team 2020-04-28 16:34:22 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-2019-14563