CVE-2021-3941
NixOS vulnerability analysis and mitigation

Overview

CVE-2021-3941 is a vulnerability discovered in OpenEXR, affecting the ImfChromaticities.cpp routine RGBtoXYZ(). The vulnerability was identified in 2021 and involves a divide-by-zero condition that could be triggered by specially crafted files. The flaw affects programs linked with OpenEXR, a high-dynamic-range floating-point image file format library (CVE Mitre, Red Hat Bugzilla).

Technical details

The vulnerability exists in the RGBtoXYZ() function within ImfChromaticities.cpp, where division operations such as float Z = (1 - chroma.white.x - chroma.white.y) * Y / chroma.white.y and chroma.green.y * (X + Z))) / d are performed without checking if the divisor could be zero. This oversight in input validation could lead to a divide-by-zero condition (CVE Mitre).

Impact

When exploited, this vulnerability could affect the availability of programs linked with OpenEXR by triggering a divide-by-zero condition, potentially leading to application crashes (Debian Security, Ubuntu Security).

Mitigation and workarounds

The vulnerability has been fixed in OpenEXR version 3.1.2 and later releases. Various Linux distributions have released security updates to address this issue, including Debian (version 2.5.4-2+deb11u1), Fedora (version 3.1.4-1.fc36), and Gentoo (version >= 3.1.5) (Debian Security, Fedora Update, Gentoo Security).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-48606HIGH7.8
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48639HIGH7.3
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48625HIGH7
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48608MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48569MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management