Division by Zero Vulnerability in FFmpeg Video Processing Tool
CVE-2026-125232
6.8MEDIUM
What is CVE-2026-125232?
FFmpeg, up to version 9.0.2, is affected by a division by zero vulnerability in the motion estimation component of its libavcodec library. The flaw occurs in the estimate_motion_b() function where frame timestamp distances are truncated to a 16-bit value. Attackers can exploit this vulnerability by supplying specially crafted input with timestamp gaps that are multiples of 65536. Such input can lead to application crashes during MPEG-4 Part 2 or MPEG-1/2 B-frame encoding, causing SIGFPE errors and impacting the stability of video processing workflows.
Affected Version(s)
FFmpeg 0 <= 9.0.2
References
CVSS V4
Score:
6.8
Severity:
MEDIUM
Confidentiality:
None
Integrity:
None
Availability:
High
Attack Vector:
Local
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
Unknown
Timeline
Vulnerability published
Vulnerability Reserved
Credit
Gabe Sherman (Trail of Bits)
Joshua Rogers (AISLE Research)
Michael Niedermayer
