FFmpeg before 8.1.3 and 9.x before 9.0.2 contains a NULL pointer dereference vulnerability in ff_hap_set_chunk_count() in libavcodec/hap.c, where a shadowed return variable masks reallocation failures. Attackers can supply a crafted Hap video frame with an oversized chunk count so the decoder writes through a NULL chunk table, crashing the application.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-252"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/125xxx/CVE-2026-125174.json"
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "8.1.3"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "9.0"
},
{
"fixed": "9.0.2"
}
],
"source": "CPE_RANGE"
}
]
}
{
"extracted_events": [
{
"cpe": "cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "8.1.3"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "9.0"
},
{
"fixed": "9.0.2"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "f8c4c6400e835bf65e8b9cc12aba9e5c4d1c818c"
}
],
"source": "REFERENCES_COMMIT"
}
]
}