CVE-2025-12343Ffmpeg: double-free vulnerability in ffmpeg tensorflow dnn backend
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.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | ffmpeg | Fix pending | UBUNTU-CVE-2025-12343 | |
| Ubuntu 25.10 | ffmpeg | Will not fix The CVE has been reverted back to RESERVED. We are marking it as Negligible for now. | UBUNTU-CVE-2025-12343 | |
| Ubuntu 24.04 | ffmpeg | Fix pending | 7:6.1.1-3ubuntu5+esm10 (Ubuntu Pro) | UBUNTU-CVE-2025-12343 |
| Debian 14 | ffmpeg | Fixed | 7:7.1.2-1 | DEBIAN-CVE-2025-12343 |
| Debian 13 | ffmpeg | Fixed | 7:7.1.2-0+deb13u1 | DEBIAN-CVE-2025-12343 |
What the vendor says
As published in the CVE record by fedora, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- ffmpeg: affected: 6.1 to before 8.1; fixed in
8.1
Workaround: Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
References
- https://access.redhat.com/security/cve/CVE-2025-12343
- https://bugzilla.redhat.com/show_bug.cgi?id=2406533
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.