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.
{
"license": "CC-BY-4.0",
"sources": [
{
"affected": {
"ffmpeg:ffmpeg": [
"< 8.1.3",
">= 9.0, < 9.0.2"
]
},
"database_specific": {
"status": "Analyzed"
},
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-125174",
"id": "CVE-2026-125174",
"imported": "2026-12-02T20:13:53.381Z",
"modified": "2026-11-23T15:46:27.047Z",
"published": "2026-11-09T19:16:52.380Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-125174"
},
{
"html_url": "https://github.com/advisories/GHSA-jqcf-q8r9-79hm",
"id": "GHSA-jqcf-q8r9-79hm",
"imported": "2026-12-02T20:16:36.333Z",
"modified": "2026-11-09T21:31:53Z",
"published": "2026-11-09T21:31:52Z",
"url": "https://api.github.com/advisories/GHSA-jqcf-q8r9-79hm"
},
{
"affected": {
"FFMPEG:FFmpeg": [
"0 <8.1.3",
"9.0 <9.0.2"
]
},
"html_url": "https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-120263",
"id": "EUVD-2026-120263",
"imported": "2026-12-02T20:13:54.914Z",
"modified": "2026-11-09T21:06:58Z",
"published": "2026-11-09T19:11:02Z",
"url": "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-120263"
}
]
}