Skip to content
Memory corruption Write-up Advanced

Chrome 1-Day Hunting - Uncovering and Exploiting CVE-2020-15999

A heap-based buffer overflow in the FreeType font-loading library, used by Chrome, occurs when a TrueType font's sbix table contains an embedded PNG whose dimensions exceed the int16 limit, causing an integer overflow. An attacker could exploit this to achieve code execution in the browser's renderer process.

starlabs.sg

Published on starlabs.sg

This blog post details the exploitation process for the vulnerability CVE 2020-15999 in Google Chrome 86.0.4222.0 on Linux. While CVE 2020-15999 is a heap-based buffer overflow in the font-loading library Freetype rather than Chrome proper, its extensive use in the latter enables us to achieve code execution in the…

The author, on starlabs.sg

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 an integer overflow when FreeType computes the buffer size for an embedded PNG in the sbix table, because the image dimensions exceed the int16 range, leading to a heap buffer overflow.

Impact

An attacker could achieve code execution in the Chrome renderer process by supplying a crafted font, though the text does not state whether any sandbox or other defence limited the exploit.

What the attacker needed

Crafted TrueType font with sbix bitmap; Chrome 86.0.4222.0 on Linux

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.

Fonts can contain small pictures (bitmaps) inside a special table. If a picture is given a size too large for the number format used, the size calculation wraps around and the program writes more data than it reserved, corrupting memory. Because Chrome uses this font library, a malicious font could let an attacker run their own code inside the browser tab.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.