CVE-2025-12343 Ffmpeg: double-free vulnerability in ffmpeg tensorflow dnn backend
A double-free flaw in FFmpeg's TensorFlow backend allows attackers to cause a denial of service via crafted DNN models.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2025-12343?
CVE-2025-12343 is a low-severity use after free vulnerability in Ffmpeg Ffmpeg, published on 18 Feb 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-415
Which versions are affected by CVE-2025-12343?
It affects 1 product.
Products include Ffmpeg Ffmpeg.
How do I fix CVE-2025-12343?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2025-12343 being exploited?
There is no known exploitation of CVE-2025-12343 in the wild and no public exploit code.
Other vulnerabilities in Ffmpeg Ffmpeg
Sources
Also known as DEBIAN-CVE-2025-12343, GHSA-2g52-f4rf-8vm9, JLSEC-2026-642, MINI-6p56-2x6q-73q9, UBUNTU-CVE-2025-12343.