{"id":"CVE-2017-16840","aliases":["DEBIAN-CVE-2017-16840","DSA-4049-1","EUVD-2017-8014","GHSA-m395-w54c-5rmj","MGASA-2018-0116","UBUNTU-CVE-2017-16840","openSUSE-SU-2018:0470-1","openSUSE-SU-2018:0476-1","openSUSE-SU-2024:10754-1"],"status":"published","title":"The VC-2 Video Compression encoder in FFmpeg 3.0 and 3.4 allows remote attackers to cause a...","description":"The VC-2 Video Compression encoder in FFmpeg 3.0 and 3.4 allows remote attackers to cause a denial of service (out-of-bounds read) because of incorrect buffer padding for non-Haar wavelets, related to libavcodec/vc2enc.c and libavcodec/vc2enc_dwt.c.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.03332,"percentile":0.88701,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-125"],"published":"2017-11-21T08:00:00Z","modified":"2026-10-24T14:03:19Z","fixes":[{"ecosystem":"Debian:12","package":"ffmpeg","fixed_in":["7:3.4.1-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"ffmpeg","fixed_in":["7:3.4.1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"ffmpeg","fixed_in":["7:3.4.1-1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"ffmpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7:3.4.1-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"ffmpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7:3.4.1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"ffmpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7:3.4.1-1"}]}]},{"source":"osv","ecosystem":"Debian:9","package":"ffmpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7:3.2.9-1~deb9u1"}]}],"versions":["7:3.2.5-1","7:3.2.6-1","7:3.2.7-1~deb9u1","7:3.2.8-1~deb9u1"],"bundled":3},{"source":"osv","ecosystem":"Mageia:6","package":"ffmpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.3.6-1.mga6"}]}],"bundled":2},{"source":"osv","ecosystem":"Mageia:6","package":"ffmpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.3.6-1.mga6.tainted"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Package Hub 12 SP2","package":"ffmpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4.2-14.1"}]}],"bundled":7},{"source":"osv","ecosystem":"SUSE:Package Hub 12 SP2","package":"ffmpeg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.4.2-14.1"}]}],"bundled":7},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"ffmpeg-4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.4-5.2"}]}],"bundled":46}],"products":[{"vendor":"debian","product":"debian_linux"},{"vendor":"ffmpeg","product":"ffmpeg"}],"references":[{"url":"http://git.videolan.org/?p=ffmpeg.git%3Ba=commit%3Bh=a94cb36ab2ad99d3a1331c9f91831ef593d94f74","tags":["x_refsource_MISC","x_transferred","web"]},{"url":"http://www.securityfocus.com/bid/101924","tags":["vdb-entry","x_refsource_BID","x_transferred","Third Party Advisory","VDB Entry","advisory"]},{"url":"https://www.debian.org/security/2017/dsa-4049","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","Vendor Advisory","advisory"]},{"url":"https://github.com/FFmpeg/FFmpeg/commit/94e538aebbc9f9c529e8b1f2eda860cfb8c473b1","tags":["x_refsource_CONFIRM","x_transferred","Patch","Third Party Advisory","fix"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-16840"},{"url":"http://git.videolan.org/?p=ffmpeg.git;a=commit;h=a94cb36ab2ad99d3a1331c9f91831ef593d94f74","tags":["report"]},{"url":"https://github.com/advisories/GHSA-m395-w54c-5rmj"},{"url":"https://security-tracker.debian.org/tracker/CVE-2017-16840","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2018-0116.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=22481","tags":["report"]},{"url":"https://git.ffmpeg.org/gitweb/ffmpeg.git/shortlog/n3.3.6","tags":["web"]},{"url":"http://ffmpeg.org/download.html","tags":["web"]},{"url":"http://ffmpeg.org/security.html","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2017-16840","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-16840","tags":["report"]},{"url":"","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1064577","tags":["report"]},{"url":"https://bugzilla.suse.com/1066428","tags":["report"]},{"url":"https://bugzilla.suse.com/1069407","tags":["report"]},{"url":"https://bugzilla.suse.com/1070762","tags":["report"]},{"url":"https://bugzilla.suse.com/1072366","tags":["report"]},{"url":"https://bugzilla.suse.com/1078488","tags":["report"]},{"url":"https://bugzilla.suse.com/1079368","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2017-15186","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-15672","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-16840","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-17081","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-17555","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-6392","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-6621","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2015-8216","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2015-8217","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2015-8218","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2015-8219","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2015-8363","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2015-8365","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2015-8661","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2015-8663","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-10190","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-10191","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-1897","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-11399","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-11665","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-14054","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-14055","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-14056","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-14057","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-14058","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-14059","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-14169","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-14170","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-14171","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-14222","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-14223","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-14225","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-7859","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-7863","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-7866","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-13300","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-13305","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-15822","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-7751","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-11338","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-15942","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2020-22046","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2020-35964","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2021-33815","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2021-38114","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2021-38171","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2017-16840","description":"The VC-2 Video Compression encoder in FFmpeg 3.0 and 3.4 allows remote attackers to cause a denial of service (out-of-bounds read) because of incorrect buffer padding for non-Haar wavelets, related to libavcodec/vc2enc.c and libavcodec/vc2enc_dwt.c.","status":"published","published":"2017-11-21T08:00:00Z","modified":"2024-08-05T20:35:21.222Z","updated_at":"2026-11-02T14:33:21.453505Z"}],"euvd":[{"id":"EUVD-2017-8014","description":"The VC-2 Video Compression encoder in FFmpeg 3.0 and 3.4 allows remote attackers to cause a denial of service (out-of-bounds read) because of incorrect buffer padding for non-Haar wavelets, related to libavcodec/vc2enc.c and libavcodec/vc2enc_dwt.c.","status":"published","published":"2017-11-21T08:00:00Z","modified":"2024-08-05T20:35:21Z","updated_at":"2026-11-03T02:23:11.533108Z"}],"ghsa":[{"id":"GHSA-m395-w54c-5rmj","title":"The VC-2 Video Compression encoder in FFmpeg 3.0 and 3.4 allows remote attackers to cause a...","description":"The VC-2 Video Compression encoder in FFmpeg 3.0 and 3.4 allows remote attackers to cause a denial of service (out-of-bounds read) because of incorrect buffer padding for non-Haar wavelets, related to libavcodec/vc2enc.c and libavcodec/vc2enc_dwt.c.","status":"published","published":"2022-05-13T01:11:45Z","modified":"2025-04-20T03:48:49Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-125"],"updated_at":"2026-11-02T15:01:55.184489Z"}],"nvd":[{"id":"CVE-2017-16840","description":"The VC-2 Video Compression encoder in FFmpeg 3.0 and 3.4 allows remote attackers to cause a denial of service (out-of-bounds read) because of incorrect buffer padding for non-Haar wavelets, related to libavcodec/vc2enc.c and libavcodec/vc2enc_dwt.c.","status":"published","published":"2017-11-21T08:29:00.21Z","modified":"2026-06-17T01:10:00.19Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-125"],"updated_at":"2026-11-02T14:04:09.7374Z"}],"osv":[{"id":"CVE-2017-16840","description":"The VC-2 Video Compression encoder in FFmpeg 3.0 and 3.4 allows remote attackers to cause a denial of service (out-of-bounds read) because of incorrect buffer padding for non-Haar wavelets, related to libavcodec/vc2enc.c and libavcodec/vc2enc_dwt.c.","status":"published","published":"2017-11-21T08:29:00.21Z","modified":"2026-11-07T13:28:01.728873763Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-07T11:15:38.581573Z"},{"id":"DEBIAN-CVE-2017-16840","description":"The VC-2 Video Compression encoder in FFmpeg 3.0 and 3.4 allows remote attackers to cause a denial of service (out-of-bounds read) because of incorrect buffer padding for non-Haar wavelets, related to libavcodec/vc2enc.c and libavcodec/vc2enc_dwt.c.","status":"published","published":"2017-11-21T08:29:00.21Z","modified":"2026-09-01T20:03:45.103311947Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:45:28.801885Z"},{"id":"UBUNTU-CVE-2017-16840","description":"The VC-2 Video Compression encoder in FFmpeg 3.0 and 3.4 allows remote attackers to cause a denial of service (out-of-bounds read) because of incorrect buffer padding for non-Haar wavelets, related to libavcodec/vc2enc.c and libavcodec/vc2enc_dwt.c.","status":"withdrawn","published":"2017-11-21T08:29:00Z","modified":"2025-07-16T08:13:05.002621Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"},{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:54:14.563448Z"},{"id":"DSA-4049-1","title":"ffmpeg - security update","status":"published","published":"2017-11-27T00:00:00Z","modified":"2026-03-09T02:09:49.158229Z","updated_at":"2026-11-02T15:46:16.523846Z"},{"id":"MGASA-2018-0116","title":"Updated ffmpeg packages fix security vulnerability","description":"This update provides ffmpeg version 3.3.6, which fixes several security\nvulnerabilities and other bugs which were corrected upstream.\n","status":"published","published":"2018-02-06T06:25:44Z","modified":"2026-04-16T06:23:16.655430575Z","updated_at":"2026-11-02T15:49:40.442238Z"},{"id":"openSUSE-SU-2018:0470-1","title":"Security update for ffmpeg","description":"This update for ffmpeg fixes the following issues:\n\nUpdated ffmpeg to new bugfix release 3.4.2\n\n  * Fix integer overflows, multiplication overflows, undefined\n    shifts, and verify buffer lengths.\n  * avfilter/vf_transpose: Fix used plane count\n    [boo#1078488, CVE-2018-6392]\n  * avcodec/utvideodec: Fix bytes left check in decode_frame()\n    [boo#1079368, CVE-2018-6621] \n- Enable use of libzvbi for displaying teletext subtitles.\n- Fixed a DoS in swri_audio_convert() [boo#1072366, CVE-2017-17555].\n\nUpdate to new bugfix release 3.4.1\n\n  * Fixed integer overflows, division by zero, illegal bit shifts\n  * Fixed the gmc_mmx function which failed to validate width\n    and height [boo#1070762, CVE-2017-17081]\n  * Fixed out-of-bounds in VC-2 encoder [boo#1069407, CVE-2017-16840]\n  * ffplay: use SDL2 audio API\n\n- install also doc/ffserver.conf\n\n- Update to new upstream release 3.4\n\n  * New video filters: deflicker, doublewave, lumakey, pixscope,\n    oscilloscope, robterts, limiter, libvmaf, unpremultiply,\n    tlut2, floodifll, pseudocolor, despill, convolve, vmafmotion.\n  * New audio filters: afir, crossfeed, surround, headphone,\n    superequalizer, haas.\n  * Some video filters with several inputs now use a common set\n    of options: blend, libvmaf, lut3d, overlay, psnr, ssim. They\n    must always be used by name.\n  * librsvg support for svg rasterization\n  * spec-compliant VP9 muxing support in MP4\n  * Remove the libnut and libschroedinger muxer/demuxer wrappers\n  * drop deprecated qtkit input device (use avfoundation instead)\n  * SUP/PGS subtitle muxer\n  * VP9 tile threading support\n  * KMS screen grabber\n  * CUDA thumbnail filter\n  * V4L2 mem2mem HW assisted codecs\n  * Rockchip MPP hardware decoding\n  * (Not in openSUSE builds, only original ones:)\n  * Gremlin Digital Video demuxer and decoder\n  * Additional frame format support for Interplay MVE movies\n  * Dolby E decoder and SMPTE 337M demuxer\n  * raw G.726 muxer and demuxer, left- and right-justified\n  * NewTek NDI input/output device\n  * FITS demuxer, muxer, decoder and encoder\n- Fixed a double free in huffyuv [boo#1064577, CVE-2017-15186]\n- Fixed an out-of-bounds in ffv1dec [boo#1066428, CVE-2017-15672]\n","status":"published","published":"2018-02-19T09:08:21Z","modified":"2026-02-04T03:28:56.641832Z","updated_at":"2026-11-02T16:58:30.39372Z"},{"id":"openSUSE-SU-2018:0476-1","title":"Security update for ffmpeg","description":"This update for ffmpeg fixes the following issues:\n\nUpdated ffmpeg to new bugfix release 3.4.2\n\n  * Fix integer overflows, multiplication overflows, undefined\n    shifts, and verify buffer lengths.\n  * avfilter/vf_transpose: Fix used plane count\n    [boo#1078488, CVE-2018-6392]\n  * avcodec/utvideodec: Fix bytes left check in decode_frame()\n    [boo#1079368, CVE-2018-6621] \n- Enable use of libzvbi for displaying teletext subtitles.\n- Fixed a DoS in swri_audio_convert() [boo#1072366, CVE-2017-17555].\n\nUpdate to new bugfix release 3.4.1\n\n  * Fixed integer overflows, division by zero, illegal bit shifts\n  * Fixed the gmc_mmx function which failed to validate width\n    and height [boo#1070762, CVE-2017-17081]\n  * Fixed out-of-bounds in VC-2 encoder [boo#1069407, CVE-2017-16840]\n  * ffplay: use SDL2 audio API\n\n- install also doc/ffserver.conf\n\n- Update to new upstream release 3.4\n\n  * New video filters: deflicker, doublewave, lumakey, pixscope,\n    oscilloscope, robterts, limiter, libvmaf, unpremultiply,\n    tlut2, floodifll, pseudocolor, despill, convolve, vmafmotion.\n  * New audio filters: afir, crossfeed, surround, headphone,\n    superequalizer, haas.\n  * Some video filters with several inputs now use a common set\n    of options: blend, libvmaf, lut3d, overlay, psnr, ssim. They\n    must always be used by name.\n  * librsvg support for svg rasterization\n  * spec-compliant VP9 muxing support in MP4\n  * Remove the libnut and libschroedinger muxer/demuxer wrappers\n  * drop deprecated qtkit input device (use avfoundation instead)\n  * SUP/PGS subtitle muxer\n  * VP9 tile threading support\n  * KMS screen grabber\n  * CUDA thumbnail filter\n  * V4L2 mem2mem HW assisted codecs\n  * Rockchip MPP hardware decoding\n  * (Not in openSUSE builds, only original ones:)\n  * Gremlin Digital Video demuxer and decoder\n  * Additional frame format support for Interplay MVE movies\n  * Dolby E decoder and SMPTE 337M demuxer\n  * raw G.726 muxer and demuxer, left- and right-justified\n  * NewTek NDI input/output device\n  * FITS demuxer, muxer, decoder and encoder\n- Fixed a double free in huffyuv [boo#1064577, CVE-2017-15186]\n- Fixed an out-of-bounds in ffv1dec [boo#1066428, CVE-2017-15672]\n","status":"published","published":"2018-02-19T09:08:21Z","modified":"2026-02-04T03:16:30.48737Z","updated_at":"2026-11-02T16:58:30.39372Z"},{"id":"openSUSE-SU-2024:10754-1","title":"ffmpeg-4-4.4-5.2 on GA media","description":"These are all security issues fixed in the ffmpeg-4-4.4-5.2 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T04:02:00.506105Z","updated_at":"2026-11-02T16:58:34.487567Z"}]}}
