Monorail Project: project-zero Issues People Development process History Sign in
New issue
Advanced search Search tips
Starred by 1 user
Status: Fixed
Owner:
Closed: Mar 2017
Cc:



Sign in to add a comment
Windows Uniscribe font processing multiple heap-based out-of-bounds and wild reads
Project Member Reported by mjurczyk@google.com, Dec 8 2016 Back to list
Through fuzzing, we have discovered a number of different crashes in the Windows Uniscribe user-mode library, while trying to display text using a corrupted font file or calling documented Uniscribe API functions against such malformed fonts. In this bug, we address a variety of crashes manifested through invalid memory READ accesses. Some of them occur at page boundaries, while other at seemingly valid yet non-mapped addresses. The sheer amount of the crashes makes it very difficult for us to assess the root cause, severity and impact of each of them within a reasonable time-frame. Consequently, we have only performed basic deduplication based on the top-level address of the faulting instruction, and are reporting all of such crashes in this single bug tracker entry.

A summary of the crash locations is as follows:

--------------------------------------------------------------
1	USP10!otlMultiSubstLookup::apply+0xa8
2	USP10!otlSingleSubstLookup::applyToSingleGlyph+0x98
3	USP10!otlSingleSubstLookup::apply+0xa9
4	USP10!otlMultiSubstLookup::getCoverageTable+0x2c
5	USP10!otlMark2Array::mark2Anchor+0x18
6	USP10!GetSubstGlyph+0x2e
7	USP10!BuildTableCache+0x1ca
8	USP10!otlMkMkPosLookup::apply+0x1b4
9	USP10!otlLookupTable::markFilteringSet+0x1a
10	USP10!otlSinglePosLookup::getCoverageTable+0x12
11	USP10!BuildTableCache+0x1e7
12	USP10!otlChainingLookup::getCoverageTable+0x15
13	USP10!otlReverseChainingLookup::getCoverageTable+0x15
14	USP10!otlLigCaretListTable::coverage+0x7
15	USP10!otlMultiSubstLookup::apply+0x99
16	USP10!otlTableCacheData::FindLookupList+0x9
17	USP10!ttoGetTableData+0x4b4
18	USP10!GetSubtableCoverage+0x1ab
19	USP10!otlChainingLookup::apply+0x2d
20	USP10!MergeLigRecords+0x132
21	USP10!otlLookupTable::subTable+0x23
22	USP10!GetMaxParameter+0x53
23	USP10!ApplyLookup+0xc3
24	USP10!ApplyLookupToSingleGlyph+0x6f
25	USP10!ttoGetTableData+0x19f6
26	USP10!otlExtensionLookup::extensionSubTable+0x1d
27	USP10!ttoGetTableData+0x1a77
--------------------------------------------------------------

All of the issues reproduce successfully on Windows 7. It is highly encouraged to enable PageHeap for the test program in order to get reliable repros. It is also necessary to use a custom program which displays all of the font's glyphs at various point sizes, and additionally calls some of the Uniscribe-specific API functions.

Attached is an archive with textual crash excerpts and up to 3 samples per each unique crash.

This bug is subject to a 90 day disclosure deadline. If 90 days elapse without a broadly available patch, then the bug report will automatically become visible to the public.
 
poc.zip
11.0 MB Download
Project Member Comment 1 by mjurczyk@google.com, Dec 8 2016
Labels: Reported-2016-Dec-8
Project Member Comment 2 by mjurczyk@google.com, Dec 9 2016
Labels: MSRC-36617
Project Member Comment 3 by mjurczyk@google.com, Jan 6 2017
Labels: Deadline-Exceeded Deadline-Grace
MSRC have requested the grace period extension aiming to fix on March 2017 PT.
Project Member Comment 4 by mjurczyk@google.com, Mar 14 2017
Labels: Reported-2017-Mar-14 CVE-2017-0083
Status: Fixed
Fixed in https://technet.microsoft.com/library/security/MS17-011.
Project Member Comment 5 by mjurczyk@google.com, Mar 14 2017
Labels: -Reported-2017-Mar-14 Fixed-2017-Mar-14
To elaborate more, Microsoft has fixed 21 information disclosure vulnerabilities as a result of this report, while the other 6 unique crashes were deemed to be duplicates of some of these 21.

Since all the relevant CVEs won't fit into labels, I'll just list them below:
CVE-2017-0083
CVE-2017-0091
CVE-2017-0092
CVE-2017-0111
CVE-2017-0112
CVE-2017-0113
CVE-2017-0114
CVE-2017-0115
CVE-2017-0116
CVE-2017-0117
CVE-2017-0118
CVE-2017-0119
CVE-2017-0120
CVE-2017-0121
CVE-2017-0122
CVE-2017-0123
CVE-2017-0124
CVE-2017-0125
CVE-2017-0126
CVE-2017-0127
CVE-2017-0128
Project Member Comment 6 by mjurczyk@google.com, Mar 20 2017
Labels: -Restrict-View-Commit
Sign in to add a comment