CVE-2014-8129: Integer Overflow
LibTIFF 4.0.3 allows remote attackers to cause a denial of service (out-of-bounds write) or possibly have unspecified other impact via a crafted TIFF image, as demonstrated by failure of tifnext.c to verify that the BitsPerSample value is 2, and the t2psamplelabsignedtounsigned function in tiff2pdf.c.
Other sources
Out-of-bounds read/write was reported in tiff2pdf libtiff tool:
- CVE-2014-8129 libtiff: Out-of-bounds Read & Write in the tiff2pdf tool http://bugzilla.maptools.org/showbug.cgi?id=2487 - CVE-2014-8129 libtiff: Out-of-bounds Read & Write in the tiff2pdf tool http://bugzilla.maptools.org/showbug.cgi?id=2488
Above upstream bugs were fixed by the below commits:
2014-12-21 Even Rouault <even.rouault> libtiff/tifnext.c: check that BitsPerSample = 2. Fixes http://bugzilla.maptools.org/showbug.cgi?id=2487 (CVE-2014-8129)
2014-12-21 Even Rouault <even.rouault> Fix various crasher bugs on fuzzed images. libtiff/tifdir.c: TIFFSetField(): refuse to set negative values for TIFFTAGXRESOLUTION and TIFFTAGYRESOLUTION that cause asserts when writing the directory libtiff/tifdirread.c: TIFFReadDirectory(): refuse to read ColorMap or TransferFunction if BitsPerSample has not yet been read, otherwise reading it later will cause user code to crash if BitsPerSample > 1 libtiff/tifgetimage.c: TIFFRGBAImageOK(): return FALSE if LOGLUV with SamplesPerPixel != 3, or if CIELAB with SamplesPerPixel != 3 or BitsPerSample != 8 libtiff/tifnext.c: in the "run mode", use tilewidth for tiled images instead of imagewidth to avoid crash tools/bmp2tiff.c: fix crash due to int overflow related to input BMP dimensions tools/tiff2pdf.c: fix crash due to invalid tile count (should likely be checked by libtiff too). Detect invalid settings of BitsPerSample/SamplesPerPixel for CIELAB / ITULAB tools/tiffcrop.c: fix crash due to invalid TileWidth/TileHeight tools/tiffdump.c: fix crash due to overflow of entry count.
— Red Hat
Affected Software
Remediation
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2014-8129?
CVE-2014-8129 has a severity rating of medium due to its potential for causing denial of service.
How do I fix CVE-2014-8129?
To fix CVE-2014-8129, upgrade to LibTIFF version 4.1.0 or later as specified in your package manager's updates.
What types of systems are affected by CVE-2014-8129?
CVE-2014-8129 affects systems that utilize LibTIFF version 4.0.3, including various Debian and Red Hat distributions.
What potential impacts are associated with CVE-2014-8129?
The impacts associated with CVE-2014-8129 include denial of service from an out-of-bounds write when processing crafted TIFF images.
Are there any exploits known for CVE-2014-8129?
There are no publicly known exploits specifically targeting CVE-2014-8129 reported at this time.