Skip to content
Memory corruption Advisory Advanced CVE-2019-1430

Microsoft Media Foundation CMP4MetadataHandler AddQTMetadata Code Execution Vulnerability

A use-after-free vulnerability in Microsoft Media Foundation's MPEG4 handling allows a specially crafted QuickTime file to cause memory corruption, potentially leading to 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 use-after-free vulnerability exists in the mfmp4srcsnk.dll of Microsoft Media Foundation. A specially crafted QuickTime file can cause a Use-After-Free, resulting in a 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

Likely, the CQTMetadataMapAtom object is added to an array during parsing, but when a later parsing error occurs, the object is freed without being removed from the array, leading to a dangling pointer that is later dereferenced.

Impact

This use-after-free could result in remote code execution, and the attacker has multiple options to spray the heap between freeing the object and triggering the vulnerability.

What the attacker needed

Victim opens a malformed MOV file

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.

A use-after-free is a type of memory bug where a program keeps using a piece of memory after it has been freed. In this case, a malformed video file causes the media player to free some data and then later try to read it, which can crash the program or 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.