What’s Vulnerable › Vulnerabilities
CVE-2025-12343: Ffmpeg: double-free vulnerability in ffmpeg tensorflow dnn backend
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-02-18 · updated 2026-06-17
- Weakness: CWE-415
Description
A flaw was found in FFmpeg’s TensorFlow backend within the libavfilter/dnn_backend_tf.c source file. The issue occurs in the dnn_execute_model_tf() function, where a task object is freed multiple times in certain error-handling paths. This redundant memory deallocation can lead to a double-free condition, potentially causing FFmpeg or any application using it to crash when processing TensorFlow-based DNN models. This results in a denial-of-service scenario but does not allow arbitrary code execution under normal conditions.
Affected products
- FFmpeg: from 6.1 before 8.1 — fixed in 8.1
How to fix
Upgrade to a fixed version: FFmpeg 8.1. Check the vendor advisory for mitigations.
References
- https://access.redhat.com/security/cve/CVE-2025-12343
- https://bugzilla.redhat.com/show_bug.cgi?id=2406533
Get alerted when CVE-2025-12343 or the next vulnerability affects your stack