Heap-based buffer overflow in OpenEXR - CVE-2021-45942
Published: January 27, 2022
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
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
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
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=41416
- https://github.com/google/oss-fuzz-vulns/blob/main/vulns/openexr/OSV-2021-1627.yaml
- https://github.com/AcademySoftwareFoundation/openexr/commit/db217f29dfb24f6b4b5100c24ac5e7490e1c57d0
- https://github.com/AcademySoftwareFoundation/openexr/commit/11cad77da87c4fa2aab7d58dd5339e254db7937e
- https://github.com/AcademySoftwareFoundation/openexr/pull/1209