{"id":"CVE-2026-125251","summary":"FFmpeg through 9.0.2 VVC Decoder Heap Out-of-Bounds Write via refs.c","details":"FFmpeg through 9.0.2 contains an integer overflow vulnerability in the VVC decoder alloc_frame() function in libavcodec/vvc/refs.c that undersizes the reference picture list allocation on 32-bit builds. Attackers can supply a crafted VVC (H.266) file with a very large number of NAL units per access unit to trigger heap out-of-bounds writes and corrupt memory.","modified":"2026-11-12T07:04:37.734365532Z","published":"2026-11-09T19:11:56.865Z","database_specific":{"cwe_ids":["CWE-190"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/125xxx/CVE-2026-125251.json","cna_assigner":"VulnCheck"},"references":[{"type":"WEB","url":"https://code.ffmpeg.org/FFmpeg/FFmpeg"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/125xxx/CVE-2026-125251.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-125251"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-vvc-decoder-heap-out-of-bounds-write-via-refs-c"},{"type":"REPORT","url":"https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25572"},{"type":"FIX","url":"https://github.com/FFmpeg/FFmpeg/commit/053660fdb0d2403b838690689c47ad7685c3b10b"},{"type":"PACKAGE","url":"https://github.com/FFmpeg/FFmpeg"},{"type":"ARTICLE","url":"https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/vvc/refs.c#L148"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/ffmpeg/ffmpeg","events":[{"introduced":"0"},{"fixed":"053660fdb0d2403b838690689c47ad7685c3b10b"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"0"},{"last_affected":"9.0.2"}],"source":"AFFECTED_FIELD"},{"range":[{"fixed":"053660fdb0d2403b838690689c47ad7685c3b10b"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["n9.1-dev","n8.2-dev","n8.1-dev","n7.2-dev","n7.1-dev","n6.2-dev","n6.1-dev","n5.2-dev","n5.1-dev","n4.5-dev","n4.4-dev","n4.3-dev","n4.2-dev","n4.1-dev","n3.5-dev","n3.4-dev","n3.3-dev","n3.2-dev","n3.1-dev","n2.9-dev","n2.8-dev","n2.7-dev","n2.6-dev","n2.5-dev","n2.4-dev","n2.3-dev","n2.2-dev","n2.0","n2.1-dev","n1.3-dev","n1.2-dev","n1.1-dev","n0.12-dev","n0.11-dev","n0.8","N"],"database_specific":{"vanir_signatures_modified":"2026-11-12T07:04:37Z","source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-125251.json","vanir_signatures":[{"signature_type":"Function","signature_version":"v1","source":"https://github.com/ffmpeg/ffmpeg/commit/053660fdb0d2403b838690689c47ad7685c3b10b","target":{"file":"libavcodec/vvc/refs.c","function":"alloc_frame"},"deprecated":false,"digest":{"function_hash":"122984402166767320939623577113231553436","length":2630},"id":"CVE-2026-125251-a00dfb5d"},{"source":"https://github.com/ffmpeg/ffmpeg/commit/053660fdb0d2403b838690689c47ad7685c3b10b","target":{"file":"libavcodec/vvc/refs.c"},"deprecated":false,"digest":{"line_hashes":["218011583915086220317246910461268658934","273255552107958240847107323449525503613","72910137478994549389689711903970787933","314505850551871273909805561226023115228"],"threshold":0.9},"id":"CVE-2026-125251-d74384a1","signature_type":"Line","signature_version":"v1"}]}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}]}