Red Hat Bugzilla – Bug 494823
CVE-2005-3350 giflib/libunfig: memory corruption via a crafted GIF
Last modified: 2009-11-19 10:07:22 EST
Common Vulnerabilities and Exposures assigned an identifier CVE-2005-3350 to the following vulnerability:
libungif library before 4.1.0 allows attackers to corrupt memory and possibly
execute arbitrary code via a crafted GIF file that leads to an out-of-bounds
Created attachment 338675 [details]
Chris Evans' PoC - bad2.gif
Crash can be reproduced using e.g. gif2ps from giflib-utils
Created attachment 338676 [details]
Chris Evans' PoC - bad3.gif
This issue has been addressed in following products:
Red Hat Enterprise Linux 5
Via RHSA-2009:0444 https://rhn.redhat.com/errata/RHSA-2009-0444.html
giflib-4.1.3-10.fc9 has been submitted as an update for Fedora 9.
giflib-4.1.3-10.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report.
The fix for this issue has raised few questions related to the late release of the updates for this flaw. Here are few more details about the cause of this and the time line.
This problem (along with the crash-only issue CVE-2005-2974) was reported in October 2005 and was originally tracked via bug #171413. Updates addressing this flaw were released for libungif packages shipped in the current versions of Red Hat Enterprise Linux (2.1 to 4):
and Fedora Core (3 and 4):
SRPMs for updated packages can be found on Red Hat FTP (RHEL updates):
(has FTP links for individual SRPMs)
or Fedora Project's archive FTP (FC updates):
Later on, in between Fedora Core 4 and 5, libungif package was replaced with giflib. libungif and giflib differ in the support for patented LZW algorithm, libungif can only create uncompressed gif images, and is now no longer maintained upstream after patent expiration:
According to giflib's RPM changelog, the work on libungif -> giflib transition started in September 2005 and the patch for the flaw did not get included in giflib packages. Fedora Core 5 was released with affected giflib 4.1.3, which has not been updated to newer upstream version in Fedora Core and Fedora until recently. It was also included in Red Hat Enterprise Linux 5 (which was based on Fedora Core 6). Missing fix for the giflib was only spotted recently.
Updated Fedora giflib packages can be found at:
Fedora 9 packages got backported patch included and are already available in the stable repository. For Fedora 10, giflib was rebased to the current upstream version 4.1.6 and is available in the testing repository at the moment.
giflib-4.1.6-2.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.