vendor:
VLC
by:
VLC
7,5
CVSS
HIGH
Out-of-Bounds Write
787
CWE
Product Name: VLC
Affected Version From: VLC 3.0.0
Affected Version To: VLC 3.0.3
Patch Exists: Yes
Related CWE: N/A
CPE: a:videolan:vlc:3.0.0
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: Windows, Linux, Mac
2018
Out-of-Bounds Write in VLC
In modules/codec/adpcm.c, VLC can be made to perform an out-of-bounds write with user-controlled input. The function DecodeAdpcmImaQT at adpcm.c:595 allocates a buffer which is filled with bytes from the input stream. However, it does not check that the number of channels in the input stream is less than or equal to the size of the buffer, resulting in an out-of-bounds write. The number of channels is clamped at <= 5. The mangling of the input p_buffer above and in AdpcmImaWavExpandNibble() makes this difficult to exploit, but there is a potential for remote code execution via a malicious media file.
Mitigation:
Ensure that the number of channels in the input stream is less than or equal to the size of the buffer.