Skip to content
Memory corruption Advisory Advanced

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

A use-after-free flaw in FileWriterImpl::Write on Samsung Galaxy S10 allows an attacker who can already run low-privileged code to escalate privileges and escape the Chromium sandbox. The issue arises because the code does not validate that an object still exists before using it.

Pedro Ribeiro 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.

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 FileWriterImpl::Write caused by missing validation that the object still exists before it is used.

Impact

An attacker who can already execute low-privileged code could escalate privileges and escape the Chromium sandbox.

What the attacker needed

Ability to execute low-privileged code

The fix

The vulnerability 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.

This is a use-after-free bug: a program frees an object from memory but then tries to use it again, which can let an attacker control what happens next. Here it lives in a file-writing component on a Samsung phone, and if an attacker can already run some code on the device, they can use this bug to break out of the restricted environment (the sandbox) that normally contains 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 Pedro Ribeiro

View all

1 more disclosed report, 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.