CVE-2026-125191: FFmpeg through 9.0.2 V4L2 M2M Decoder Deadlock via Reference Count Leak
FFmpeg through 9.0.2 contains a reference count leak in libavcodec/v4l2buffers.c that allows attackers to deadlock the V4L2 mem2mem decoder on multi-plane capture formats. Attackers can supply crafted H.264, HEVC, or VP9 streams with resolution changes, making ffv4l2m2mcodecreinit() wait forever and hang the decoding application.
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
Which deployments are exposed to this issue?
The issue affects FFmpeg deployments that use the V4L2 mem2mem decoder with multi-plane capture formats. It is relevant when decoding H.264, HEVC, or VP9 content through that path.
What must an attacker provide to trigger the hang?
An attacker must cause the application to decode a crafted H.264, HEVC, or VP9 stream containing resolution changes. The malformed stream can make codec reinitialization wait indefinitely, hanging the decoding application.