Divide By Zero Affecting openexr package, versions <2.2.0-11.1ubuntu1.9


Severity

Recommended
low

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.05% (17th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU1804-OPENEXR-1915709
  • published11 Nov 2021
  • disclosed25 Mar 2022

Introduced: 11 Nov 2021

CVE-2021-3941  (opens in a new tab)
CWE-369  (opens in a new tab)

How to fix?

Upgrade Ubuntu:18.04 openexr to version 2.2.0-11.1ubuntu1.9 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream openexr package and not the openexr package as distributed by Ubuntu. See How to fix? for Ubuntu:18.04 relevant fixed versions and status.

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.

CVSS Scores

version 3.1