{"id":"CVE-2026-125217","kind":"vulnerability","aliases":["CVE-2026-125217"],"related":[],"title":"FFmpeg: uninitialized heap data leaks into RoQ audio output packets","description":"FFmpeg through 9.0.2 contains an uninitialized memory use vulnerability in roq_dpcm_encode_frame() in libavcodec/roqaudioenc.c that encodes stale heap contents when flushed early. Attackers can supply short audio streams under eight frames for RoQ DPCM transcoding, causing DPCM-quantized uninitialized heap data from frame_buffer to leak into output packets.","summary":"FFmpeg's RoQ DPCM audio encoder reads uninitialized heap memory when a short stream is flushed early, so stale heap contents get written into output packets. An attacker who supplies a short audio stream under eight frames can leak that heap data into transcoded output.","severity":"medium","cvss":4.8,"epss":null,"exploited":false,"exploited_at":null,"products":[{"name":"FFmpeg","fixed":[],"affected":"","ecosystem":"vendor"}],"ecosystems":["vendor"],"tags":["ffmpeg","media-processing","package","transcoding"],"not_affected_if":["no-roq-encoding","trusted-input-only"],"how_to_check":"- Check the installed FFmpeg version with `ffmpeg -version`; the sources say the flaw covers releases through `9.0.2`.\n- Look for RoQ audio encoding (`-c:a roq_dpcm`) in pipelines that transcode untrusted audio.","fix":null,"status":"open","published_at":"2026-11-09T19:16:58+00:00","first_seen_at":"2026-11-09T19:28:19+00:00","triaged_at":"2026-11-09T19:32:16+00:00","updated_at":"2026-11-09T19:32:16+00:00","category":"package","confidence":0.6,"triage":{"at":"2026-11-09T19:32:16Z","model":"claude-haiku-5-5","output":{"fix":"unknown","reach":"internet","title":"FFmpeg: uninitialized heap data leaks into RoQ audio output packets","impact":"low","summary":"FFmpeg's RoQ DPCM audio encoder reads uninitialized heap memory when a short stream is flushed early, so stale heap contents get written into output packets. An attacker who supplies a short audio stream under eight frames can leak that heap data into transcoded output.","audience":"businesses","category":"package","nicknames":[],"who_cares":["ffmpeg","media-processing","transcoding"],"confidence":0.6,"fix_status":"unknown","needs_auth":"no","worst_case":"stale heap memory leaks into transcoded output packets","analyst_note":"Confirm the fixed version from the linked github.com patch and the vulncheck advisory; the sources here do not state one.","how_to_check":"- Check the installed FFmpeg version with `ffmpeg -version`; the sources say the flaw covers releases through `9.0.2`.\n- Look for RoQ audio encoding (`-c:a roq_dpcm`) in pipelines that transcode untrusted audio.","plain_action":"","product_name":"FFmpeg","needs_analyst":true,"not_affected_if":["no-roq-encoding","trusted-input-only"],"who_is_affected":"Teams that run FFmpeg to transcode audio, especially pipelines that accept user-supplied audio and encode it to RoQ DPCM. The sources describe a leak of stale heap data into output, not code execution. Systems that do not run RoQ DPCM encoding on untrusted input are unlikely to be exposed.","user_interaction":"no","product_ecosystem":"vendor","needs_special_setup":"yes","severity_if_unknown":"medium"},"cost_usd":0.00077,"input_tokens":4638,"output_tokens":612,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-125217':13A,16A '-2026':12A,15A '9.0.2':71C 'attack':51B,93C 'audio':8A,28B,56B,97C 'buffer':115C 'caus':106C 'contain':72C 'content':44B,89C 'cve':11A,14A 'data':4A,65B,112C 'dpcm':27B,80C,104C,108C 'dpcm-quantiz':107C 'earli':40B,92C 'eight':59B,100C 'encod':29B,81C,86C 'ffmpeg':1A,17A,18B,24B,69C 'flush':39B,91C 'frame':60B,82C,101C,114C 'get':45B 'heap':3A,32B,43B,64B,88C,111C 'leak':5A,62B,117C 'libavcodec/roqaudioenc.c':84C 'media':20B 'media-process':19B 'memori':33B,75C 'output':9A,48B,68B,119C 'packag':22B 'packet':10A,49B,120C 'process':21B 'quantiz':109C 'read':30B 'roq':7A,26B,79C,103C 'short':36B,55B,96C 'stale':42B,87C 'stream':37B,57B,98C 'suppli':53B,95C 'transcod':23B,67B,105C 'uniniti':2A,31B,74C,110C 'use':76C 'vulner':77C 'written':46B","nicknames":[],"mitigations":[],"who_affected":"Teams that run FFmpeg to transcode audio, especially pipelines that accept user-supplied audio and encode it to RoQ DPCM. The sources describe a leak of stale heap data into output, not code execution. Systems that do not run RoQ DPCM encoding on untrusted input are unlikely to be exposed.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"none","audience":"businesses","plain_action":null,"pkeys":["ffmpeg"],"ptokens":["ffmpeg"],"labels":["ffmpeg","mediaprocessing","medium","package","transcoding","vendor"],"campaign_type":null,"search_a":"'-125217':13A,16A '-2026':12A,15A 'audio':8A 'cve':11A,14A 'data':4A 'ffmpeg':1A,17A 'heap':3A 'leak':5A 'output':9A 'packet':10A 'roq':7A 'uniniti':2A","search_b":"'attack':51B 'audio':28B,56B 'content':44B 'data':65B 'dpcm':27B 'earli':40B 'eight':59B 'encod':29B 'ffmpeg':18B,24B 'flush':39B 'frame':60B 'get':45B 'heap':32B,43B,64B 'leak':62B 'media':20B 'media-process':19B 'memori':33B 'output':48B,68B 'packag':22B 'packet':49B 'process':21B 'read':30B 'roq':26B 'short':36B,55B 'stale':42B 'stream':37B,57B 'suppli':53B 'transcod':23B,67B 'uniniti':31B 'written':46B","search_c":"'9.0.2':71C 'attack':93C 'audio':97C 'buffer':115C 'caus':106C 'contain':72C 'content':89C 'data':112C 'dpcm':80C,104C,108C 'dpcm-quantiz':107C 'earli':92C 'eight':100C 'encod':81C,86C 'ffmpeg':69C 'flush':91C 'frame':82C,101C,114C 'heap':88C,111C 'leak':117C 'libavcodec/roqaudioenc.c':84C 'memori':75C 'output':119C 'packet':120C 'quantiz':109C 'roq':79C,103C 'short':96C 'stale':87C 'stream':98C 'suppli':95C 'transcod':105C 'uniniti':74C,110C 'use':76C 'vulner':77C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-09T19:16:58+00:00","kev":null,"cvss_vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"disclosure@vulncheck.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-125217","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-125217","severity":null,"published_at":"2026-11-09T19:16:58+00:00","modified_at":"2026-11-09T19:16:58+00:00","first_seen_at":"2026-11-09T19:28:19+00:00","fetched_at":"2026-11-09T19:28:19+00:00","note":null}],"documents":[{"id":109325,"url":"https://github.com/FFmpeg/FFmpeg/commit/f71410e0288f0c40ae2fb5e5a4d7428763d08a71","title":"Patch: github.com","kind":"other","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":109326,"url":"https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-roq-dpcm-encoder-uninitialized-heap-memory-disclosure","title":"Third-party advisory: www.vulncheck.com","kind":"advisory","source":"nvd","publisher":"research","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Third-party advisory: www.vulncheck.com"}],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}