REDHAT-BUG-496887: Integer Overflow
Will Drewry reported an integer overflow flaw in pango's pangoglyphstringsetsize in pango/glyphstring.c:
61 while (newlen > string->space) 62 { 63 if (string->space == 0) 64 string->space = 1; 65 else 66 string->space = 2; 67 68 if (string->space < 0) 69 { 70 gwarning ("glyph string length overflows maximum integer size, truncated"); 71 newlen = string->space = GMAXINT - 8; 72 } 73 } 74 75 string->glyphs = grealloc (string->glyphs, string->space sizeof (PangoGlyphInfo));
string->space is checked against overflow when doubling it, but is not protected against overflow when multiplied by sizeof(PangoGlyphInfo).
Upstream fix: http://github.com/bratsche/pango/commit/4de30e5500eaeb49f4bf0b7a07f718e149a2ed5e
Acknowledgements:
Red Hat would like to thank Will Drewry for reporting this issue.
Affected Software
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-496887?
REDHAT-BUG-496887 is classified as a moderate severity vulnerability due to the potential for integer overflow.
How do I fix REDHAT-BUG-496887?
To fix REDHAT-BUG-496887, you should update to the latest version of Pango that includes the patch for this vulnerability.
What systems are affected by REDHAT-BUG-496887?
The vulnerability REDHAT-BUG-496887 affects versions of Pango that are used in various GNOME applications.
Is there a workaround for REDHAT-BUG-496887?
There are no well-documented workarounds for REDHAT-BUG-496887; updating to the patched version is recommended.
When was REDHAT-BUG-496887 reported?
REDHAT-BUG-496887 was reported on April 14, 2009.