CVEfocus › CVE database › CVE-2025-12343

CVE-2025-12343Ffmpeg: double-free vulnerability in ffmpeg tensorflow dnn backend

CVSS 3.3 LowEPSS 0.2% (higher than 6% of CVEs)Published 2026-02-18Updated 2026-02-25Assigner: fedora

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.

CWE-415

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

2Fixed
2Fix pending
1Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10ffmpegFix pendingUBUNTU-CVE-2025-12343
Ubuntu 25.10ffmpegWill not fix
The CVE has been reverted back to RESERVED. We are marking it as Negligible for now.
UBUNTU-CVE-2025-12343
Ubuntu 24.04ffmpegFix pending7:6.1.1-3ubuntu5+esm10 (Ubuntu Pro)UBUNTU-CVE-2025-12343
Debian 14ffmpegFixed7:7.1.2-1DEBIAN-CVE-2025-12343
Debian 13ffmpegFixed7:7.1.2-0+deb13u1DEBIAN-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.

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

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.