Skip to content

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

MediumCVSS 5.5 EPSS 0.17%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebian

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.

Upgrade path

6 packages: 5 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/ffmpeg(Ubuntu 26.10) All versions No fix listed No fix yet
debian/ffmpeg(Debian 13) < 7:7.1.2-0+deb13u1; = 7:7.1.1-1 7:7.1.2-0+deb13u1 Fixed
debian/ffmpeg(Debian 14) < 7:7.1.2-1; = 7:7.1.1-1 7:7.1.2-1 Fixed
ffmpeg >= 6.1, < 8.1 8.1 Fixed
ffmpeg/ffmpeg >= 6.1, < 8.1 8.1 Fixed
ubuntu/ffmpeg(Ubuntu 24.04) < 7:6.1.1-3ubuntu5+esm10 7:6.1.1-3ubuntu5+esm10 Fixed

Affected products

ProductAffected versionsFixed in
debian/ffmpeg(Debian:13) < 7:7.1.2-0+deb13u1 7:7.1.2-0+deb13u1
debian/ffmpeg(Debian:13) = 7:7.1.1-1 No fix listed
debian/ffmpeg(Debian:14) < 7:7.1.2-1 7:7.1.2-1
debian/ffmpeg(Debian:14) = 7:7.1.1-1 No fix listed
ffmpeg >= 6.1, < 8.1 8.1
ubuntu/ffmpeg(Ubuntu:24.04) < 7:6.1.1-3ubuntu5+esm10 7:6.1.1-3ubuntu5+esm10
ubuntu/ffmpeg(Ubuntu:26.10) All versions No fix listed
ffmpeg/ffmpeg >= 6.1, < 8.1 8.1

References