Skip to content
Memory corruption Advisory Advanced CVE-2020-0738

Microsoft Media Foundation IMFASFSplitter::Initialize Code Execution Vulnerability

A type confusion vulnerability in Microsoft Media Foundation's ASF parser allows a specially crafted ASF file to cause out-of-bounds reads and potentially remote code execution. An attacker can provide a malformed file to a victim to trigger the vulnerability.

Marcin 'Icewall' Noga Follow

Originally disclosed on Cisco Talos

High 8.8 View original

An exploitable type confusion vulnerability exists in the mfasfsrcsnk.dll of Microsoft Media Foundation 10.0.18362.207. A specially crafted ASF file can cause type confusion, resulting in remote code execution.

Marcin 'Icewall' Noga, on Cisco Talos

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

The parser treats an ASF Stream Properties Object as if it were an Extended Stream Properties Object, leading to a type confusion and out-of-bounds read.

What the attacker needed

Victim opens a malformed ASF file

How it was found

  1. Craft a malformed ASF file that lacks a Stream Properties Object but includes multiple Extended Stream Properties Objects.
  2. Open the file with an application that uses Microsoft Media Foundation, such as the provided SDK example.
  3. The parser incorrectly treats one Extended Stream Properties Object as a Stream Properties Object.
  4. The IMFASFContentInfo::ParseHeader method returns success despite the missing required object.
  5. The IMFASFSplitter::Initialize method processes the malformed content, leading to a type confusion in CASFPacketParser::CreateExtensionSystemsList.
  6. The type confusion causes an out-of-bounds read and potentially memory corruption.

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 report describes a bug in how Windows handles a video file format called ASF. When a malformed file is opened, the software confuses two different types of data structures, leading it to read memory outside the intended object. This can crash the program or, in worse cases, let an attacker run their own code.

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 Marcin 'Icewall' Noga

View all

146 more disclosed reports, best first.

More from Cisco Talos

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.