Heap-based buffer overflow in OpenEXR - CVE-2021-45942

 

Heap-based buffer overflow in OpenEXR - CVE-2021-45942

Published: January 27, 2022


Vulnerability identifier: #VU60052
CSH Severity: High
CVSS v4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-45942
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error within the Imf_3_1::LineCompositeTask::execute() method. A remote attacker can create a specially crafted file, trick the victim into opening it, trigger heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

OpenEXR
Debian Linux
SUSE Linux Enterprise Workstation Extension
SUSE Linux Enterprise Software Development Kit
SUSE Linux Enterprise Server
SUSE Linux Enterprise Realtime Extension
SUSE Linux Enterprise Module for Desktop Applications
openEuler
Fedora
libIlmImf-Imf_2_1-21-debuginfo-32bit
openexr-debugsource
openexr-debuginfo
openexr-devel
libIlmImf-Imf_2_1-21
libIlmImf-Imf_2_1-21-debuginfo
OpenEXR
libIlmImf-Imf_2_1-21-32bit
libIlmImfUtil-2_2-23-debuginfo
libIlmImfUtil-2_2-23
libIlmImf-2_2-23-debuginfo
libIlmImf-2_2-23
openexr (Debian package)
mingw-openexr
OpenEXR-debuginfo
OpenEXR-debugsource
OpenEXR-devel
OpenEXR-libs

How to mitigate CVE-2021-45942

Install update from vendor's website.

OpenEXR - update to 3.1.4
libIlmImf-Imf_2_1-21-debuginfo-32bit - update to 2.1.0-6.45.1
openexr-debugsource - addressed in versions 2.1.0-6.45.1, 2.2.1-3.41.1
openexr-debuginfo - addressed in versions 2.1.0-6.45.1, 2.2.1-3.41.1
openexr-devel - addressed in versions 2.1.0-6.45.1, 2.2.1-3.41.1
libIlmImf-Imf_2_1-21 - update to 2.1.0-6.45.1
libIlmImf-Imf_2_1-21-debuginfo - update to 2.1.0-6.45.1
OpenEXR - update to 2.1.0-6.45.1
libIlmImf-Imf_2_1-21-32bit - update to 2.1.0-6.45.1
libIlmImfUtil-2_2-23-debuginfo - update to 2.2.1-3.41.1
libIlmImfUtil-2_2-23 - update to 2.2.1-3.41.1
libIlmImf-2_2-23-debuginfo - update to 2.2.1-3.41.1
libIlmImf-2_2-23 - update to 2.2.1-3.41.1
openexr (Debian package) - update to 2.5.4-2+deb11u1
mingw-openexr - addressed in versions 2.5.5-6.fc34, 3.1.4-1.fc35, 3.1.4-1.fc36
OpenEXR - update to 3.1.5-1
OpenEXR-debuginfo - update to 3.1.5-1
OpenEXR-debugsource - update to 3.1.5-1
OpenEXR-devel - update to 3.1.5-1
OpenEXR-libs - update to 3.1.5-1

External References

Related Security Bulletins