Skip to content
Memory corruption Advisory Advanced CVE-2021-30528

GHSL-2021-124: Use After Free (UAF) in Chrome - CVE-2021-30528

A use-after-free vulnerability in Chrome on Android occurs when fetching credit card details for autofill, because a Java callback holds a reference to a native object that can be freed when an iframe is destroyed. An attacker could exploit this to escape the sandbox from a compromised renderer.

m-y-mo Follow

Originally disclosed on GitHub Security Lab

UAF in InternalAuthenticatorAndroid::InvokeIsUserVerifyingPlatformAuthenticatorAvailableResponse

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 a reference cycle between the native object and the Java callback, where the Java lambda holds a shared reference to the native object, preventing proper cleanup and leading to a dangling pointer when the native object is destroyed.

Impact

Can be exploited to gain sandbox escape from a compromised renderer on Android.

What the attacker needed

Compromised renderer on Android

The fix

The issue was fixed in Chrome release 91.0.4472.77.

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 (UAF) is a bug where a program keeps using memory after it has been freed. In this case, Chrome's autofill feature on Android could be tricked into using a freed object, which might let an attacker who already controls a web page escape Chrome's security sandbox.

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.