# CVE-2021-3941: openexr: In ImfChromaticities.cpp routine RGBtoXYZ(), there are some division operations such as `float Z = (1 - chroma.white....

CVE-2021-3941 is fixed in 9 products on 1 platform, first by libopenexr22 2.2.0-11.1ubuntu1.9, released November 10, 2021. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2021-3941
- Priority: Routine
- CVSS: 6.5 (medium)
- EPSS: 0.0030
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Nov 10, 2021

## Description

In ImfChromaticities.cpp routine RGBtoXYZ(), there are some division operations such as `float Z = (1 - chroma.white.x - chroma.white.y) * Y / chroma.white.y;` and `chroma.green.y * (X + Z))) / d;` but the divisor is not checked for a 0 value. A specially crafted file could trigger a divide-by-zero condition which could affect the availability of programs linked with OpenEXR.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | libopenexr22 Ubuntu 18.04.6 LTS (bionic) | 2.2.0-11.1ubuntu1.9 | [libopenexr22 2.2.0-11.1ubuntu1.9](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libopenexr22-2.2.0-11.1ubuntu1.9.md) | Nov 10, 2021 |
| Linux | libopenexr24 Ubuntu 20.04 LTS (focal) | 2.3.0-6ubuntu0.5+esm1 | [libopenexr24 2.3.0-6ubuntu0.5+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libopenexr24-2.3.0-6ubuntu0.5-esm1.md) | Nov 10, 2021 |
| Linux | libopenexr25 Ubuntu 22.04.1 LTS (jammy) | 2.5.7-1ubuntu0.1~esm1 | [libopenexr25 2.5.7-1ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libopenexr25-2.5.7-1ubuntu0.1-esm1.md) | Nov 10, 2021 |
| Linux | openexr Debian 12.15 (bookworm) | 3.1.5-2 | [DEBIAN-CVE-2021-3941](https://patchblox.com/security/data/fix/linux/debian-cve-2021-3941.md) | Mar 25, 2022 |
| Linux | openexr Debian 13.5 (trixie) | 3.1.5-2 | [DEBIAN-CVE-2021-3941](https://patchblox.com/security/data/fix/linux/debian-cve-2021-3941.md) | Mar 25, 2022 |
| Linux | openexr Debian 14 | 3.1.5-2 | [DEBIAN-CVE-2021-3941](https://patchblox.com/security/data/fix/linux/debian-cve-2021-3941.md) | Mar 25, 2022 |
| Linux | openexr Ubuntu 18.04.6 LTS (bionic) | 2.2.0-11.1ubuntu1.9 | [openexr 2.2.0-11.1ubuntu1.9](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-openexr-2.2.0-11.1ubuntu1.9.md) | Nov 10, 2021 |
| Linux | openexr Ubuntu 20.04 LTS (focal) | 2.3.0-6ubuntu0.5+esm1 | [openexr 2.3.0-6ubuntu0.5+esm1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-openexr-2.3.0-6ubuntu0.5-esm1.md) | Nov 10, 2021 |
| Linux | openexr Ubuntu 22.04.1 LTS (jammy) | 2.5.7-1ubuntu0.1~esm1 | [openexr 2.5.7-1ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-openexr-2.5.7-1ubuntu0.1-esm1.md) | Nov 10, 2021 |
| Linux | openexr amzn 2023 | 3.1.5-1.amzn2023.0.3 | [ALAS2023-2023-022](https://patchblox.com/security/data/fix/linux/alas2023-2023-022.md) | Feb 17, 2023 |
| Linux | openexr-debuginfo amzn 2023 | 3.1.5-1.amzn2023.0.3 | [ALAS2023-2023-022](https://patchblox.com/security/data/fix/linux/alas2023-2023-022.md) | Feb 17, 2023 |
| Linux | openexr-debugsource amzn 2023 | 3.1.5-1.amzn2023.0.3 | [ALAS2023-2023-022](https://patchblox.com/security/data/fix/linux/alas2023-2023-022.md) | Feb 17, 2023 |
| Linux | openexr-devel amzn 2023 | 3.1.5-1.amzn2023.0.3 | [ALAS2023-2023-022](https://patchblox.com/security/data/fix/linux/alas2023-2023-022.md) | Feb 17, 2023 |
| Linux | openexr-libs amzn 2023 | 3.1.5-1.amzn2023.0.3 | [ALAS2023-2023-022](https://patchblox.com/security/data/fix/linux/alas2023-2023-022.md) | Feb 17, 2023 |
| Linux | openexr-libs-debuginfo amzn 2023 | 3.1.5-1.amzn2023.0.3 | [ALAS2023-2023-022](https://patchblox.com/security/data/fix/linux/alas2023-2023-022.md) | Feb 17, 2023 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
