Bug 1829010 (CVE-2020-11759)

Summary: CVE-2020-11759 OpenEXR: out-of-bounds write due to integer overflows in CompositeDeepScanLine::Data::handleDeepFrameBuffer and readSampleCountForLineBlock
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX 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.4.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-01 17:12:01 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: 1829018, 1829019, 1834526, 1834527    
Bug Blocks: 1829017    

Description Guilherme de Almeida Suckevicz 2020-04-28 17:30:57 UTC
An issue was discovered in OpenEXR before 2.4.1. Because of integer overflows in CompositeDeepScanLine::Data::handleDeepFrameBuffer and readSampleCountForLineBlock, an attacker can write to an out-of-bounds pointer.

References:
https://bugs.chromium.org/p/project-zero/issues/detail?id=1987
https://github.com/AcademySoftwareFoundation/openexr/blob/master/CHANGES.md#version-241-february-11-2020

Comment 1 Guilherme de Almeida Suckevicz 2020-04-28 17:36:38 UTC
Created OpenEXR tracking bugs for this issue:

Affects: fedora-all [bug 1829019]


Created mingw-OpenEXR tracking bugs for this issue:

Affects: fedora-all [bug 1829018]

Comment 6 Todd Cullum 2020-05-11 20:52:22 UTC
Appears to be caused by an integer overflow due to use of an int type rather than ptrdiff_t type in CompositeDeepScanLine::Data::handleDeepFrameBuffer.

Comment 7 Todd Cullum 2020-05-11 20:57:01 UTC
Statement:

The versions of OpenEXR which are vulnerable to this flaw are not shipped in Red Hat Enterprise Linux 7 or prior.

Comment 8 Todd Cullum 2020-05-21 22:26:55 UTC
After speaking with upstream, the patch for this was actually: https://github.com/AcademySoftwareFoundation/openexr/pull/643/commits/41a99da450e749800182674012c8df002919e15a .