Bug 1939145 (CVE-2021-3476)

Summary: CVE-2021-3476 OpenEXR: Undefined-shift in Imf_2_5::unpack14
Product: [Other] Security Response Reporter: Michael Kaplan <mkaplan>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: cbpilm, jeischma, jridky, kwizart, rdieter, rh-spice-bugs
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: OpenEXR 3.0.0-beta, OpenEXR 2.4.3 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in OpenEXR's B44 uncompression functionality. An attacker who is able to submit a crafted file to OpenEXR could trigger shift overflows, potentially affecting application availability.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-02 23:18:45 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: 1939171, 1944371, 1944372, 1944373, 1944374    
Bug Blocks: 1929339, 1944370    

Description Michael Kaplan 2021-03-15 17:25:53 UTC
Undefined-shift in Imf_2_5::unpack14

Comment 1 Michael Kaplan 2021-03-15 17:25:57 UTC
External References:

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

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

Affects: fedora-all [bug 1939171]

Comment 3 Todd Cullum 2021-03-29 19:23:52 UTC
Flaw Summary:

In OpenEXR/IlmImf/ImfB44Compressor.cpp, bitwise shift calculations could result in undesired unsigned integer wraparounds. The upstream patch modifies these calculations to ignore the unused bits.

Comment 7 Cary Phillips 2021-04-23 01:23:09 UTC
This is fixed in OpenEXR v2.5.4, v2.5.5, and v3.0.1+.