LibTIFF:memory leak in _TIFFrealloc

Description
LibTIFF This software provides support for the Tag Image File Format (TIFF), a widely used format for storing image data. The latest version of the TIFF specification is available on-line in several different formats.
A memory leak vulnerability was found in function _TIFFrealloc in tif_unix.c, which allows attackers to cause a denial of service via a crafted file.
tiff2pdf $FILE -o out.pdf
==103057==ERROR: LeakSanitizer: detected memory leaks Direct leak of 12556 byte(s) in 1 object(s) allocated from:
#0 0x7fd4b1c37f20 in __interceptor_realloc ../../../../libsanitizer/asan/asan_malloc_linux.cc:75
#1 0x507e13 in _TIFFrealloc /home/haojun/Downloads/testopensourcecode/tiff-4.0.7/libtiff/tif_unix.c:328
#2 0x410c03 in t2p_readwrite_pdf_image /home/haojun/Downloads/testopensourcecode/tiff-4.0.7/tools/tiff2pdf.c:2597
#3 0x42c71c in t2p_write_pdf /home/haojun/Downloads/testopensourcecode/tiff-4.0.7/tools/tiff2pdf.c:5549
#4 0x404386 in main /home/haojun/Downloads/testopensourcecode/tiff-4.0.7/tools/tiff2pdf.c:808
#5 0x7fd4b0e43b34 in __libc_start_main (/lib64/libc.so.6+0x21b34) SUMMARY: AddressSanitizer: 12556 byte(s) leaked in 1 allocation(s).
Affected version:4.0.7
Fixed version:N/A
Commit fix:N/A
Credit: ADLab of Venustech.
CVE:N/A
Reproducer:
Timeline:
2017-04-20:bug discovered and reported upstream bugzilla
2017-06-21:blog post about the issue
Permalink:
http://somevulnsofadlab.blogspot.com/2017/06/libtiffmemory-leak-in-tiffrealloc.html

评论

此博客中的热门博文

Poppler:stack buffer overflow in GfxImageColorMap::getGray

LibTIFF:memory leak in _TIFFmalloc

lrzip:stack buffer overflow in get_fileinfo