Integer Underflow Affecting libtiff-static package, versions <0:4.0.3-35.amzn2.0.3


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.06% (30th 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-AMZN2-LIBTIFFSTATIC-6037034
  • published27 Oct 2023
  • disclosed17 Aug 2022

Introduced: 17 Aug 2022

CVE-2022-2869  (opens in a new tab)
CWE-191  (opens in a new tab)
CWE-125  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 libtiff-static to version 0:4.0.3-35.amzn2.0.3 or higher.
This issue was patched in ALAS2-2022-1872.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libtiff-static package and not the libtiff-static package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2 relevant fixed versions and status.

libtiff's tiffcrop tool has a uint32_t underflow which leads to out of bounds read and write in the extractContigSamples8bits routine. An attacker who supplies a crafted file to tiffcrop could trigger this flaw, most likely by tricking a user into opening the crafted file with tiffcrop. Triggering this flaw could cause a crash or potentially further exploitation.

CVSS Scores

version 3.1