Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory-Leak in in AcquireMagickMemory MagickCore/memory.c:464 #628

Closed
zhouat opened this issue Jul 29, 2017 · 3 comments
Closed

Memory-Leak in in AcquireMagickMemory MagickCore/memory.c:464 #628

zhouat opened this issue Jul 29, 2017 · 3 comments
Labels
bug

Comments

@zhouat
Copy link

@zhouat zhouat commented Jul 29, 2017

Poc link : https://github.com/zhouat/poc_IM/blob/master/e6aa0c45a13dd7fc94f7b5451bd89bf4.gif_output-24.magick

Trigger Command: magick convert e6aa0c45a13dd7fc94f7b5451bd89bf4.gif_output-24.magick /dev/null

=================================================================
==79788==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 13024 byte(s) in 1 object(s) allocated from:
    #0 0x7f0faf281602 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0x43523b in AcquireMagickMemory MagickCore/memory.c:464
    #2 0x40b732 in AcquireImageInfo MagickCore/image.c:347
    #3 0x40e703 in CloneImageInfo MagickCore/image.c:952
    #4 0x55d253 in ReadMAGICKImage coders/magick.c:13053
    #5 0x6faea7 in ReadImage MagickCore/constitute.c:497
    #6 0x6fd022 in ReadImages MagickCore/constitute.c:866
    #7 0x95a047 in ConvertImageCommand MagickWand/convert.c:641
    #8 0xa16fa0 in MagickCommandGenesis MagickWand/mogrify.c:183
    #9 0x4049c1 in MagickMain utilities/magick.c:149
    #10 0x404ba2 in main utilities/magick.c:180
    #11 0x7f0fae4e282f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)
@mikayla-grace

This comment has been minimized.

Copy link

@mikayla-grace mikayla-grace commented Jul 29, 2017

Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @ https://github.com/ImageMagick/ImageMagick later today. The patch will be available in the beta releases of ImageMagick @ http://www.imagemagick.org/download/beta/ by sometime tomorrow.

dlemstra pushed a commit that referenced this issue Jul 29, 2017
Cristy
dlemstra pushed a commit that referenced this issue Jul 29, 2017
Cristy
@dlemstra dlemstra added the bug label Jul 29, 2017
@dlemstra dlemstra closed this Jul 29, 2017
@bastien-roucaries

This comment has been minimized.

Copy link

@bastien-roucaries bastien-roucaries commented Aug 1, 2017

Please open CVE

@bastien-roucaries

This comment has been minimized.

Copy link

@bastien-roucaries bastien-roucaries commented Aug 2, 2017

CVE-2017-11752

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.