Out-of-bounds Read Affecting tiff package, versions <4.0.6-1ubuntu0.4


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
1.44% (87th 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-UBUNTU1604-TIFF-405739
  • published26 Jun 2017
  • disclosed26 Jun 2017

Introduced: 26 Jun 2017

CVE-2017-9935  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

Upgrade Ubuntu:16.04 tiff to version 4.0.6-1ubuntu0.4 or higher.

NVD Description

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

In LibTIFF 4.0.8, there is a heap-based buffer overflow in the t2p_write_pdf function in tools/tiff2pdf.c. This heap overflow could lead to different damages. For example, a crafted TIFF document can lead to an out-of-bounds read in TIFFCleanup, an invalid free in TIFFClose or t2p_free, memory corruption in t2p_readwrite_pdf_image, or a double free in t2p_free. Given these possibilities, it probably could cause arbitrary code execution.