{"id":"CVE-2025-12343","summary":"Ffmpeg: double-free vulnerability in ffmpeg tensorflow dnn backend","details":"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.","modified":"2026-08-17T04:22:43.171423732Z","published":"2026-02-18T20:28:08.338Z","database_specific":{"cna_assigner":"fedora","cwe_ids":["CWE-415"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/12xxx/CVE-2025-12343.json"},"references":[{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2025-12343"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/12xxx/CVE-2025-12343.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-12343"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2406533"},{"type":"PACKAGE","url":"https://github.com/FFmpeg/FFmpeg"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.ffmpeg.org/ffmpeg.git","events":[{"introduced":"47ac3e60653da651dfa064b649d0ac297560d8d5"},{"fixed":"638b521c7b09e00514aa13ade43c389b4b40ddfd"}],"database_specific":{"source":"CPE_RANGE","cpe":"cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"6.1"},{"fixed":"8.1"}]}},{"type":"GIT","repo":"https://github.com/ffmpeg/ffmpeg","events":[{"introduced":"47ac3e60653da651dfa064b649d0ac297560d8d5"},{"fixed":"638b521c7b09e00514aa13ade43c389b4b40ddfd"}],"database_specific":{"extracted_events":[{"introduced":"6.1"},{"fixed":"8.1"}],"source":["AFFECTED_FIELD","CPE_RANGE"],"cpe":"cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*"}}],"versions":["n7.2-dev","n7.1-dev","n6.2-dev","n6.1-dev"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-12343.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L"}]}