Package: netpbm
Version: 2:10.0-15.2
Usertags: afl

giftopnm crashes on the attached file:

$ giftopnm < crash.gif
Segmentation fault

Valgrind says it's a buffer over-read:

==7449== Invalid read of size 1
==7449==    at 0x804CC90: readImageData (giftopnm.c:593)
==7449==    by 0x804DAE4: convertImage (giftopnm.c:902)
==7449==    by 0x804DAE4: convertImages (giftopnm.c:947)
==7449==    by 0x8049121: main (giftopnm.c:982)
==7449==  Address 0x6dc14bc is not stack'd, malloc'd or (recently) free'd


This bug was found using American fuzzy lop:
https://packages.debian.org/experimental/afl

Disclaimer: I don't have spare CPU cycles, so I fuzzed only till the first crash (which took a few seconds). It's likely that extensive fuzzing would uncover more interesting crashers. I'd encourage netpbm maintainers to perform fuzzing with AFL on their own. :-)

-- System Information:
Debian Release: 8.0
 APT prefers unstable
 APT policy: (990, 'unstable'), (500, 'experimental')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages netpbm depends on:
ii  libc6            2.19-14
ii  libjpeg62-turbo  1:1.3.1-11
ii  libnetpbm10      2:10.0-15.2
ii  libpng12-0       1.2.50-2+b2
ii  libtiff5         4.0.3-12
ii  zlib1g           1:1.2.8.dfsg-2+b1

--
Jakub Wilk

Reply via email to