Bug 1852015 (CVE-2020-15304)

Summary: CVE-2020-15304 OpenEXR: An invalid tiled input file could cause invalid memory access in TiledInputFile::TiledInputFile() in IlmImf/ImfTiledInputFile.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:41 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: 1852016, 1852017, 1910630    
Bug Blocks: 1852018    

Description Michael Kaplan 2020-06-29 15:28:45 UTC
An issue was discovered in OpenEXR before 2.5.2. An invalid tiled input file could cause invalid memory access in TiledInputFile::TiledInputFile() in IlmImf/ImfTiledInputFile.cpp, as demonstrated by a NULL pointer dereference.

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/727
https://github.com/AcademySoftwareFoundation/openexr/releases/tag/v2.5.2

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

Affects: fedora-all [bug 1852016]


Created mingw-OpenEXR tracking bugs for this issue:

Affects: fedora-all [bug 1852017]

Comment 2 Todd Cullum 2020-07-01 22:24:51 UTC
In TiledInputFile::TiledInputFile() there's a catch block which would attempt to delete memory pointed to by NULL _data->tileBuffers pointers. The data is retrieved from an input stream that could accept an invalid tiled input file. This would cause a crash.

Comment 3 Todd Cullum 2020-07-01 22:25:57 UTC
Statement:

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

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