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
root.io logo minimus.io logo echo.ai logo

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

NameVendorStart VersionEnd Version
OpenexrOpenexr3.1.2 (including)3.1.2 (including)
OpenexrUbuntubionic*
OpenexrUbuntuesm-apps/focal*
OpenexrUbuntuesm-apps/jammy*
OpenexrUbuntuesm-infra/bionic*
OpenexrUbuntuesm-infra/xenial*
OpenexrUbuntufocal*
OpenexrUbuntuhirsute*
OpenexrUbuntuimpish*
OpenexrUbuntujammy*
OpenexrUbuntukinetic*
OpenexrUbuntutrusty*
OpenexrUbuntuupstream*
OpenexrUbuntuxenial*

References