CVE-2016-3991: Buffer Overflow

Published Apr 12, 2016
·
Updated

An Out-of-bounds write vulnerability caused by heap overflow when using tiffcrop tool was found in the libtiff library. The vulnerability is in loadImage() function in tiffcrop.c. loadImage() will read the numbers of tiles by calling TIFFNumberOfTiles().

However, if the numbers of tiles is 0, loadImage() will still read tile data by calling readContigTilesIntoBuffer() from the image, regardless of the numbers. In that case, loadImage() will allocate 3 bytes in the heap to store a tile data.

This creates a potential attack vector via crafted tiff tiles, which may result in DoS or code execution.

Upstream bug report: http://bugzilla.maptools.org/showbug.cgi?id=2543

Other sources

Heap-based buffer overflow in the loadImage function in the tiffcrop tool in LibTIFF 4.0.6 and earlier allows remote attackers to cause a denial of service (out-of-bounds write) or execute arbitrary code via a crafted TIFF image with zero tiles.

Affected Software

8 affected componentsFixes available
Oracle VM Server=3.3
Oracle VM Server=3.4
LibTIFF libtiff<=4.0.6
debian/tiff
4.0.2-6+deb7u64.0.3-12.3+deb8u24.0.7-1
debian/tiff3
3.9.6-11+deb7u1
debian/tiff<4.0.7-1
4.0.7-1
debian/tiff<4.0.7-1
4.0.7-1
debian/tiff<4.0.7-1
4.0.7-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/tiff to a version that resolves this vulnerability.

    Fixed in 4.0.2-6+deb7u6Fixed in 4.0.3-12.3+deb8u2Fixed in 4.0.7-1
  2. Upgrade

    Upgrade debian/tiff3 to a version that resolves this vulnerability.

    Fixed in 3.9.6-11+deb7u1
  3. Upgrade

    Upgrade debian/tiff to a version that resolves this vulnerability.

    Fixed in 4.0.7-1

Event History

Apr 12, 2016
Data Sourced
09:05 AM
DescriptionSeverityAffected Software
Sep 21, 2016
CVE Published
via MITRE·06:00 PM
Data Sourced
via MITRE·06:00 PM
Description
Data Sourced
06:59 PM
RemedyWeakness
Data Sourced
via NVD·06:59 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·06:59 PM
DescriptionSeverityAffected Software
Sep 29, 2019
Data Sourced
via Red Hat·01:46 PM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2016-3991?

CVE-2016-3991 is considered to have a medium severity due to the potential for exploitation through out-of-bounds write vulnerabilities.

2

How do I fix CVE-2016-3991?

To fix CVE-2016-3991, upgrade the libtiff library to a version greater than 4.0.6 or apply any available patches from your distribution.

3

What software is affected by CVE-2016-3991?

CVE-2016-3991 affects the libtiff library, particularly versions up to and including 4.0.6.

4

What could happen if CVE-2016-3991 is exploited?

Exploitation of CVE-2016-3991 could lead to arbitrary code execution or crashes of the application using libtiff.

5

Is CVE-2016-3991 specific to certain operating systems?

CVE-2016-3991 is present in various systems, including Debian and Oracle VM Server, depending on the version of the libtiff library in use.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203