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

Published Oct 27, 2025
·
Updated

A flaw was found in FFmpeg’s TensorFlow backend within the libavfilter/dnnbackendtf.c source file. The issue occurs in the dnnexecutemodeltf() 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.

Other sources

Double-Free vulnerability in the TensorFlow DNN backend of the FFmpeg multimedia framework. The flaw resides in the dnnexecutemodeltf() function, where a task object is improperly freed multiple times using avfreep() under certain error conditions. Because the same task is also released later by dnnfreemodeltf() after a successful queue push, this leads to a double-free and subsequent memory corruption. An attacker could exploit this issue by feeding crafted data to a process using FFmpeg’s DNN TensorFlow backend, triggering a crash and causing a denial of service.

— Red Hat

Affected Software

3 affected componentsFixes available
FFmpeg FFmpeg
FFmpeg FFmpeg>=6.1<8.1
debian/ffmpeg
7:5.1.9-0+deb12u17:7.1.5-0+deb13u17:9.0.2-4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/ffmpeg to a version that resolves this vulnerability.

    Fixed in 7:5.1.9-0+deb12u1Fixed in 7:7.1.5-0+deb13u1Fixed in 7:9.0.2-4

Event History

Oct 27, 2025
Data Sourced
via Red Hat·12:54 PM
DescriptionSeverityAffected Software
Feb 18, 2026
CVE Published
via MITRE·08:28 PM
Data Sourced
via MITRE·08:28 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:16 PM
DescriptionSeverityWeaknessAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2025-12343?

CVE-2025-12343 has a medium severity level due to its potential to cause application crashes.

2

How do I fix CVE-2025-12343?

To fix CVE-2025-12343, update to the latest version of FFmpeg that addresses this double-free vulnerability.

3

What software is affected by CVE-2025-12343?

CVE-2025-12343 specifically affects the TensorFlow backend of FFmpeg.

4

What potential impacts does CVE-2025-12343 have?

CVE-2025-12343 could lead to application instability or crashes when processing tasks in FFmpeg.

5

Is CVE-2025-12343 being actively exploited?

As of now, there are no reported cases of CVE-2025-12343 being actively exploited in the wild.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203