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

- Priority: **Routine**
- Reason: Not severe (CVSS 3.3, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-02-18 · Modified: 2026-02-25
- Aliases: UBUNTU-CVE-2025-12343, DEBIAN-CVE-2025-12343, CGA-2hhm-rpr8-r58c, CGA-3f7x-3xm2-3ccw, CGA-63mr-pqvw-45pq, CGA-jxrq-xjm6-rr58, CGA-rh2c-7j5p-fcp3, CGA-vgfh-3xjm-r54m, CGA-33v4-jc24-69m9, CGA-3ww7-6ghc-r5jm, CGA-639m-mg9c-3jq7, CGA-fhm5-p2gh-7vg4, CGA-g74j-7w6j-fv83, CGA-hgwr-3jgf-7c8m, CGA-mm9m-f7cj-j94q, CGA-p6cq-5gr9-v8hw, CGA-qm6x-gx56-w2j7, CGA-qq28-hrm4-p959, CGA-vc4r-22v3-wpx2, CGA-vjj6-xg9m-4hmf, CGA-wq8q-vpr6-9r7h, CGA-xcf9-pxj7-3rq3, CGA-2h4w-qg8m-wfv7, CGA-2wj9-96vx-jvp7, CGA-3q76-8732-w7wm, CGA-3wwh-hfqv-5gjj, CGA-4c6c-jf48-4pf5, CGA-4qhq-vx54-rhqf, CGA-6ghm-c2r3-q74g, CGA-226h-fgq9-r2g2, CGA-38p6-8pfp-rcxm, CGA-9cfv-f9f5-wc3j, CGA-94m3-7657-hqpv, CGA-c438-x5w5-x9q4, CGA-q5wp-vg36-rqjc, CGA-qx8m-8pg9-p395, CGA-rmmg-hmqr-rwqj, CGA-3gh8-7wjw-wqv3, CGA-53hg-655h-w794, CGA-57h8-wxhm-wf44, CGA-6c5p-6jg7-9whq, CGA-746m-jrp6-2h37, CGA-834h-h8m8-6vmf, CGA-cjvr-xc7v-64w8, CGA-g3h6-jg8r-6qfg, CGA-h9v3-mpqc-pm73, CGA-j8jx-prf3-6xwc, CGA-m442-cr9g-p4jf, CGA-m7vh-pm5v-gj53, CGA-mmpf-pm4g-6q8p, CGA-prc8-jfvw-mw27, CGA-q7m7-7q5r-8wxc, CGA-qv9q-v5wh-mgrf, CGA-qvrq-9ggr-7qpm, CGA-4fmf-ggxw-49wg, CGA-7fq4-rgq5-r45x, CGA-985p-xc6x-4jw8, CGA-9fp5-vvv6-q3f4, CGA-f7w4-gqfj-mgqp, CGA-jc3c-3498-v42x, CGA-jj2p-mwr8-jjg2, CGA-jvqm-xcjm-v5f3, CGA-p8m2-cp4h-74j3, CGA-vc7h-gwwx-r8r7
- Record: https://cvemate.com/vulnerability/CVE-2025-12343 · JSON: https://cvemate.com/vulnerability/CVE-2025-12343/json

## Description

```text
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.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- EPSS: 0.17%, percentile 6.636%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 37)

- chainguard eco-python-ffmpeg-6-minimal (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-6-minimal-dev (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-6-minimal-static (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-7-minimal (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-7-minimal-dev (Chainguard): All versions (No fix recorded)
- chainguard eco-python-ffmpeg-7-minimal-static (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-6 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-7 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-7.1 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-8.0 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-fips-7.1 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-fips-7.1-dev (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-fips-7.1-libavcodec61 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-fips-7.1-libavdevice61 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-fips-7.1-libavfilter10 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-fips-7.1-libavformat61 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-fips-7.1-libavutil59 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-fips-7.1-libpostproc58 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-fips-7.1-libswresample5 (Chainguard): All versions (No fix recorded)
- chainguard ffmpeg-fips-7.1-libswscale8 (Chainguard): All versions (No fix recorded)

## References

- <https://access.redhat.com/security/cve/CVE-2025-12343>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2406533>
- <https://ubuntu.com/security/CVE-2025-12343>
- <https://www.cve.org/CVERecord?id=CVE-2025-12343>
- <https://ubuntu.com/security/notices/USN-8469-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-12343>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/12xxx/CVE-2025-12343.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-12343>
- <https://github.com/FFmpeg/FFmpeg>

---

Data as of 2026-12-05T07:00:35.509Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
