CVE Vulnerabilities

CVE-2021-3941

Divide By Zero

Published: Mar 25, 2022 | Modified: Nov 21, 2024
CVSS 3.x
6.5
MEDIUM
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H
CVSS 2.x
2.1 LOW
AV:L/AC:L/Au:N/C:N/I:N/A:P
RedHat/V2
RedHat/V3
4 LOW
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Ubuntu
LOW

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.

Weakness

The product divides a value by zero.

Affected Software

Name Vendor Start Version End Version
Openexr Openexr 3.1.2 (including) 3.1.2 (including)
Openexr Ubuntu bionic *
Openexr Ubuntu esm-apps/focal *
Openexr Ubuntu esm-apps/jammy *
Openexr Ubuntu esm-infra/xenial *
Openexr Ubuntu hirsute *
Openexr Ubuntu impish *
Openexr Ubuntu jammy *
Openexr Ubuntu kinetic *
Openexr Ubuntu trusty *
Openexr Ubuntu upstream *
Openexr Ubuntu xenial *

References