In FFmpeg 3.3.3, a DoS in cinereadheader() due to lack of an EOF check might cause huge CPU and memory consumption. When a crafted CINE file, which claims a large "duration" field in the header but does not contain sufficient backing data, is provided, the image-offset parsing loop would consume huge CPU and memory resources, since there is no EOF check inside the loop.
[
{
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2017-14059-5847fc3a",
"target": {
"function": "cine_read_header",
"file": "libavformat/cinedec.c"
},
"signature_type": "Function",
"digest": {
"length": 4976.0,
"function_hash": "324241049478658231791347694847453150582"
},
"source": "https://github.com/ffmpeg/ffmpeg/commit/7e80b63ecd259d69d383623e75b318bf2bd491f6"
},
{
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2017-14059-8414b9d6",
"target": {
"file": "libavformat/cinedec.c"
},
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"305296804302078399722126839551152068198",
"106274278606077000144940501038737739662",
"233256932812462212533303316476378042749",
"274708204534380055578403856655644778121",
"87743801244886013580109933991926564199"
]
},
"source": "https://github.com/ffmpeg/ffmpeg/commit/7e80b63ecd259d69d383623e75b318bf2bd491f6"
}
]