Bug 1852011 (CVE-2020-15305)

Summary: CVE-2020-15305 OpenEXR: Invalid input could cause a use-after-free in DeepScanLineInputFile::DeepScanLineInputFile() in IlmImf/ImfDeepScanLineInputFile.cpp
Product: [Other] Security Response Reporter: Michael Kaplan <mkaplan>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: jeischma, jridky, kwizart, manisandro, rdieter, rh-spice-bugs
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: OpenEXR 2.5.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-02 01:27:38 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: 1852012, 1852013, 1910631    
Bug Blocks: 1852018    

Description Michael Kaplan 2020-06-29 15:26:10 UTC
An issue was discovered in OpenEXR before 2.5.2. Invalid input could cause a use-after-free in DeepScanLineInputFile::DeepScanLineInputFile() in IlmImf/ImfDeepScanLineInputFile.cpp.

References:

https://github.com/AcademySoftwareFoundation/openexr/blob/master/CHANGES.md
https://github.com/AcademySoftwareFoundation/openexr/blob/master/SECURITY.md
https://github.com/AcademySoftwareFoundation/openexr/pull/730
https://github.com/AcademySoftwareFoundation/openexr/releases/tag/v2.5.2

Comment 1 Michael Kaplan 2020-06-29 15:26:31 UTC
Created OpenEXR tracking bugs for this issue:

Affects: fedora-all [bug 1852012]


Created mingw-OpenEXR tracking bugs for this issue:

Affects: fedora-all [bug 1852013]

Comment 2 Todd Cullum 2020-07-01 21:50:00 UTC
There's a case in which DeepScanLineInputFile::DeepScanLineInputFile() could fail to initialize a header, then free some heap memory (_data) without throwing an exception. Thus, upon the next deference of the heap memory, this would cause a use-after-free when passed to readLineOffsets(). This would likely result in a crash.

Comment 3 Todd Cullum 2020-07-01 21:55:19 UTC
Statement:

The versions of OpenEXR shipped with Red Hat Enterprise Linux 6, 7, and 8 are not affected by this flaw as the affected code was introduced in a newer version of OpenEXR.

Comment 4 Product Security DevOps Team 2020-07-02 01:27:38 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-2020-15305