Skip to content
Memory corruption Write-up Advanced

The Most Dangerous Codec in the World: Vulnerabilities in H.264 Decoders

The authors built a tool that generates syntactically valid but semantically non-compliant H.264 video files, and used it to find memory corruption bugs in several video decoders. These included kernel memory corruption in iOS, memory corruption in Firefox and VLC on Windows, and kernel memory bugs in video accelerators and application processors on multiple Android devices.

lobste.rs

Published on lobste.rs

Finding and Exploiting Vulnerabilities in H.264 Decoders ☶ pdf security wrv.github.io

The author, on lobste.rs

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 decoders trust the structure of video files too much and fail to handle semantically invalid but syntactically correct streams safely, leading to memory corruption.

Impact

Malformed video files could corrupt kernel or application memory on iOS, Windows and Android devices, potentially allowing code execution, though the text does not demonstrate a full exploit chain.

What the attacker needed

Victim opens a crafted video file; target runs an affected decoder

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 video decoder is the software or hardware that turns a compressed video file into pictures on your screen. Because it must handle files from anywhere, a malformed file can confuse it and corrupt memory, which may let an attacker run their own code. This work built a generator for odd-but-valid video files and used it to find such flaws in decoders on phones and desktops.

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.