CVE-2026-125178: FFmpeg through 9.0.2 Out-of-Bounds Heap Read via TDSC Cursor Dimensions
FFmpeg through 9.0.2 contains an out-of-bounds heap read vulnerability in tdscloadcursor() in libavcodec/tdsc.c, which stores cursor dimensions before validating them. Attackers can supply a crafted AVI file with oversized TDSC cursor dimensions so tdscpaintcursor() reads past the cursor buffer, crashing the decoder or leaking heap memory into frames.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
alpine/ffmpegto a version that resolves this vulnerability.Fixed in 8.1.4-r0
Event History
Frequently Asked Questions
What must an attacker provide to trigger this issue?
An attacker must get the affected FFmpeg decoder to process a crafted AVI file containing oversized TDSC cursor dimensions. User interaction is required, such as opening or otherwise decoding the malicious file.
What impact can successful exploitation have?
The out-of-bounds read can crash the decoder, causing a denial of service. It may also cause heap memory to be incorporated into decoded frames, potentially disclosing memory contents.
Which deployments are exposed?
Deployments that use FFmpeg through 9.0.2 to decode AVI files with TDSC cursor data are affected. The supplied information does not identify any configuration setting that disables the affected parsing path by default.
What can be done before an update is applied?
Avoid decoding untrusted AVI files, particularly where files may contain TDSC cursor data. Restricting access to media-processing workflows and isolating FFmpeg decoding can reduce exposure to crashes and potential memory disclosure.