Bug 234312 - CVE-2007-0455 gd buffer overrun
CVE-2007-0455 gd buffer overrun
Status: CLOSED WONTFIX
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: gd (Show other bugs)
5.0
All Linux
low Severity medium
: ---
: ---
Assigned To: Ivana Varekova
impact=low,source=vendorsec,reported=...
: Security
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2007-03-28 09:25 EDT by Ivana Varekova
Modified: 2007-11-30 17:07 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-08-21 07:43:51 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Ivana Varekova 2007-03-28 09:25:57 EDT
+++ This bug was initially created as a clone of Bug #224607 +++

Kees Cook from Ubuntu reported a "off-the-end-of-string increment", which could
theoretically lead ot a buffer overflow.

This flaw would only be exploitable if a JIS-encoded font is used when
processing a special malicious string.

The issue here is that the NULL terminator is incremented, which could lead to
unknown results during the processing of the malicious string.

Index: gdft.c
===================================================================
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:

-- Additional comment from bressers@redhat.com on 2007-01-26 12:44 EST --
This flaw does not affect gd as shipped in RHEL2.1 or RHEL3.

-- Additional comment from bressers@redhat.com on 2007-01-26 12:48 EST --
This flaw also affects RHEL5.  Once we can assign bugs to that version, I'll
move this from RHEL4.
Comment 3 Mark J. Cox (Product Security) 2007-08-21 07:43:51 EDT
closing, use #224607 for tracking this issue.  should we decide to have it fixed
in a future update we'll create tracking bugs with appropriate flags set.

Note You need to log in before you can comment on or make changes to this bug.