Skip to content
Memory corruption Advisory Advanced

(Pwn2Own) Samsung Galaxy S10 IndexedDB Use-After-Free Sandbox Escape Vulnerability

The IndexedDBDatabase::Close method in the Samsung Galaxy S10 browser failed to check that an object still existed before using it, leaving a use-after-free. An attacker who could already run low-privileged code could use this to escalate privileges and escape the Chromium sandbox.

fluoroacetate Follow

Originally disclosed on Zero Day Initiative

High 8.4 View original

This vulnerability allows remote attackers to escalate privileges on vulnerable installations of Samsung Galaxy S10. An attacker must first obtain the ability to execute low-privileged code on the target system in order to exploit this vulnerability.

@fluoroacetate, on the Zero Day Initiative

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 use-after-free in IndexedDBDatabase::Close caused by using an object without first checking that it still exists.

Impact

An attacker with low-privileged code execution could escalate privileges and escape the Chromium sandbox; the text does not describe any defence that limited the exploit.

What the attacker needed

Ability to run low-privileged code on the device

The fix

It was fixed in version 11.0.00.76.

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 happens when a program frees a piece of memory but keeps using it, so an attacker can put their own data there. Here that flaw sat in the browser's IndexedDB storage code on a Samsung phone. Someone who already had limited code running on the device could turn it into a sandbox escape, meaning they break out of the restricted environment the browser keeps untrusted code in.

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 fluoroacetate

View all

6 more disclosed reports, best first.

More from Zero Day Initiative

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.