{"id":"UBUNTU-CVE-2025-12343","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-06-25T00:15:09.381710487Z","published":"2026-02-18T21:16:00Z","related":["USN-8469-1"],"upstream":["CVE-2025-12343"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-12343"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-12343"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-8469-1"}],"affected":[{"package":{"name":"ffmpeg","ecosystem":"Ubuntu:Pro:24.04:LTS","purl":"pkg:deb/ubuntu/ffmpeg?arch=source&distro=esm-apps%2Fnoble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7:6.1.1-3ubuntu5+esm10"}]}],"versions":["7:6.0-6ubuntu1","7:6.0-9ubuntu1","7:6.1-2ubuntu1","7:6.1-3ubuntu1","7:6.1-4ubuntu1","7:6.1-5ubuntu1","7:6.1.1-1ubuntu1","7:6.1.1-3ubuntu1","7:6.1.1-3ubuntu5","7:6.1.1-3ubuntu5+esm1","7:6.1.1-3ubuntu5+esm2","7:6.1.1-3ubuntu5+esm3","7:6.1.1-3ubuntu5+esm4","7:6.1.1-3ubuntu5+esm5","7:6.1.1-3ubuntu5+esm6","7:6.1.1-3ubuntu5+esm7","7:6.1.1-3ubuntu5+esm8"],"ecosystem_specific":{"binaries":[{"binary_name":"ffmpeg","binary_version":"7:6.1.1-3ubuntu5+esm10"},{"binary_name":"libavcodec-extra","binary_version":"7:6.1.1-3ubuntu5+esm10"},{"binary_name":"libavcodec-extra60","binary_version":"7:6.1.1-3ubuntu5+esm10"},{"binary_name":"libavcodec60","binary_version":"7:6.1.1-3ubuntu5+esm10"},{"binary_name":"libavdevice60","binary_version":"7:6.1.1-3ubuntu5+esm10"},{"binary_version":"7:6.1.1-3ubuntu5+esm10","binary_name":"libavfilter-extra"},{"binary_version":"7:6.1.1-3ubuntu5+esm10","binary_name":"libavfilter-extra9"},{"binary_version":"7:6.1.1-3ubuntu5+esm10","binary_name":"libavfilter9"},{"binary_name":"libavformat-extra","binary_version":"7:6.1.1-3ubuntu5+esm10"},{"binary_name":"libavformat-extra60","binary_version":"7:6.1.1-3ubuntu5+esm10"},{"binary_name":"libavformat60","binary_version":"7:6.1.1-3ubuntu5+esm10"},{"binary_version":"7:6.1.1-3ubuntu5+esm10","binary_name":"libavutil58"},{"binary_version":"7:6.1.1-3ubuntu5+esm10","binary_name":"libpostproc57"},{"binary_name":"libswresample4","binary_version":"7:6.1.1-3ubuntu5+esm10"},{"binary_name":"libswscale7","binary_version":"7:6.1.1-3ubuntu5+esm10"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-12343.json"}},{"package":{"name":"ffmpeg","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/ffmpeg?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7:7.1.1-1ubuntu1","7:7.1.1-1ubuntu2","7:7.1.1-1ubuntu3","7:7.1.1-1ubuntu4","7:7.1.1-1ubuntu4.1","7:7.1.1-1ubuntu4.2"],"ecosystem_specific":{"binaries":[{"binary_name":"ffmpeg","binary_version":"7:7.1.1-1ubuntu4.2"},{"binary_name":"libavcodec-extra","binary_version":"7:7.1.1-1ubuntu4.2"},{"binary_name":"libavcodec-extra61","binary_version":"7:7.1.1-1ubuntu4.2"},{"binary_name":"libavcodec61","binary_version":"7:7.1.1-1ubuntu4.2"},{"binary_version":"7:7.1.1-1ubuntu4.2","binary_name":"libavdevice61"},{"binary_name":"libavfilter-extra","binary_version":"7:7.1.1-1ubuntu4.2"},{"binary_name":"libavfilter-extra10","binary_version":"7:7.1.1-1ubuntu4.2"},{"binary_name":"libavfilter10","binary_version":"7:7.1.1-1ubuntu4.2"},{"binary_name":"libavformat-extra","binary_version":"7:7.1.1-1ubuntu4.2"},{"binary_version":"7:7.1.1-1ubuntu4.2","binary_name":"libavformat-extra61"},{"binary_version":"7:7.1.1-1ubuntu4.2","binary_name":"libavformat61"},{"binary_version":"7:7.1.1-1ubuntu4.2","binary_name":"libavutil59"},{"binary_name":"libpostproc58","binary_version":"7:7.1.1-1ubuntu4.2"},{"binary_name":"libswresample5","binary_version":"7:7.1.1-1ubuntu4.2"},{"binary_version":"7:7.1.1-1ubuntu4.2","binary_name":"libswscale8"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-12343.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"negligible"}]}