
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-12343 is a double-free vulnerability in FFmpeg's TensorFlow DNN backend, specifically within the dnn_execute_model_tf() function in libavfilter/dnn_backend_tf.c. The flaw causes a task object to be freed multiple times under certain error-handling paths, leading to memory corruption and a denial-of-service condition. It affects FFmpeg versions 6.1 through 8.1 (exclusive). The vulnerability was first reported on October 27, 2025, and carries a CVSS v3.1 base score of 5.5 (Medium) (Red Hat Advisory, Red Hat Bugzilla).
The root cause is a CWE-415 (Double Free) condition in the dnn_execute_model_tf() function. When certain error conditions occur during model execution, a task object is freed via av_freep() in the error-handling path; however, the same task is subsequently released again by dnn_free_model_tf() after a successful queue push, resulting in a double-free and subsequent memory corruption. Exploitation requires a local attacker to supply crafted input data to an application using FFmpeg's TensorFlow DNN backend, triggering the vulnerable code path. The attack vector is local, requires no privileges, but does require user interaction (e.g., opening a malicious media file) (Red Hat Bugzilla, Red Hat Advisory).
Successful exploitation causes FFmpeg or any application embedding it to crash, resulting in a denial-of-service condition. The vulnerability has no impact on confidentiality or integrity — only availability is affected. Under normal conditions, arbitrary code execution is not considered achievable, limiting the blast radius to application crashes when processing TensorFlow-based DNN models (Red Hat Bugzilla).
dnn_execute_model_tf() function in FFmpeg's TensorFlow DNN backend.dnn_execute_model_tf() frees the task object via av_freep(), and the subsequent call to dnn_free_model_tf() frees it again, causing memory corruption.dnn_backend_tf.c or dnn_execute_model_tf(); heap corruption error messages from memory allocators (e.g., glibc double free or corruption errors).Users should upgrade FFmpeg to version 8.1 or later, which resolves the double-free condition in the TensorFlow DNN backend. As a workaround, disabling or avoiding use of FFmpeg's TensorFlow DNN backend (dnn_backend_tf) when processing untrusted input can mitigate the risk. Red Hat has tracked this issue and patch details are available via the associated Bugzilla entry (Red Hat Bugzilla, Red Hat Advisory).
The vulnerability was flagged by the Yocto Project security mailing list across multiple messages, indicating awareness in the embedded Linux community (Yocto Security List). Tenable published a Nessus plugin (ID 271857) for detection. No significant public researcher commentary or social media discussion has been identified beyond standard vulnerability aggregator coverage.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."