Bug 1939151 (CVE-2021-20303)

Summary: CVE-2021-20303 OpenEXR: Heap-buffer-overflow in Imf_2_5::copyIntoFrameBuffer
Product: [Other] Security Response Reporter: Michael Kaplan <mkaplan>
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, rdieter, rh-spice-bugs
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: OpenEXR 2.5.4 Doc Type: If docs needed, set a value
Doc Text:
There is a flaw in OpenEXR's dataWindowForTile function. An attacker who is able to submit a crafted file to be processed by OpenEXR could trigger an integer overflow, leading to an out-of-bounds write on the heap. The greatest impact of this flaw is to application availability, with some potential impact to data integrity as well.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-02 23:19:55 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: 1939178, 1944921, 1944922, 1944923    
Bug Blocks: 1929339, 2002259    

Description Michael Kaplan 2021-03-15 17:26:44 UTC
Heap-buffer-overflow in Imf_2_5::copyIntoFrameBuffer

Comment 1 Michael Kaplan 2021-03-15 17:26:48 UTC
External References:

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=25505

Comment 2 Michael Kaplan 2021-03-15 17:48:25 UTC
Created OpenEXR tracking bugs for this issue:

Affects: fedora-all [bug 1939178]

Comment 3 Todd Cullum 2021-03-30 23:19:37 UTC
Upstream PR which references patch commit and confirms it's association with aforementioned oss-fuzz report: https://github.com/AcademySoftwareFoundation/openexr/pull/831

Flaw summary:

An integer overflow in IlmImf/ImfTiledMisc.cpp function dataWindowForTile(), when dataWindow.min + tileSize > INT_MAX, could lead to an out-of-bounds write of heap buffer. The data written does not appear to be directly controllable via this flaw, but could be combined with other flaws to achieve a greater impact.