VideoLan VLC Interplay MVE File Uninitialized Variable Memory Corruption Vulnerability
VLC 3.0.23 contains a use of an uninitialised variable in its Interplay MVE demuxer: when the first chunk is not the expected video-init chunk, an uninitialised packet structure is passed to a cleanup routine. A crafted MVE file can cause a crash and, under certain conditions, memory corruption that may lead to code execution.
A memory corruption vulnerability exists in VideoLAN VLC 3.0.23. A specially crafted Interplay MVE file can trigger a condition that allows access to a variable that is not explicitly initialized, which under certain conditions can lead to code execution in the context of the current process.
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 a local packet structure is used without being initialised, so its side-data fields hold garbage that the cleanup routine then frees.
Impact
The crafted file causes memory corruption and a crash, which under certain conditions could lead to code execution in the context of the current process.
What the attacker needed
Victim opens a crafted MVE file
The fix
It was fixed in VLC 3.0.24 by updating the bundled FFmpeg.
How it was found
- Open a crafted Interplay MVE file in VLC so the demuxer parses its header.
- The header signature is read and compared against the expected value.
- The first chunk is processed and found not to be the video-init chunk type.
- The cleanup routine is called on the uninitialised packet structure.
- The garbage side-data count causes a free of an invalid pointer, crashing the process.
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 media player reads a video file in pieces and keeps small bookkeeping records about each piece. Here one of those records was never filled in before the player tried to clean it up, so it acted on leftover rubbish values. A booby-trapped video file can therefore make the player crash, and possibly run attacker 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.