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.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-787"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/125xxx/CVE-2026-125208.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"last_affected": "9.0.2"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"fixed": "b8f159858e2fd29dae4fa34d9e713bbf9bbf190e"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-125208.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "146862030419766893641347613860287265589",
"length": 1546
},
"id": "CVE-2026-125208-51f7015b",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/ffmpeg/ffmpeg/commit/b8f159858e2fd29dae4fa34d9e713bbf9bbf190e",
"target": {
"file": "libavcodec/v4l2_buffers.c",
"function": "v4l2_buffer_swframe_to_buf"
}
},
{
"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
},
"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"
}
}
]
"2026-11-12T07:06:18Z"