Skip to content
Memory corruption Advisory Advanced CVE-2020-16018

GHSL-2020-166: Use-after-free (UaF) in Chrome PaymentCredential - CVE-2020-16018

A use-after-free flaw in Chrome's PaymentCredential::DidDownloadFavicon allows a compromised renderer to destroy the PaymentCredential object while a callback is pending, leading to a use-after-free when the callback runs. This could result in a sandbox escape.

m-y-mo Follow

Originally disclosed on GitHub Security Lab

Tested on master branch commit 775b30d and also 86.0.4240.75 on Ubuntu 18.04.2 LTS.

m-y-mo, on GitHub Security Lab

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 report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the PaymentCredential object is passed as a raw pointer to a callback without ensuring its lifetime, and it can be destroyed by creating multiple bindings before the callback executes.

Impact

A compromised renderer could trigger a use-after-free that may result in a sandbox escape.

What the attacker needed

Compromised renderer

The fix

The issue was fixed in Chrome version 87.

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 report has not been written yet. The Original tab links to the source.

A use-after-free is a memory bug where a program keeps using a piece of memory after it has been freed. Here, a malicious renderer process (the part that displays web pages) can cause the browser to free an object while a callback still holds a pointer to it, so when the callback runs it touches freed memory. This could let an attacker escape the browser's sandbox, which is the security boundary that isolates web content.

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.

More by m-y-mo

View all

64 more disclosed reports, best first.

More from GitHub Security Lab

View all

The newest disclosed reports for this program.

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.