{"id":"CVE-2017-9872","aliases":["DEBIAN-CVE-2017-9872","EUVD-2017-18782","GHSA-cp24-mp3r-g87f","MGASA-2017-0434","UBUNTU-CVE-2017-9872","openSUSE-SU-2018:0543-1","openSUSE-SU-2018:0544-1"],"status":"published","title":"The III_dequantize_sample function in layer3.c in mpglib, as used in libmpgdecoder.a in LAME 3.99...","description":"The III_dequantize_sample function in layer3.c in mpglib, as used in libmpgdecoder.a in LAME 3.99.5 and other products, allows remote attackers to cause a denial of service (stack-based buffer overflow and application crash) or possibly have unspecified other impact via a crafted audio file.","severity":{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.0979,"percentile":0.95575,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-119"],"published":"2017-06-25T19:00:00Z","modified":"2026-09-01T20:03:52Z","exploits":[{"source":"exploitdb","id":"EDB-42259","title":"LAME 3.99.5 - 'III_dequantize_sample' Stack Buffer Overflow","type":"dos","platform":"linux","date":"2017-06-26","verified":true,"url":"https://www.exploit-db.com/exploits/42259"}],"fixes":[{"ecosystem":"Debian:12","package":"lame","fixed_in":["3.99.5+repack1-8"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"lame","fixed_in":["3.99.5+repack1-8"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"lame","fixed_in":["3.99.5+repack1-8"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"lame","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.99.5+repack1-8"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"lame","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.99.5+repack1-8"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"lame","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.99.5+repack1-8"}]}]},{"source":"osv","ecosystem":"Mageia:5","package":"lame","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.100-1.mga5.tainted"}]}],"bundled":7},{"source":"osv","ecosystem":"Mageia:6","package":"lame","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.100-1.mga6"}]}],"bundled":7},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"lame","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.99.5+repack1-3","3.99.5+repack1-3ubuntu1","3.99.5+repack1-3ubuntu1+esm2","3.99.5+repack1-3ubuntu1+esm3"]},{"source":"osv","ecosystem":"SUSE:Package Hub 12 SP2","package":"lame","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.100-6.1"}]}],"bundled":12},{"source":"osv","ecosystem":"SUSE:Package Hub 12 SP2","package":"lame","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.100-6.1"}]}],"bundled":12}],"products":[{"vendor":"lame_project","product":"lame"}],"references":[{"url":"http://www.securityfocus.com/bid/99270","tags":["vdb-entry","x_refsource_BID","x_transferred","Third Party Advisory","VDB Entry","advisory"]},{"url":"https://www.exploit-db.com/exploits/42259/","tags":["exploit","x_refsource_EXPLOIT-DB","x_transferred","web"]},{"url":"https://blogs.gentoo.org/ago/2017/06/17/lame-stack-based-buffer-overflow-in-iii_dequantize_sample-layer3-c/","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","VDB Entry","advisory","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2017-9872"},{"url":"https://blogs.gentoo.org/ago/2017/06/17/lame-stack-based-buffer-overflow-in-iii_dequantize_sample-layer3-c"},{"url":"https://www.exploit-db.com/exploits/42259"},{"url":"https://github.com/advisories/GHSA-cp24-mp3r-g87f"},{"url":"https://security-tracker.debian.org/tracker/CVE-2017-9872","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2017-0434.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=21170","tags":["report"]},{"url":"http://openwall.com/lists/oss-security/2017/10/21/7","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2017-9872","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2017-9872","tags":["report"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/6JQYYKDCEI244XVDO6HZ4YNU7XFZRJG7/#6JQYYKDCEI244XVDO6HZ4YNU7XFZRJG7","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1082311","tags":["report"]},{"url":"https://bugzilla.suse.com/1082317","tags":["report"]},{"url":"https://bugzilla.suse.com/1082333","tags":["report"]},{"url":"https://bugzilla.suse.com/1082340","tags":["report"]},{"url":"https://bugzilla.suse.com/1082391","tags":["report"]},{"url":"https://bugzilla.suse.com/1082392","tags":["report"]},{"url":"https://bugzilla.suse.com/1082393","tags":["report"]},{"url":"https://bugzilla.suse.com/1082395","tags":["report"]},{"url":"https://bugzilla.suse.com/1082397","tags":["report"]},{"url":"https://bugzilla.suse.com/1082399","tags":["report"]},{"url":"https://bugzilla.suse.com/1082400","tags":["report"]},{"url":"https://bugzilla.suse.com/1082401","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2015-9100","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2015-9101","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-11720","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-13712","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-15019","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-9410","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-9411","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-9412","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-9869","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-9870","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-9871","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2017-9872","tags":["web"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/KH623JZ3J2KZAJL44XIFV3PAHON2NVKG/#KH623JZ3J2KZAJL44XIFV3PAHON2NVKG","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2017-9872","description":"The III_dequantize_sample function in layer3.c in mpglib, as used in libmpgdecoder.a in LAME 3.99.5 and other products, allows remote attackers to cause a denial of service (stack-based buffer overflow and application crash) or possibly have unspecified other impact via a crafted audio file.","status":"published","published":"2017-06-25T19:00:00Z","modified":"2024-08-05T17:18:01.936Z","updated_at":"2026-11-02T14:33:13.606903Z"}],"euvd":[{"id":"EUVD-2017-18782","description":"The III_dequantize_sample function in layer3.c in mpglib, as used in libmpgdecoder.a in LAME 3.99.5 and other products, allows remote attackers to cause a denial of service (stack-based buffer overflow and application crash) or possibly have unspecified other impact via a crafted audio file.","status":"published","published":"2017-06-25T19:00:00Z","modified":"2024-08-05T17:18:01Z","updated_at":"2026-11-03T02:23:26.706423Z"}],"ghsa":[{"id":"GHSA-cp24-mp3r-g87f","title":"The III_dequantize_sample function in layer3.c in mpglib, as used in libmpgdecoder.a in LAME 3.99...","description":"The III_dequantize_sample function in layer3.c in mpglib, as used in libmpgdecoder.a in LAME 3.99.5 and other products, allows remote attackers to cause a denial of service (stack-based buffer overflow and application crash) or possibly have unspecified other impact via a crafted audio file.","status":"published","published":"2022-05-17T02:15:10Z","modified":"2025-04-20T03:40:32Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-119"],"updated_at":"2026-11-02T15:01:48.455381Z"}],"nvd":[{"id":"CVE-2017-9872","description":"The III_dequantize_sample function in layer3.c in mpglib, as used in libmpgdecoder.a in LAME 3.99.5 and other products, allows remote attackers to cause a denial of service (stack-based buffer overflow and application crash) or possibly have unspecified other impact via a crafted audio file.","status":"published","published":"2017-06-25T19:29:00.37Z","modified":"2026-06-17T01:29:05.727Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-119"],"updated_at":"2026-11-02T14:03:51.893212Z"}],"osv":[{"id":"CVE-2017-9872","description":"The III_dequantize_sample function in layer3.c in mpglib, as used in libmpgdecoder.a in LAME 3.99.5 and other products, allows remote attackers to cause a denial of service (stack-based buffer overflow and application crash) or possibly have unspecified other impact via a crafted audio file.","status":"published","published":"2017-06-25T19:29:00.37Z","modified":"2026-04-16T06:21:10.453865298Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:07.192756Z"},{"id":"DEBIAN-CVE-2017-9872","description":"The III_dequantize_sample function in layer3.c in mpglib, as used in libmpgdecoder.a in LAME 3.99.5 and other products, allows remote attackers to cause a denial of service (stack-based buffer overflow and application crash) or possibly have unspecified other impact via a crafted audio file.","status":"published","published":"2017-06-25T19:29:00.37Z","modified":"2026-09-01T20:03:52.321220888Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:29.698576Z"},{"id":"UBUNTU-CVE-2017-9872","description":"The III_dequantize_sample function in layer3.c in mpglib, as used in libmpgdecoder.a in LAME 3.99.5 and other products, allows remote attackers to cause a denial of service (stack-based buffer overflow and application crash) or possibly have unspecified other impact via a crafted audio file.","status":"published","published":"2017-06-25T19:29:00Z","modified":"2026-04-22T11:33:52.0436Z","cvss":[{"version":"3.0","score":7.8,"vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:16.154988Z"},{"id":"MGASA-2017-0434","title":"Updated lame packages fix security vulnerabilities","description":"LAME 3.100 has been released including fixes to security vulnerabilities.\nNote the MP3 patents have expired.\n","status":"published","published":"2017-12-01T23:13:21Z","modified":"2026-04-16T06:23:42.353736333Z","updated_at":"2026-11-02T15:49:40.442238Z"},{"id":"openSUSE-SU-2018:0543-1","title":"Security update for lame","description":"This update for lame fixes the following issues:\n\nLame was updated to version 3.100:\n\n  * Improved detection of MPEG audio data in RIFF WAVE files.\n     sf#3545112 Invalid sampling detection\n  * New switch --gain \u003cdecibel\u003e, range -20.0 to +12.0, a more\n    convenient way to apply Gain adjustment in decibels, \n    than the use of --scale \u003cfactor\u003e.\n  * Fix for sf#3558466 Bug in path handling\n  * Fix for sf#3567844 problem with Tag genre\n  * Fix for sf#3565659 no progress indication with pipe input\n  * Fix for sf#3544957 scale (empty) silent encode without warning\n  * Fix for sf#3580176 environment variable LAMEOPT doesn't\n    work anymore\n  * Fix for sf#3608583 input file name displayed with wrong\n    character encoding (on windows console with CP_UTF8)\n  * Fix dereference NULL and Buffer not NULL terminated issues.\n    (CVE-2017-15019 bsc#1082317 CVE-2017-13712 bsc#1082399 CVE-2015-9100 bsc#1082401)\n  * Fix dereference of a null pointer possible in loop.\n  * Make sure functions with SSE instructions maintain their own\n    properly aligned stack. Thanks to Fabian Greffrath\n  * Multiple Stack and Heap Corruptions from Malicious File.\n    (CVE-2017-9872 bsc#1082391 CVE-2017-9871 bsc#1082392 CVE-2017-9870 bsc#1082393\n     CVE-2017-9869 bsc#1082395 CVE-2017-9411 bsc#1082397 CVE-2015-9101 bsc#1082400)\n  * CVE-2017-11720: Fix a division by zero vulnerability. (bsc#1082311)\n  * CVE-2017-9410: Fix fill_buffer_resample function in\n    libmp3lame/util.c heap-based buffer over-read and ap (bsc#1082333)\n  * CVE-2017-9411: Fix fill_buffer_resample function in\n    libmp3lame/util.c invalid memory read and application crash (bsc#1082397)\n  * CVE-2017-9412: FIx unpack_read_samples function in \n    frontend/get_audio.c invalid memory read and application crash (bsc#1082340)\n  * Fix clip detect scale suggestion unaware of scale input value\n  * HIP decoder bug fixed: decoding mixed blocks of lower sample\n    frequency Layer3 data resulted in internal buffer overflow.\n  * Add lame_encode_buffer_interleaved_int()\n\n","status":"published","published":"2018-02-26T07:35:52Z","modified":"2026-02-04T04:13:58.176598Z","updated_at":"2026-11-02T16:58:30.39372Z"},{"id":"openSUSE-SU-2018:0544-1","title":"Security update for lame","description":"This update for lame fixes the following issues:\n\nLame was updated to version 3.100:\n\n  * Improved detection of MPEG audio data in RIFF WAVE files.\n     sf#3545112 Invalid sampling detection\n  * New switch --gain \u003cdecibel\u003e, range -20.0 to +12.0, a more\n    convenient way to apply Gain adjustment in decibels, \n    than the use of --scale \u003cfactor\u003e.\n  * Fix for sf#3558466 Bug in path handling\n  * Fix for sf#3567844 problem with Tag genre\n  * Fix for sf#3565659 no progress indication with pipe input\n  * Fix for sf#3544957 scale (empty) silent encode without warning\n  * Fix for sf#3580176 environment variable LAMEOPT doesn't\n    work anymore\n  * Fix for sf#3608583 input file name displayed with wrong\n    character encoding (on windows console with CP_UTF8)\n  * Fix dereference NULL and Buffer not NULL terminated issues.\n    (CVE-2017-15019 bsc#1082317 CVE-2017-13712 bsc#1082399 CVE-2015-9100 bsc#1082401)\n  * Fix dereference of a null pointer possible in loop.\n  * Make sure functions with SSE instructions maintain their own\n    properly aligned stack. Thanks to Fabian Greffrath\n  * Multiple Stack and Heap Corruptions from Malicious File.\n    (CVE-2017-9872 bsc#1082391 CVE-2017-9871 bsc#1082392 CVE-2017-9870 bsc#1082393\n     CVE-2017-9869 bsc#1082395 CVE-2017-9411 bsc#1082397 CVE-2015-9101 bsc#1082400)\n  * CVE-2017-11720: Fix a division by zero vulnerability. (bsc#1082311)\n  * CVE-2017-9410: Fix fill_buffer_resample function in\n    libmp3lame/util.c heap-based buffer over-read and ap (bsc#1082333)\n  * CVE-2017-9411: Fix fill_buffer_resample function in\n    libmp3lame/util.c invalid memory read and application crash (bsc#1082397)\n  * CVE-2017-9412: FIx unpack_read_samples function in \n    frontend/get_audio.c invalid memory read and application crash (bsc#1082340)\n  * Fix clip detect scale suggestion unaware of scale input value\n  * HIP decoder bug fixed: decoding mixed blocks of lower sample\n    frequency Layer3 data resulted in internal buffer overflow.\n  * Add lame_encode_buffer_interleaved_int()\n\n","status":"published","published":"2018-02-26T07:35:52Z","modified":"2026-02-04T03:09:16.96569Z","updated_at":"2026-11-02T16:58:30.39372Z"}]}}
