Heap corruption in font parsing with FreeType2 backend
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Pango |
Fix Released
|
Medium
|
|||
pango1.0 (Debian) |
Fix Released
|
Unknown
|
|||
pango1.0 (Ubuntu) |
Fix Released
|
Medium
|
Martin Pitt | ||
Maverick |
Fix Released
|
Undecided
|
Unassigned | ||
Natty |
Fix Released
|
Medium
|
Martin Pitt |
Bug Description
When used with FreeType2 as a backend, Pango is vulnerable to heap corruption when rendering malformed fonts. The vulnerability occurs in pango_ft2_
I tested this against Lucid (Pango 1.28.0) and upstream (Pango 1.28.3).
I've attached a fuzzed version of the FreeSerif TrueType font ("crash.ttf") that can be used to reproduce this corruption as follows, using the test-mixed.txt file included in the pango-view directory of the source tree (also attached):
# cp /usr/share/
# cp crash.ttf /usr/share/
# pango-view --backend=ft2 --font=FreeSerif test-mixed.txt
*** glibc detected *** pango-view: malloc(): memory corruption: 0x000000000116cfa0 ***
======= Backtrace: =========
...
Related branches
Changed in pango1.0 (Ubuntu): | |
assignee: | nobody → Kees Cook (kees) |
description: | updated |
visibility: | private → public |
Changed in pango1.0 (Ubuntu): | |
assignee: | Kees Cook (kees) → nobody |
status: | New → Confirmed |
importance: | Undecided → Low |
Changed in pango1.0 (Ubuntu): | |
status: | Confirmed → Triaged |
Changed in pango: | |
importance: | Unknown → Medium |
status: | Unknown → New |
Changed in pango1.0 (Debian): | |
status: | Unknown → New |
Changed in pango1.0 (Debian): | |
status: | New → Fix Released |
Changed in pango1.0 (Ubuntu): | |
status: | Triaged → Fix Committed |
Changed in pango: | |
status: | New → Fix Released |
This bug was fixed in the package pango1.0 - 1.28.2-0ubuntu1.1
---------------
pango1.0 (1.28.2-0ubuntu1.1) maverick-security; urgency=low
* SECURITY UPDATE: denial of service and possible code execution via patches/ 20_CVE- 2011-0020. patch: check for overflow in pangoft2- render. c. patches/ 21_CVE- 2011-0064. patch: check for realloc failures in opentype/ hb-buffer. *, pango/opentype/ hb-buffer- private. h.
crafted font file (LP: #696616)
- debian/
pango/
- CVE-2011-0020
* SECURITY UPDATE: denial of service and possible code execution via
unchecked realloc failures
- debian/
pango/
- CVE-2011-0064
-- Marc Deslauriers <email address hidden> Tue, 01 Mar 2011 09:35:52 -0500