Bug 1829014 (CVE-2020-11758)

Summary: CVE-2020-11758 OpenEXR: out-of-bounds read in ImfOptimizedPixelReading.h
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:18 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: 1829015, 1829016, 1834983, 1834984    
Bug Blocks: 1829017    

Description Guilherme de Almeida Suckevicz 2020-04-28 17:34:02 UTC
An issue was discovered in OpenEXR before 2.4.1. There is an out-of-bounds read in ImfOptimizedPixelReading.h.

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:34:24 UTC
Created OpenEXR tracking bugs for this issue:

Affects: fedora-all [bug 1829016]


Created mingw-OpenEXR tracking bugs for this issue:

Affects: fedora-all [bug 1829015]

Comment 2 Todd Cullum 2020-05-12 00:19:45 UTC
This looks like it may be caused by the same root issue as CVE-2020-11759 - see upstream commit[1]. Note the patch is not in ImfOptimizedPixelReading.h but there's a call to DeepScanLineInputFile::DeepScanLineInputFile() earlier in the call stack which was patched.

1. https://github.com/AcademySoftwareFoundation/openexr/commit/e79d2296496a50826a15c667bf92bdc5a05518b4

Comment 3 Todd Cullum 2020-05-12 00:21:50 UTC
Statement:

The versions of OpenEXR shipped with Red Hat Enterprise Linux 7 and prior are not affected by this vulnerability.

Comment 4 Todd Cullum 2020-05-12 19:49:05 UTC
The patch for this was actually done here: https://github.com/AcademySoftwareFoundation/openexr/pull/643/commits/8b97a010d2f74f5125e8608c67c638db059c7cbd