Mailinglist Archive: opensuse-bugs (4227 mails)

< Previous Next >
[Bug 1017690] New: VUL-0: libtiff: stack-based buffer overflow in _TIFFVGetField (tif_dir.c)
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Sun, 01 Jan 2017 17:58:30 +0000
  • Message-id: <>

Bug ID: 1017690
Summary: VUL-0: libtiff: stack-based buffer overflow in
_TIFFVGetField (tif_dir.c)
Classification: openSUSE
Product: openSUSE Distribution
Version: Leap 42.2
Hardware: Other
OS: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Security
Assignee: security-team@xxxxxxx
Reporter: mikhail.kasimov@xxxxxxxxx
QA Contact: qa-bugs@xxxxxxx
Found By: ---
Blocker: ---

Libtiff is a software that provides support for the Tag Image File Format
(TIFF), a widely used format for storing image data.

A crafted tiff file revealed a stack buffer overflow.

The complete ASan output:

# tiffsplit $FILE
TIFFReadDirectory: Warning, Unknown field with tag 317 (0x13d) encountered.
==10362==ERROR: AddressSanitizer: stack-buffer-overflow on address
0x7f3824f00090 at pc 0x7f3829624fbb bp 0x7fffe0eb1da0 sp 0x7fffe0eb1d98
WRITE of size 4 at 0x7f3824f00090 thread T0
#0 0x7f3829624fba in _TIFFVGetField /tmp/portage/media-
#1 0x7f382960f202 in TIFFVGetField /tmp/portage/media-
#2 0x7f382960f202 in TIFFGetField /tmp/portage/media-
#3 0x50a719 in tiffcp /tmp/portage/media-
#4 0x50a719 in main /tmp/portage/media-
#5 0x7f382871561f in __libc_start_main /var/tmp/portage/sys-
#6 0x419a78 in _init (/usr/bin/tiffsplit+0x419a78)

Address 0x7f3824f00090 is located in stack of thread T0 at offset 144 in frame
#0 0x5099cf in main /tmp/portage/media-

This frame has 18 object(s):
[32, 40) 'bytecounts.i263.i'
[64, 72) 'bytecounts.i.i'
[96, 98) 'bitspersample.i'
[112, 114) 'samplesperpixel.i'
[128, 130) 'compression.i'
[144, 146) 'shortv.i' 0x0fe7849d8010: 02 f2[02]f2 00 f2 f2 f2 04 f2 04 f2
04 f2 00 f2
0x0fe7849d8020: f2 f2 04 f2 04 f2 00 f2 f2 f2 00 f2 f2 f2 00 f2
0x0fe7849d8030: f2 f2 00 f2 f2 f2 02 f3 00 00 00 00 00 00 00 00
0x0fe7849d8040: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5
0x0fe7849d8050: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5
0x0fe7849d8060: f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5 f5
Shadow byte legend (one shadow byte represents 8 application bytes):
Addressable: 00
Partially addressable: 01 02 03 04 05 06 07
Heap left redzone: fa
Heap right redzone: fb
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
Stack partial redzone: f4
Stack after return: f5
Stack use after scope: f8
Global redzone: f9
Global init order: f6
Poisoned by user: f7
Container overflow: fc
Array cookie: ac
Intra object redzone: bb
ASan internal: fe
Left alloca redzone: ca
Right alloca redzone: cb

Affected version:

Fixed version:

Commit fix:

This bug was discovered by Agostino Sarubbo of Gentoo.



2016-12-04: bug discovered and reported to upstream
2017-01-01: blog post about the issue

This bug was found with American Fuzzy Lop.


Agostino Sarubbo
Gentoo Linux Developer

TW: 4.0.7
42.2: 4.0.6
42.1: 4.0.6
13.2: 4.0.7

You are receiving this mail because:
You are on the CC list for the bug.
< Previous Next >
Follow Ups