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

- Severity: Low 3.3 (CVSS:3.1, scored by fedora) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-02-18T20:28:08.338Z
- Modified: 2026-06-17T08:32:12.467Z
- Weaknesses: CWE-415
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: fedora

## 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.

(As written by CVE List.)

## Affected

- ffmpeg: from 6.1 before 8.1
- ffmpeg ffmpeg: from 6.1 before 8.1

## Every score

- fedora: CVSS:3.1 3.3 Low `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`

## References

- <https://access.redhat.com/security/cve/CVE-2025-12343> (third-party-advisory, vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2406533> (issue-tracking, third-party-advisory)

## Sources

- CVE List: [CVE-2025-12343](https://www.cve.org/CVERecord?id=CVE-2025-12343), CVE Terms of Use, modified 2026-02-25
- NVD: [CVE-2025-12343](https://nvd.nist.gov/vuln/detail/CVE-2025-12343), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-12343 · Whole record: https://cve.day/CVE-2025-12343.json · Rebuilt by cve.day 2026-11-25T22:59:11.297Z
