Malformed font leads to crash in Apple's libTrueTypeScaler [@tiny_malloc_from_free_list]

RESOLVED FIXED

Status

()

Core
Graphics
--
critical
RESOLVED FIXED
8 years ago
5 years ago

People

(Reporter: posidron, Assigned: jtd)

Tracking

(Blocks: 1 bug, {verified1.9.2})

Trunk
x86
Mac OS X
verified1.9.2
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(blocking2.0 final+, status1.9.2 .13-fixed, status1.9.1 .16-fixed)

Details

(Whiteboard: [sg:vector-critical? (Apple)])

Attachments

(3 attachments)

(Reporter)

Description

8 years ago
Created attachment 473713 [details]
testcase

Table: b'maxp'
Number of replaced values: 2
Offset:  6/0x000006 Value: ['00', '00', '00', '00', '00', '00', '00', '01']
Offset: 21/0x000015 Value: ['80', '00']

Execute the provided html file.
(Reporter)

Comment 1

8 years ago
Created attachment 473715 [details]
callstack
blocking2.0: --- → ?
(Assignee)

Updated

8 years ago
Assignee: nobody → jdaggett
(Reporter)

Comment 2

8 years ago
  <maxp>
    <tableVersion value="0x10000"/>
    <numGlyphs value="571"/>
    <maxPoints value="0"/>
    <maxContours value="0"/>
    <maxCompositePoints value="0"/>
    <maxCompositeContours value="1"/>
    <maxZones value="2"/>
    <maxTwilightPoints value="0"/>
    <maxStorage value="0"/>
    <maxFunctionDefs value="128"/>
    <maxInstructionDefs value="0"/>
    <maxStackElements value="512"/>
    <maxSizeOfInstructions value="777"/>
    <maxComponentElements value="2"/>
    <maxComponentDepth value="1"/>
  </maxp>
(Reporter)

Updated

8 years ago
Summary: Malformed font leads to crash [@ATSUGetGlyphBounds/tiny_malloc_from_free_list] → Malformed font leads to crash [@tiny_malloc_from_free_list]
Per Joe these are likely exploitable on trunk with a slightly modified testcase, so marking that this applies to trunk as well.
Whiteboard: [sg:critical]
Version: 1.9.2 Branch → Trunk

Updated

8 years ago
Summary: Malformed font leads to crash [@tiny_malloc_from_free_list] → Malformed font leads to crash in Apple's libTrueTypeScaler [@tiny_malloc_from_free_list]
(Reporter)

Comment 4

8 years ago
Created attachment 478731 [details]
testcase-trunk
blocking2.0: ? → final+
(Assignee)

Comment 5

8 years ago
(In reply to comment #4)
> Created attachment 478731 [details]
> testcase-trunk

I can't reproduce a crash against trunk on 10.6.5 10H542 with either harfbuzz enabled or disabled.  1.9.2 goes down easily.

Updated

8 years ago
Whiteboard: [sg:critical] → [sg:vector-critical? (Apple)]
(Assignee)

Comment 6

8 years ago
No longer reproducible on 10.6.5 with either trunk or 1.9.2.latest:

Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13pre) Gecko/20101114 Namoroka/3.6.13pre

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b8pre) Gecko/20101114 Firefox/4.0b8pre
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED
status1.9.2: --- → .13-fixed
Depends on: 527276
Verified for 1.9.2 with Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13pre) Gecko/20101117 Namoroka/3.6.13pre using testcase. Crash occurs with 1.9.2.12.
Keywords: verified1.9.2
OTS landed in 1.9.1 as well.
status1.9.1: --- → .16-fixed
Was this one of the bugs fixed in the latest Mac updates? Would like to un-hide the bug.
(Reporter)

Comment 10

7 years ago
Yes, the bug is fixed.
(Reporter)

Updated

6 years ago
Blocks: 750695
Group: core-security
You need to log in before you can comment on or make changes to this bug.