Bug 450773 (CVE-2008-1807) - CVE-2008-1807 FreeType invalid free() flaw
Summary: CVE-2008-1807 FreeType invalid free() flaw
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2008-1807
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL: http://labs.idefense.com/intelligence...
Whiteboard:
Depends On: 450905 450906 450908 450909 450910 450911 451212 451213 806288
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-06-10 21:07 UTC by Josh Bressers
Modified: 2019-09-29 12:24 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-07-21 09:32:23 UTC
Embargoed:


Attachments (Terms of Use)
freetype2 security fixes backported to freetype1 (2.53 KB, patch)
2008-06-18 06:56 UTC, Hans de Goede
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2008:0556 0 normal SHIPPED_LIVE Important: freetype security update 2008-06-25 11:39:47 UTC
Red Hat Product Errata RHSA-2008:0558 0 normal SHIPPED_LIVE Important: freetype security update 2008-06-25 11:24:52 UTC

Description Josh Bressers 2008-06-10 21:07:21 UTC
An invalid free() flaw was found in the way FreeType processes PFB font files.

The advisory states:
    The vulnerability exists within the code responsible for parsing Printer Font 
    Binary (PFB) format font files. By providing an invalid 'number of axes' in 
    the file, it is possible to cause the code to call the free() function on 
    areas of memory that were not dynamically allocated. This can lead to memory 
    corruption, which can allow for the execution of arbitrary code.

Comment 1 Josh Bressers 2008-06-11 17:26:16 UTC
attachment 308965 [details] is the patch extracted from upstream CVS

This patch contains the fixes for CVE-2008-1806, CVE-2008-1807, and
CVE-2008-1808

Comment 4 Hans de Goede 2008-06-14 09:27:40 UTC
(In reply to comment #1)
> attachment 308965 [details] [edit] is the patch extracted from upstream CVS
> 
> This patch contains the fixes for CVE-2008-1806, CVE-2008-1807, and
> CVE-2008-1808

Thanks, I've backported the applicable parts to freetype1 (they didn't all apply
as freetype2 supports more fontfile formats then freetype1).

I've build a new freetype1 with these fixes in for F-8 F-9 and devel. I don't
know what to exactly put in bodhi for this with regards too bug references,
CVE's etc. So I could use some help getting this in bodhi. Here are the F-8 and
F-9 builds:
http://koji.fedoraproject.org/koji/buildinfo?buildID=52635
http://koji.fedoraproject.org/koji/buildinfo?buildID=52634


Comment 5 Tomas Hoger 2008-06-16 15:55:00 UTC
(In reply to comment #4)
> I've build a new freetype1 with these fixes in for F-8 F-9 and devel. I don't
> know what to exactly put in bodhi for this with regards too bug references,
> CVE's etc. So I could use some help getting this in bodhi.

Does freetype 1.x support PFB font format?  I tried some utils from
freetype1-utils and none of them seemed to be will to read good .pfb files I
managed to find on my system.



Comment 6 Hans de Goede 2008-06-16 17:55:48 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > I've build a new freetype1 with these fixes in for F-8 F-9 and devel. I don't
> > know what to exactly put in bodhi for this with regards too bug references,
> > CVE's etc. So I could use some help getting this in bodhi.
> 
> Does freetype 1.x support PFB font format?  I tried some utils from
> freetype1-utils and none of them seemed to be will to read good .pfb files I
> managed to find on my system.

freetype1 does not support the PFB font format, nor the type1 format, I only
backported the generic / truetype parts of the patch given here, as there is
nothing to backport the rest too.



Comment 8 Fedora Update System 2008-06-17 09:43:49 UTC
freetype-2.3.5-4.fc8 has been submitted as an update for Fedora 8

Comment 9 Fedora Update System 2008-06-17 09:44:19 UTC
freetype-2.3.5-6.fc9 has been submitted as an update for Fedora 9

Comment 10 Fedora Update System 2008-06-18 03:15:16 UTC
freetype-2.3.5-6.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2008-06-18 03:15:41 UTC
freetype-2.3.5-4.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 Hans de Goede 2008-06-18 06:55:28 UTC
Hi All,

I see that an update for this for freetype2 has been released, good! I still
need to push the freetype1 builds fixing some of the same issues through bodhi.

But I needs some help to know what (and which CVE's) to put in bodhi.

I know that not all issues apply to freetype1 due to it not having support for
bdf and type1 fonts, still some parts of the patch provided here did apply to
freetype1 (and more then just the BCI fix).

I'll attach the backported patch here, and hope that some of you can shed some
light on this. I cannot find out what to put in the advisory myself, as the
parts of the patch that have been backported do not seem to match any of the CVE
descriptions.


Comment 13 Hans de Goede 2008-06-18 06:56:49 UTC
Created attachment 309698 [details]
freetype2 security fixes backported to freetype1

Comment 14 Behdad Esfahbod 2008-06-18 07:13:19 UTC
Hans,

The only CVE that applies to FreeType 1 only matters if compiling with patented
byte-code interpreter.  Your backported patch fixes that.  I already used your
patch (got it from CVS) for RHEL2.1 freetype 1 and RH security team was happy.

Comment 15 Tomas Hoger 2008-06-18 07:21:26 UTC
Hans, moving this discussion to the bug for CVE-2008-1808, as it better fits
there.  For reply, see:

https://bugzilla.redhat.com/show_bug.cgi?id=450774#c13


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