Skip to content
Memory corruption Write-up Advanced

The Fuzzing Guide to the Galaxy: An Attempt with Android System Services

The author built a binary-based fuzzing approach for closed-source native Android system services reached over Binder, adapting an existing open-source analyser. Testing on a Samsung phone led to two memory-corruption vulnerabilities in vendor services, tracked as CVE-2022-39907 and CVE-2022-39908.

Anthony Remy Follow

Published on blog.thalium.re

During my internship at Thalium, I looked for an efficient way to seek for vulnerabilities in highly privileged processes in Android. To that effect, I studied Binder, Android’s Inter Process Communication (IPC) mechanism.

Anthony Remy, on blog.thalium.re

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 missing or insufficient validation of the data deserialised from incoming Binder transactions in the vendor's native system services, leading to memory corruption.

Impact

The two bugs were memory-corruption issues in highly privileged vendor services, so a malicious app could potentially crash or compromise those processes; the text does not detail the exact consequences.

What the attacker needed

A Samsung Galaxy J6 device; ability to send Binder transactions; closed-source vendor services present

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.

Android phones run many background programs called system services, and apps talk to them through a messaging system called Binder. The author wrote a tool that sends lots of malformed messages to these services to see if any of them crash or misbehave. Doing this on a Samsung phone found two real bugs in code the manufacturer added.

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 from Samsung

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.