CVE-2026-125174: FFmpeg before 8.1.3 and 9.x before 9.0.2 NULL Pointer Dereference via ff_hap_set_chunk_count()
FFmpeg before 8.1.3 and 9.x before 9.0.2 contains a NULL pointer dereference vulnerability in ffhapsetchunkcount() 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/ffmpegto a version that resolves this vulnerability.Fixed in 7:7.1.6-0+deb13u1
Event History
Frequently Asked Questions
Who is exposed to this issue?
Applications using affected FFmpeg versions that decode Hap video frames are exposed. Exploitation requires the application to process an attacker-supplied crafted Hap frame.
What does an attacker need to do to trigger the crash?
The attacker must provide a Hap video frame with an oversized chunk count. This can cause a reallocation failure to be masked, followed by a write through a NULL chunk table.
What is the impact of successful exploitation?
Successful exploitation crashes the decoding application, resulting in a denial of service. The provided severity vector indicates no confidentiality or integrity impact.
Which versions should be updated?
Update FFmpeg 8.x to 8.1.3 or later, and FFmpeg 9.x to 9.0.2 or later. Versions before 8.1.3 and 9.x before 9.0.2 are identified as affected.