Skip to content
Memory corruption Write-up Advanced

(CVE-2021-33760) Windows Media Foundation Integer Overflow Vulnerability

An integer overflow in the MP3 header parsing of mfsrcsnk.dll leads to an out-of-bounds read. An attacker could trigger a crash by placing a crafted MP3 file in a folder that the user navigates to.

starlabs.sg

Published on starlabs.sg

An integer overflow leads to OOB read when parsing MP3 header. The crash can be trigger by navigating into the folder containing the POC file.

The author, on starlabs.sg

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 an integer overflow in the MP3 frame header parsing leads to an out-of-bounds read.

Impact

The vulnerability could cause a denial of service (crash) when a user views a folder containing a malicious MP3 file.

What the attacker needed

Crafted MP3 file; user navigates to folder

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 media file's header contains numbers that tell the program how much data to expect. If those numbers are manipulated, the program can read memory outside the intended buffer, causing a crash. Here, simply opening a folder with a malicious MP3 file was enough to trigger the crash.

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.