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
use after free in ReadWMFImage #555
Comments
|
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. |
|
Sorry this is not incomplete... deleted my post |
|
Was this not just introduced 3 days before by commit b2b48d5 ? |
|
This was assigned CVE-2017-12431. |
Version: ImageMagick 7.0.6-1 Q16 x86_64
#./magick identify $FILEWhen identify WMF file , a crafted file revealed a use-after-free vulnerability.
A piece of memory was allocated in in function wmf_malloc.(api.c)
mem = malloc (size); //482Free:(api.c, in function wmf_lite_destory )
free (MM->list[MM->count]); //336Use after free: (wmf.c, in function ReadWMFImage)
if (ddata->draw_info != (DrawInfo *) NULL) //2682testcase: https://github.com/bestshow/p0cs/blob/master/use-after-free-in-ReadWMFImage
Credit: ADLab of Venustech
The text was updated successfully, but these errors were encountered: