CVE-2026-125174 PUBLISHED

FFmpeg before 8.1.3 and 9.x before 9.0.2 NULL Pointer Dereference via ff_hap_set_chunk_count()

Assigner: VulnCheck
Reserved: 09.11.2026 Published: 09.11.2026 Updated: 09.11.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
CVSS Score: 6.8

Product Status

Vendor FFmpeg
Product FFmpeg
Versions Default: unaffected
  • affected from 0 to 8.1.3 (excl.)
  • affected from 9.0 to 9.0.2 (excl.)

Credits

  • Zheng Yu @ Depthfirst finder
  • Joshua Rogers (AISLE Research) reporter
  • Michael Niedermayer remediation developer

References

Problem Types

  • Unchecked Return Value CWE