CVE-2022-2057: Divide by Zero
Divide By Zero error in tiffcrop in libtiff 4.4.0 allows attackers to cause a denial-of-service via a crafted tiff file. For users that compile libtiff from sources the fix is available with commit f3a5e010.
Other sources
Divide By Zero error in tiffcrop in libtiff 4.4.0 allows attackers to cause a denial-of-service via a crafted tiff file. For users that compile libtiff from sources, the fix is available with commit f3a5e010.
— MITRE
LibTIFF is vulnerable to a denial of service, caused by a divide-by-zero error in tiffcrop. By persuading a victim to open a specially-crafted TIFF file, a remote attacker could exploit this vulnerability to cause a denial of service.
— IBM
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
alpine/tiffto a version that resolves this vulnerability.Fixed in 4.4.0-r3 - Upgrade
Upgrade
alpine/tiffto a version that resolves this vulnerability.Fixed in 4.4.0-r1 - Upgrade
Upgrade
debian/tiffto a version that resolves this vulnerability.Fixed in 4.4.0-3 - Upgrade
Upgrade
debian/tiffto a version that resolves this vulnerability.Fixed in 4.1.0+git191117-2~deb10u5Fixed in 4.2.0-1+deb11u3Fixed in 4.4.0-3 - Upgrade
Upgrade
azurelinux/libtiffto a version that resolves this vulnerability.Fixed in 4.4.0-6 - Upgrade
Upgrade
ubuntu/tiffto a version that resolves this vulnerability.Fixed in 4.0.3-7ubuntu0.11+esm4 - Upgrade
Upgrade
ubuntu/tiffto a version that resolves this vulnerability.Fixed in 4.0.6-1ubuntu0.8+esm4 - Upgrade
Upgrade
ubuntu/tiffto a version that resolves this vulnerability.Fixed in 4.0.9-5ubuntu0.7 - Upgrade
Upgrade
ubuntu/tiffto a version that resolves this vulnerability.Fixed in 4.1.0+git191117-2ubuntu0.20.04.5 - Upgrade
Upgrade
ubuntu/tiffto a version that resolves this vulnerability.Fixed in 4.3.0-6ubuntu0.1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch f3a5e010
Event History
Frequently Asked Questions
What is CVE-2022-2057?
CVE-2022-2057 is a vulnerability in the libtiff library that allows attackers to cause a denial-of-service by exploiting a Divide By Zero error in the tiffcrop utility.
How severe is CVE-2022-2057?
CVE-2022-2057 has a severity level of medium, with a CVSS score of 6.5.
Which versions of libtiff are affected by CVE-2022-2057?
Versions 4.4.0 of libtiff are affected by CVE-2022-2057.
How can attackers exploit CVE-2022-2057?
Attackers can exploit CVE-2022-2057 by crafting a malicious TIFF file that triggers the Divide By Zero error in the tiffcrop utility, leading to a denial-of-service condition.
How can I fix CVE-2022-2057?
The fix for CVE-2022-2057 is available with commit f3a5e010 if you compile libtiff from sources.