(CVE-2021-1758) macOS/iOS CoreText Out-Of-Bounds Read
An out-of-bounds read exists in the CoreText font parser when handling Mac Resource Fork Font files. An attacker could use a crafted font to read memory from an application that uses the CoreText API.
starlabs.sg
Published on starlabs.sg
This vulnerability exists in libFontParser.dylib, a part of CoreText library is widely used in macOS, iOS, iPadOS to parse, and draw text. This vulnerability allows attacker to read memory of application which uses API from CoreText.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a missing bounds check when parsing the Mac Resource Fork Font wrapper in libFontParser.dylib, allowing reads past the end of a buffer.
What the attacker needed
Crafted Mac Resource Fork Font file; application uses CoreText API
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
CoreText is the part of macOS and iOS that turns font files into text on screen. A bug in how it reads a special font format lets a malicious font file make the program read memory it should not, which can leak information. The report only describes the flaw; it does not show how to trigger it.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.