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

Wrong pointer access #998

Closed
3 tasks done
SmileBugs opened this issue Feb 23, 2018 · 3 comments
Closed
3 tasks done

Wrong pointer access #998

SmileBugs opened this issue Feb 23, 2018 · 3 comments
Labels

Comments

@SmileBugs
Copy link

Prerequisites

  • I have written a descriptive issue title
  • I have verified that I am using the latest version of ImageMagick
  • I have searched open and closed issues to ensure it has not already been reported

Description

Version: ImageMagick 7.0.7-22 Q16 i686 2018-02-07 http://www.imagemagick.org
Copyright: © 1999-2018 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenMP
Delegates (built-in): bzlib cairo djvu fftw flif fontconfig fpx freetype jbig jng jp2 jpeg lcms ltdl openexr pangocairo png raw rsvg tiff webp wmf x xml zlib

ASAN OUTPUT

root@v22017125319057172:/opt/lib_fuzz# identify -verbose ./poc 
ASAN:SIGSEGV
=================================================================
==9212==ERROR: AddressSanitizer: SEGV on unknown address 0x7ea8dd32 (pc 0xb3e69d70 bp 0x00000005 sp 0xbfd42790 T0)
    #0 0xb3e69d6f in ReadWebPLSBWord coders/webp.c:157
    #1 0xb3e69d6f in IsWEBPImageLossless coders/webp.c:196
    #2 0xb3e69d6f in ReadWEBPImage coders/webp.c:299
    #3 0xb63b6c0a in ReadImage MagickCore/constitute.c:497
    #4 0xb63ba0b4 in ReadImages MagickCore/constitute.c:866
    #5 0xb5cd4700 in IdentifyImageCommand MagickWand/identify.c:321
    #6 0xb5da714d in MagickCommandGenesis MagickWand/mogrify.c:183
    #7 0x80499d0 in MagickMain utilities/magick.c:149
    #8 0x804907a in main utilities/magick.c:180
    #9 0xb58b0636 in __libc_start_main (/lib/i386-linux-gnu/libc.so.6+0x18636)
    #10 0x80490fb  (/usr/bin/magick+0x80490fb)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV coders/webp.c:157 ReadWebPLSBWord
==9212==ABORTING

POC

poc.zip

System Configuration

System Configuration
ImageMagick version: 7.0.7-22
Environment (Operating system, version and so on): ubuntu-16.04.3-server-i386
Additional information:

Found by: Wang Yan

@urban-warrior
Copy link
Contributor

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.

@nohmask
Copy link

nohmask commented Feb 26, 2018

This was assigned CVE-2018-7470.

@SmileBugs
Copy link
Author

credit: zxsoft security team.

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