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

Null Pointer Dereference at DistortImage of MagickCore/distort.c #780

Closed
viennadd opened this issue Sep 25, 2017 · 2 comments
Closed

Null Pointer Dereference at DistortImage of MagickCore/distort.c #780

viennadd opened this issue Sep 25, 2017 · 2 comments
Labels

Comments

@viennadd
Copy link

viennadd commented Sep 25, 2017

Hi all,

Another potential NPD at resample_filter=AcquireResampleFilterThreadSet(image of DistortImage, there is no null check after this acquiring, it then dereference the pointer in after. It could lead to process crash in acquiring when there is not enough available memory .

This seems a similar case of #775

    status=MagickTrue;
    progress=0;
    GetPixelInfo(distort_image,&zero);
    resample_filter=AcquireResampleFilterThreadSet(image,      // AcquireResampleFilterThreadSet is able to return NULL (when acquiring memory hitting oom)
      UndefinedVirtualPixelMethod,MagickFalse,exception);
    distort_view=AcquireAuthenticCacheView(distort_image,exception);

Regards,
Alex, SourceBrella Inc.

dlemstra added a commit that referenced this issue Sep 25, 2017
dlemstra added a commit that referenced this issue Sep 25, 2017
@dlemstra dlemstra added the bug label Sep 25, 2017
@mikayla-grace
Copy link

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 added a commit that referenced this issue Sep 25, 2017
dlemstra added a commit that referenced this issue Sep 25, 2017
@nohmask
Copy link

nohmask commented Sep 26, 2017

This was assigned CVE-2017-14739.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

4 participants