Bug 431518 (CVE-2008-0553)

Summary: CVE-2008-0553 tk: GIF handling buffer overflow
Product: [Other] Security Response Reporter: Tomas Hoger <thoger>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: andreas.bierfert, kreilly, mmaslano, perl-devel, wtogami
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: source=redhat,reported=20080124,public=20080201,impact=moderate
Fixed In Version: 1.3-0.8.20080505svn.fc7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-05-10 09:58:54 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Bug Depends On: 431529, 431531, 431532, 432510, 432511, 432512, 432513, 432514, 432515, 444872, 444950, 444951, 833985    
Bug Blocks:    

Description Tomas Hoger 2008-02-05 03:48:15 EST
tk GIF handling code is based on the same code as used by gd and SDL_image and
is affected by the overflow known as CVE-2006-4484 and CVE-2007-6697.

ReadImage function in tkImgGIF.c does not properly check the value of
initialCodeSize value read from GIF image before using it as upper bound during
the initialization of append array.  This can result in stack buffer overflow.

Upstream fix:
http://tktoolkit.cvs.sourceforge.net/tktoolkit/tk/generic/tkImgGIF.c?r1=1.40&r2=1.41

This is expected to be included in upstream tk version 8.5.1.

Related issues:
CVE-2006-4484 (gd), CVE-2007-6697 (SDL_image), CVE-2008-0554 (netpbm)
Comment 2 Tomas Hoger 2008-02-05 03:55:40 EST
perl-Tk uses embedded copy of tk source code and is affected by this problem
too.  Adding perl-Tk maintainers to the CC list too.
Comment 3 Marcela Mašláňová 2008-02-05 03:58:26 EST
Tk is fixed in rawhide, F-8, F-7. The upstream fix was used.
Comment 6 Fedora Update System 2008-02-05 06:34:02 EST
perl-Tk-804.028-3.fc7 has been submitted as an update for Fedora 7
Comment 7 Fedora Update System 2008-02-05 06:39:13 EST
perl-Tk-804.028-3.fc8 has been submitted as an update for Fedora 8
Comment 8 Tomas Hoger 2008-02-06 08:01:13 EST
Upstream released tk 8.5.1 including the fix:

http://sourceforge.net/project/shownotes.php?release_id=573933
Comment 9 Fedora Update System 2008-02-07 15:54:48 EST
perl-Tk-804.028-3.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 10 Fedora Update System 2008-02-07 15:55:42 EST
tk-8.4.13-7.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 11 Fedora Update System 2008-02-07 15:59:15 EST
tk-8.4.17-2.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 12 Fedora Update System 2008-02-07 15:59:55 EST
perl-Tk-804.028-3.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 19 Fedora Update System 2008-05-06 04:24:40 EDT
tkimg-1.3-0.8.20080505svn.fc7 has been submitted as an update for Fedora 7
Comment 20 Fedora Update System 2008-05-06 04:28:16 EDT
tkimg-1.3-0.8.20080505svn.fc8 has been submitted as an update for Fedora 8
Comment 21 Fedora Update System 2008-05-10 09:58:45 EDT
tkimg-1.3-0.8.20080505svn.fc7 has been pushed to the Fedora 7 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 22 Fedora Update System 2008-05-13 11:27:14 EDT
tkimg-1.3-0.10.20080505svn.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.