Access Violation Reading EXPLOITABLE_0228
A malformed Matroska audio frame in a crafted MKV file causes VLC's FAAD decoder plugin to write to an invalid memory address, crashing the player. The reporter claims the fault could allow reading or writing memory data, though the text only demonstrates a crash.
- Paid in 20 days
- Disclosed after 5 months
1 Basic info of application 1.1 Info of application Application NamevVLC media player for Windows Application Versionv4.0.0-dev Otto Chriek Download Address: http://nightlies.videolan.org/ Testing OS: Windows 8
2 Info of test file 2.1 Test file info Normal file name: normal.mkv Normal file type: MKV(Matroska file) Normal file MD5: 46D9C3E247FF3C528EBDF18C19F3458B Crash file name: crash.mkv Crash file type: MKV(Matroska file) Crash file MD5: 5CF35EEF33C024BF49A039A17D85A3AA
2.2 Crash file info Replace a piece of data with 0x00 padding, from offset 0xfd41 to offset 0xfda4, the comparison of two files: diff.png.
Description of crash file: Using MKVToolNix tool to parse the crash file, the mutation data triggering crash is located at: Segment->Cluster->Simple Block->Frame section. The Track Number equal to 2, indicating that this SimpleBlock is audio. And matroska does not have a detailed description of the mutated Frame data. (https://www.matroska.org/technical/specs/index.html#simpleblock_structure)。 You can see it here: block.png, block-data.png.
3 Info of test
3.1 Description of test
Run VLC media player, try to play crash.mkv file, program crash and an error pop-up.
3.2 Description of debug
Loading VLC debugging with WinDbg, below is the debug info and stack backtrace.
The key point to crash may be: libfaad_plugin+0x2b9d.
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
*** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\Program Files\VideoLAN\VLC\plugins\codec\libfaad_plugin.dll -
*** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\Program Files\VideoLAN\VLC\libvlccore.dll -
libfaad_plugin+0x2b9d:
000007f90fbf2b9d 47893499 mov dword ptr [r9+r11*4],r14d ds:0000000051d6c048=????????
0:030> kP
Child-SP RetAddr Call Site
000000005eebfb30 000007f912a0ca94 libfaad_plugin+0x2b9d
000000005eebfcc0 000007f912a0c888 libvlccore!input_Control+0x34a4
000000005eebfd10 000007f912a0cc94 libvlccore!input_Control+0x3298
000000005eebfdd0 000007f912a7acf6 libvlccore!input_Control+0x36a4
*** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\Windows\system32\msvcrt.dll -
000000005eebfec0 000007f92810707b libvlccore!vlc_rand_bytes+0xa46
000000005eebff00 000007f928125e6d msvcrt!isspace+0x5b
*** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\Windows\system32\KERNEL32.DLL -
000000005eebff30 000007f9261b167e msvcrt!beginthreadex+0x13d
000000005eebff60 000007f928cfc3f1 KERNEL32!BaseThreadInitThunk+0x1a
000000005eebff90 0000000000000000 ntdll!RtlUserThreadStart+0x21
4 File list 4.1 File list Normal file: normal.mkv Crash file: crash.mkv comparison of two files: diff.png MKVToolNix: block.png, block_data.png Whole Windbg log: x64dug_info.txt
All files, logs are in the attachment, and the decompression password is:vL(@BwX2#ozZB
Impact
This is not just a simple crash, it's possible to read or write memory data.
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 FAAD audio decoder plugin did not validate frame data from the Matroska SimpleBlock before using it to index a memory write, so a mutated audio frame led to an out-of-bounds write.
Impact
The crafted file crashes VLC, and the reporter asserts it may be possible to read or write memory data, but no exploitation beyond the crash is shown.
What the attacker needed
Victim opens a crafted MKV file; VLC 4.0.0-dev on Windows
How it was found
- Take a normal MKV file and overwrite a range of bytes with zero padding to produce the crash file.
- Open the crash file in VLC media player.
- Observe the program crash and error pop-up.
- Attach WinDbg and inspect the faulting instruction in the FAAD plugin.
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.
Media players contain decoders that turn compressed audio and video into sound and pictures. A decoder that trusts the size and layout of data inside a file can be tricked by a deliberately malformed file into writing outside its intended memory, which crashes the program. Here the audio decoder plugin was the part that failed.
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.