heap overflow
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
jhead (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
# enviroment
ubuntu 18.04
./jhead poc
# version
3.04
# asan out
=======
==16178==ERROR: AddressSanitizer: heap-buffer-
READ of size 1 at 0x602000000041 thread T0
#0 0x55e36403d541 in ProcessExifDir exif.c:727
#1 0x55e36404195a in process_EXIF exif.c:1041
#2 0x55e36402d382 in ReadJpegSections jpgfile.c:287
#3 0x55e36402e90e in ReadJpegSections jpgfile.c:126
#4 0x55e36402e90e in ReadJpegFile jpgfile.c:379
#5 0x55e36402466c in ProcessFile jhead.c:905
#6 0x55e36401fb2e in main jhead.c:1756
#7 0x7fdc5b5cdbf6 in __libc_start_main (/lib/x86_
#8 0x55e364022279 in _start (/home/
0x602000000041 is located 1 bytes to the right of 16-byte region [0x602000000030
allocated by thread T0 here:
#0 0x7fdc5be19b40 in __interceptor_
#1 0x55e36402bd6b in ReadJpegSections jpgfile.c:173
SUMMARY: AddressSanitizer: heap-buffer-
Shadow bytes around the buggy address:
0x0c047fff7fb0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7fc0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7fd0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7fe0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0c047fff7ff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
=>0x0c047fff8000: fa fa fd fd fa fa 00 00[fa]fa fa fa fa fa fa fa
0x0c047fff8010: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8020: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8030: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8040: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x0c047fff8050: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
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
Freed heap region: fd
Stack left redzone: f1
Stack mid redzone: f2
Stack right redzone: f3
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
==16178==ABORTING
tags: | added: community-security |
information type: | Private Security → Public Security |