out-of-bounds read in ImageMagick/coders/mat.c:406
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ImageMagick |
Fix Released
|
Unknown
|
|||
imagemagick (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
This bug was found while fuzzing ImageMagick with afl-fuzz
Tested on ImageMagick git commit <unknown>
Command: magick id:000224,
=======
==4438==ERROR: AddressSanitizer: heap-buffer-
READ of size 4 at 0xb48075b4 thread T0
#0 0x8596f00 in CalcMinMax /home/user/
#1 0x8588988 in ReadMATImage /home/user/
#2 0x8a60c98 in ReadImage /home/user/
#3 0x8a68b0f in ReadImages /home/user/
#4 0x92aee29 in CLINoImageOperator /home/user/
#5 0x92b7311 in CLIOption /home/user/
#6 0x904447d in ProcessCommandO
#7 0x90477f5 in MagickImageCommand /home/user/
#8 0x904bcd9 in MagickCommandGe
#9 0x80de16d in MagickMain /home/user/
#10 0x80de16d in main /home/user/
#11 0xb74dda82 in __libc_start_main /build/
#12 0x80ddf94 in _start (/usr/local/
0xb48075b6 is located 0 bytes to the right of 54-byte region [0xb4807580,
allocated by thread T0 here:
#0 0x80c6bc1 in malloc (/usr/local/
#1 0x81888e9 in AcquireMagickMemory /home/user/
#2 0x81888e9 in AcquireQuantumM
#3 0x8a60c98 in ReadImage /home/user/
#4 0x8a68b0f in ReadImages /home/user/
#5 0x92aee29 in CLINoImageOperator /home/user/
#6 0x92b7311 in CLIOption /home/user/
#7 0x904447d in ProcessCommandO
SUMMARY: AddressSanitizer: heap-buffer-
Shadow bytes around the buggy address:
0x36900e60: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x36900e70: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x36900e80: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x36900e90: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
0x36900ea0: fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa fa
=>0x36900eb0: 00 00 00 00 00 00[06]fa fa fa fa fa 00 00 00 00
0x36900ec0: 00 00 05 fa fa fa fa fa 00 00 00 00 00 00 05 fa
0x36900ed0: fa fa fa fa fd fd fd fd fd fd fd fa fa fa fa fa
0x36900ee0: fd fd fd fd fd fd fd fa fa fa fa fa 00 00 00 00
0x36900ef0: 00 00 00 04 fa fa fa fa 00 00 00 00 00 00 00 04
0x36900f00: 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
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
==4438==ABORTING
CVE References
Changed in imagemagick (Ubuntu): | |
status: | Confirmed → Fix Released |
Changed in imagemagick: | |
status: | Unknown → Fix Released |
input file to trigger crash