Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 170858 - media-libs/gd Buffer overflow (CVE-2007-0455)
Summary: media-libs/gd Buffer overflow (CVE-2007-0455)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Security
URL: http://cve.mitre.org/cgi-bin/cvename....
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-14 12:23 UTC by Sune Kloppenborg Jeppesen (RETIRED)
Modified: 2007-06-27 15:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2007-03-14 12:23:52 UTC
Buffer overflow in the gdImageStringFTEx function in gdft.c in GD Graphics Library 2.0.33 and earlier allows remote attackers to cause a denial of service (application crash) and possibly execute arbitrary code via a crafted string with a JIS encoded font.
Comment 1 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2007-03-14 12:51:54 UTC
Seems like it's already fixed in 2.0.34

From source:

		{
		  ch = c & 0xFF;	/* don't extend sign */
		}
				if (*next) next++;
	    }
	    break;
	  case gdFTEX_Big5:

From RH patch:
RCS file: /repository/gd/libgd/gdft.c,v
retrieving revision 1.28
diff -u -p -r1.28 gdft.c
--- gdft.c      3 Jan 2007 21:21:21 -0000       1.28
+++ gdft.c      24 Jan 2007 23:00:55 -0000
@@ -1178,7 +1178,7 @@ fprintf(stderr,"dpi=%d,%d metric_res=%d 
                {
                  ch = c & 0xFF;        /* don't extend sign */
                }
-             next++;
+             if (*next) next++;
            }
            break;
          case gdFTEX_Big5:
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2007-06-27 15:36:46 UTC
Seeing the notice on heise.de I had a look at gd-2.0.34 and it's definitely not fixed.
Comment 3 Carsten Lohrke (RETIRED) gentoo-dev 2007-06-27 15:39:51 UTC
Uh, sorry, looked in the wrong line.