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.
Originally disclosed on Cisco Talos
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.
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
- Craft a malformed ASF file that lacks a Stream Properties Object but includes multiple Extended Stream Properties Objects.
- Open the file with an application that uses Microsoft Media Foundation, such as the provided SDK example.
- The parser incorrectly treats one Extended Stream Properties Object as a Stream Properties Object.
- The IMFASFContentInfo::ParseHeader method returns success despite the missing required object.
- The IMFASFSplitter::Initialize method processes the malformed content, leading to a type confusion in CASFPacketParser::CreateExtensionSystemsList.
- 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.