Analysis of CVE-2021-1758 (CoreText Out-Of-Bounds Read)
An out-of-bounds read vulnerability was found in the libFontParser.dylib component of macOS, which handles font parsing. An attacker could potentially exploit this by supplying a crafted Mac Resource Fork font file, though the text does not specify the exact impact beyond the OOB read.
starlabs.sg
Published on starlabs.sg
In February, Peter found a OOB read vulnerability in libFontParser.dylib. The latest tested version with the vulnerability is macOS Catalina 10.15.4 (19E287).
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 insufficient bounds checking when parsing Mac Resource Fork font files in libFontParser.dylib.
What the attacker needed
MacOS Catalina 10.15.4 or earlier; ability to supply a crafted font file
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.
This report describes a memory safety bug in how macOS reads certain font files. An out-of-bounds read means the program looks at memory outside the area it should, which can crash the app or leak data. The bug is in a library that parses old-style Mac font files.
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.