out-of-bounds read in coders/xcf.c:362
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
graphicsmagick (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
This bug was found while fuzzing graphicsmagick with afl-fuzz
Tested on hg changeset 14720:3b1f1e0c1098
Command: gm convert %s /dev/null
=======
==11661==ERROR: AddressSanitizer: heap-buffer-
READ of size 1 at 0xb620043c thread T0
#0 0x89c0284 in load_tile /home/user/
#1 0x89c0284 in load_level /home/user/
#2 0x89c0284 in load_hierarchy /home/user/
#3 0x89c0284 in ReadOneLayer /home/user/
#4 0x89c0284 in ReadXCFImage /home/user/
#5 0x8244d62 in ReadImage /home/user/
#6 0x812c3ac in ConvertImageCommand /home/user/
#7 0x8165066 in MagickCommand /home/user/
#8 0x81ed0dc in GMCommandSingle /home/user/
#9 0x81ea204 in GMCommand /home/user/
#10 0x80d4a76 in main /home/user/
#11 0xb74f4a82 in __libc_start_main /build/
#12 0x80d4904 in _start (/home/
0xb620043c is located 0 bytes to the right of 12-byte region [0xb6200430,
allocated by thread T0 here:
#0 0x80bd531 in __interceptor_
#1 0x839bb38 in MagickMalloc /home/user/
#2 0x8244d62 in ReadImage /home/user/
#3 0x812c3ac in ConvertImageCommand /home/user/
#4 0x8165066 in MagickCommand /home/user/
#5 0x81ed0dc in GMCommandSingle /home/user/
#6 0x81ea204 in GMCommand /home/user/
#7 0x80d4a76 in main /home/user/
SUMMARY: AddressSanitizer: heap-buffer-
Shadow bytes around the buggy address:
0x36c40030: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x36c40040: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x36c40050: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x36c40060: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x36c40070: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
=>0x36c40080: fa fa fa fa fa fa 00[04]fa fa 00 02 fa fa 00 fa
0x36c40090: fa fa fd fd fa fa fd fa fa fa fd fd fa fa fd fa
0x36c400a0: fa fa fd fa fa fa fd fd fa fa fd fa fa fa fd fd
0x36c400b0: fa fa fd fa fa fa fd fa fa fa 00 06 fa fa 00 02
0x36c400c0: fa fa fd fd fa fa 00 04 fa fa fd fd fa fa 00 04
0x36c400d0: fa fa 00 04 fa fa 00 04 fa fa 00 04 fa fa 00 04
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
ASan internal: fe
==11661==ABORTING
summary: |
- heap-buffer-overflow in coders/xcf.c:362 + out-of-bounds read in coders/xcf.c:362 |
input file to trigger crash