FFmpeg through 9.0.2 contains an off-by-one heap overflow vulnerability in get_exponent_dynamic() in libavcodec/nellymoserenc.c that allows writing one element past the opt and path allocations. Attackers can supply crafted audio to applications encoding Nellymoser with trellis enabled, causing idx to equal OPT_SIZE and overwrite adjacent heap memory.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-193"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/125xxx/CVE-2026-125257.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"last_affected": "9.0.2"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"fixed": "733bec3e19759520ccdbeb6c3c0cae280bbe6dc5"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-125257.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "181213656495500437351632610692730924617",
"length": 1623
},
"id": "CVE-2026-125257-e78b8a5b",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/ffmpeg/ffmpeg/commit/733bec3e19759520ccdbeb6c3c0cae280bbe6dc5",
"target": {
"file": "libavcodec/nellymoserenc.c",
"function": "get_exponent_dynamic"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"214793543211379481572015133267643769254",
"58975793168024133933193546156084065482",
"289541727983756403689140302398935693411",
"284322096200253312691672136155806610152"
],
"threshold": 0.9
},
"id": "CVE-2026-125257-ffb4e279",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/ffmpeg/ffmpeg/commit/733bec3e19759520ccdbeb6c3c0cae280bbe6dc5",
"target": {
"file": "libavcodec/nellymoserenc.c"
}
}
]
"2026-11-15T07:04:24Z"