{"id":"CVE-2026-125208","summary":"FFmpeg through 9.0.2 V4L2 M2M Encoder Out-of-Bounds Write in v4l2_buffers.c","details":"FFmpeg through 9.0.2 contains an out-of-bounds write vulnerability in v4l2_buffer_swframe_to_buf() in libavcodec/v4l2_buffers.c because cumulative plane offsets are not checked against the V4L2 buffer length. Attackers can supply crafted video whose dimensions or padding cause unsigned wraparound in v4l2_bufref_to_buf(), making memcpy() write past the mmaped driver buffer during V4L2 M2M encoding.","modified":"2026-11-12T07:06:18.298679348Z","published":"2026-11-09T19:11:25.840Z","database_specific":{"cwe_ids":["CWE-787"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/125xxx/CVE-2026-125208.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-125208.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-125208"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-v4l2-m2m-encoder-out-of-bounds-write-in-v4l2-buffers-c"},{"type":"REPORT","url":"https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24328"},{"type":"FIX","url":"https://github.com/FFmpeg/FFmpeg/commit/b8f159858e2fd29dae4fa34d9e713bbf9bbf190e"},{"type":"PACKAGE","url":"https://github.com/FFmpeg/FFmpeg"},{"type":"ARTICLE","url":"https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/v4l2_buffers.c#L309"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/ffmpeg/ffmpeg","events":[{"introduced":"0"},{"fixed":"b8f159858e2fd29dae4fa34d9e713bbf9bbf190e"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"last_affected":"9.0.2"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"b8f159858e2fd29dae4fa34d9e713bbf9bbf190e"}]}]}}],"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":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-125208.json","vanir_signatures":[{"id":"CVE-2026-125208-51f7015b","signature_type":"Function","signature_version":"v1","source":"https://github.com/ffmpeg/ffmpeg/commit/b8f159858e2fd29dae4fa34d9e713bbf9bbf190e","target":{"function":"v4l2_buffer_swframe_to_buf","file":"libavcodec/v4l2_buffers.c"},"deprecated":false,"digest":{"function_hash":"146862030419766893641347613860287265589","length":1546}},{"id":"CVE-2026-125208-dc628928","signature_type":"Line","signature_version":"v1","source":"https://github.com/ffmpeg/ffmpeg/commit/b8f159858e2fd29dae4fa34d9e713bbf9bbf190e","target":{"file":"libavcodec/v4l2_buffers.c"},"deprecated":false,"digest":{"line_hashes":["130368578077847749714229254957752306058","119723198991613239560374074765834920593","165992351363945871580152885205526366082","200230117864097091968961980917299886818","150178796010292635306644236072799383933","65561517323002990805528525706189868601","286712805632445147461909652807520885120","308856408476512633987125151632020274716","102702476176907319042632760405302459851","232191053790763913421562588642082528504","95526620801921333108349864858575541333","80837870380126935582474980479208901540","253939015436326738776468784021178805551","27015420139902709785991013236497946055","52339221121054025609614515423845280516","183644481661585083091364313725484594876","330090560271862995820835423252788133740","332268197103919671469905272752807273710","194279836158525437158398477443638426713","207921187493026842331153538906062992937","97700970276942317136586321377615412942","328065719485704945303983120307290857437","98918137148415126292683662275616003507","330601653157489018683243392405577350460","249521919942688762370167655488948615811","131096508767777921733615488149296954423","43987623610718489364174904323744565424","329798100162118801824847932186198811890","334572293924359031919083809285225123993","80731137229505442995091791264391236134","232654711869215082575109874755512477814","48806918926149518137985675889107897667","152246246890865426733949126483606587653","91515094181383446354150353902268512996","73840971909309799043837457722294962039","29731806525553971081519735699050019106","156884450244142722663517174346539378110","226278282980034629036108948581726621912","299730886692047334326256690688906135988","76026349443971311760568089443470007003"],"threshold":0.9}}],"vanir_signatures_modified":"2026-11-12T07:06:18Z"}}],"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"}]}