Bug 2047745 (CVE-2021-45942)

Summary: CVE-2021-45942 OpenEXR: heap-based buffer overflow in Imf_3_1:LineCompositeTask:execute
Product: [Other] Security Response Reporter: Marian Rehak <mrehak>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: bdettelb, jridky, manisandro, rdieter, rh-spice-bugs
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: OpenEXR 3.1.4 Doc Type: If docs needed, set a value
Doc Text:
A heap-based-buffer-overflow vulnerability was found in OpenEXR's composite_line() function in the 'ImfCompositeDeepScanLine.cpp' file. This flaw allows an attacker to pass a specially crafted file to OpenEXR, by tricking the victim into opening it, triggering a heap-based buffer overflow. This leads to memory corruption and allows an attacker to cause a denial of service.
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 2047746, 2051591, 2051592, 2051596, 2051598    
Bug Blocks: 2047750    

Description Marian Rehak 2022-01-28 13:13:05 UTC
OpenEXR 3.1.x before 3.1.4 has a heap-based buffer overflow in Imf_3_1::LineCompositeTask::execute (called from IlmThread_3_1::NullThreadPoolProvider::addTask and IlmThread_3_1::ThreadPool::addGlobalTask). NOTE: db217f2 may be inapplicable.

Reference:

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

Comment 1 Marian Rehak 2022-01-28 13:13:23 UTC
Created OpenEXR tracking bugs for this issue:

Affects: fedora-all [bug 2047746]

Comment 2 juneau 2022-01-28 16:12:18 UTC
Marking quay-io-3 affected/delegated. Affect code exists in container image* but likelihood of exploit is unknown.

*quay-io-3/quayio/flush-redis:latest/openexr-2.2.1-4.1 https://quay.io/app-sre/flush-redis:latest

Comment 5 TEJ RATHI 2022-02-07 14:37:14 UTC
Filing trackers for RHEL-8,9. So that engineering can have closer look and decide accordingly.

Comment 8 TEJ RATHI 2022-02-07 15:18:34 UTC
Created mingw-openexr tracking bugs for this issue:

Affects: fedora-all [bug 2051598]