Skip to content
Memory corruption Write-up Advanced

Android Phones Can Be Hacked Remotely by Viewing Malicious PNG Image

A critical vulnerability in Android's Framework, in the Skia graphics library, meant a remote attacker could use a specially crafted PNG file to execute arbitrary code inside a privileged process. The bulletin lists this and other issues fixed in the February 2019 patch levels, and states there were no reports of active exploitation.

source.android.com

Published on source.android.com

The Android Security Bulletin contains details of security vulnerabilities affecting Android devices. Security patch levels of 2019-02-05 or later address all of these issues.

The author, on source.android.com

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 a memory-safety flaw in the Skia image library's handling of PNG data, though the bulletin does not describe the specific coding mistake.

Impact

A remote attacker could potentially execute arbitrary code within a privileged process, though the bulletin notes no reports of active exploitation and says newer platform enhancements make exploitation harder.

What the attacker needed

Victim opens a crafted PNG; unpatched Android device

The fix

It was fixed in the February 2019 Android security patch levels, with source patches released to AOSP.

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.

A PNG is a common image file format. A bug in the code that reads these images could let someone who sends you a crafted image run their own code on your phone with high privileges. Google fixed it in the February 2019 security update, and users should install updates to be protected.

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.

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.