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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | ffmpeg | 6.1 – < 8.1 | 8.1 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | ffmpeg | 7:7.1.2-1 | — |
| Debian 13 | ffmpeg | 7:7.1.2-0+deb13u1 | DSA-6007-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | ffmpeg | No fix yet | — |
| Ubuntu 25.10 | ffmpeg | No fix yet | — |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 26.04 LTS | ffmpeg | 7:8.0.1-3ubuntu2+esm1 | USN-8469-1 |
| Ubuntu Pro 24.04 LTS | ffmpeg | 7:6.1.1-3ubuntu5+esm10 | USN-8469-1 |
| Ubuntu Pro 22.04 LTS | ffmpeg | 7:4.4.2-0ubuntu0.22.04.1+esm12 | USN-8469-1 |
| Ubuntu Pro 20.04 LTS | ffmpeg | 7:4.2.7-0ubuntu0.1+esm13 | USN-8469-1 |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | ffmpeg-7 +2 | No fix yet | — |
Advisories 3
- USN-8469-1 ffmpeg vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- DSA-6007-1 ffmpeg - security update Debian Security (DSA / DLA) · Mar 9, 2026
- WID-SEC-2025-2423 ffmpeg (TensorFlow DNN backend): Schwachstelle ermöglicht Denial of Service BSI CERT-Bund (WID) · Oct 27, 2025
References
- https://access.redhat.com/security/cve/CVE-2025-12343 vdb-entry
- RHBZ#2406533 issue-tracking