{"id":"UBUNTU-CVE-2026-40962","details":"FFmpeg before 8.1 has an integer overflow and resultant out-of-bounds write via CENC (Common Encryption) subsample data to libavformat/mov.c.","modified":"2026-06-25T00:15:15.887154787Z","published":"2026-04-16T02:16:00Z","related":["USN-8469-1"],"upstream":["CVE-2026-40962"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-40962"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-40962"},{"type":"REPORT","url":"https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/22348"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-8469-1"}],"affected":[{"package":{"name":"libav","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/libav?arch=source&distro=esm-infra-legacy%2Ftrusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6:0.8.7-1ubuntu2","6:9.10-1ubuntu1","6:9.10-1ubuntu2","6:9.10-1ubuntu5","6:9.10-1ubuntu6","6:9.10-1ubuntu7","6:9.11-2ubuntu1","6:9.11-2ubuntu2","6:9.13-0ubuntu0.14.04.1","6:9.14-0ubuntu0.14.04.1","6:9.16-0ubuntu0.14.04.1","6:9.18-0ubuntu0.14.04.1","6:9.20-0ubuntu0.14.04.1","6:9.20-0ubuntu0.14.04.1+esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"libav-tools","binary_version":"6:9.20-0ubuntu0.14.04.1+esm1"},{"binary_version":"6:9.20-0ubuntu0.14.04.1+esm1","binary_name":"libavcodec-extra"},{"binary_name":"libavcodec-extra-54","binary_version":"6:9.20-0ubuntu0.14.04.1+esm1"},{"binary_name":"libavcodec54","binary_version":"6:9.20-0ubuntu0.14.04.1+esm1"},{"binary_name":"libavdevice-extra-53","binary_version":"6:9.20-0ubuntu0.14.04.1+esm1"},{"binary_version":"6:9.20-0ubuntu0.14.04.1+esm1","binary_name":"libavdevice53"},{"binary_name":"libavfilter-extra-3","binary_version":"6:9.20-0ubuntu0.14.04.1+esm1"},{"binary_version":"6:9.20-0ubuntu0.14.04.1+esm1","binary_name":"libavfilter3"},{"binary_name":"libavformat-extra-54","binary_version":"6:9.20-0ubuntu0.14.04.1+esm1"},{"binary_name":"libavformat54","binary_version":"6:9.20-0ubuntu0.14.04.1+esm1"},{"binary_name":"libavresample1","binary_version":"6:9.20-0ubuntu0.14.04.1+esm1"},{"binary_name":"libavutil-extra-52","binary_version":"6:9.20-0ubuntu0.14.04.1+esm1"},{"binary_version":"6:9.20-0ubuntu0.14.04.1+esm1","binary_name":"libavutil52"},{"binary_version":"6:9.20-0ubuntu0.14.04.1+esm1","binary_name":"libswscale-extra-2"},{"binary_version":"6:9.20-0ubuntu0.14.04.1+esm1","binary_name":"libswscale2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40962.json"}},{"package":{"name":"ffmpeg","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/ffmpeg?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7:4.2.7-0ubuntu0.1+esm13"}]}],"versions":["7:4.1.4-1build2","7:4.2.1-2","7:4.2.1-2ubuntu1","7:4.2.2-1build1","7:4.2.2-1ubuntu1","7:4.2.4-1ubuntu0.1","7:4.2.4-1ubuntu0.1+esm1","7:4.2.7-0ubuntu0.1","7:4.2.7-0ubuntu0.1+esm1","7:4.2.7-0ubuntu0.1+esm2","7:4.2.7-0ubuntu0.1+esm3","7:4.2.7-0ubuntu0.1+esm4","7:4.2.7-0ubuntu0.1+esm5","7:4.2.7-0ubuntu0.1+esm6","7:4.2.7-0ubuntu0.1+esm7","7:4.2.7-0ubuntu0.1+esm8","7:4.2.7-0ubuntu0.1+esm9","7:4.2.7-0ubuntu0.1+esm10","7:4.2.7-0ubuntu0.1+esm11","7:4.2.7-0ubuntu0.1+esm12"],"ecosystem_specific":{"binaries":[{"binary_name":"ffmpeg","binary_version":"7:4.2.7-0ubuntu0.1+esm13"},{"binary_version":"7:4.2.7-0ubuntu0.1+esm13","binary_name":"libavcodec-extra"},{"binary_name":"libavcodec-extra58","binary_version":"7:4.2.7-0ubuntu0.1+esm13"},{"binary_version":"7:4.2.7-0ubuntu0.1+esm13","binary_name":"libavcodec58"},{"binary_name":"libavdevice58","binary_version":"7:4.2.7-0ubuntu0.1+esm13"},{"binary_name":"libavfilter-extra","binary_version":"7:4.2.7-0ubuntu0.1+esm13"},{"binary_name":"libavfilter-extra7","binary_version":"7:4.2.7-0ubuntu0.1+esm13"},{"binary_version":"7:4.2.7-0ubuntu0.1+esm13","binary_name":"libavfilter7"},{"binary_name":"libavformat58","binary_version":"7:4.2.7-0ubuntu0.1+esm13"},{"binary_name":"libavresample4","binary_version":"7:4.2.7-0ubuntu0.1+esm13"},{"binary_name":"libavutil56","binary_version":"7:4.2.7-0ubuntu0.1+esm13"},{"binary_name":"libpostproc55","binary_version":"7:4.2.7-0ubuntu0.1+esm13"},{"binary_name":"libswresample3","binary_version":"7:4.2.7-0ubuntu0.1+esm13"},{"binary_name":"libswscale5","binary_version":"7:4.2.7-0ubuntu0.1+esm13"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40962.json"}},{"package":{"name":"ffmpeg","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/ffmpeg?arch=source&distro=esm-apps%2Fjammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7:4.4.2-0ubuntu0.22.04.1+esm12"}]}],"versions":["7:4.4-6ubuntu5","7:4.4.1-2ubuntu1","7:4.4.1-3ubuntu1","7:4.4.1-3ubuntu2","7:4.4.1-3ubuntu3","7:4.4.1-3ubuntu5","7:4.4.2-0ubuntu0.22.04.1","7:4.4.2-0ubuntu0.22.04.1+esm1","7:4.4.2-0ubuntu0.22.04.1+esm2","7:4.4.2-0ubuntu0.22.04.1+esm3","7:4.4.2-0ubuntu0.22.04.1+esm4","7:4.4.2-0ubuntu0.22.04.1+esm5","7:4.4.2-0ubuntu0.22.04.1+esm6","7:4.4.2-0ubuntu0.22.04.1+esm7","7:4.4.2-0ubuntu0.22.04.1+esm8","7:4.4.2-0ubuntu0.22.04.1+esm9","7:4.4.2-0ubuntu0.22.04.1+esm10","7:4.4.2-0ubuntu0.22.04.1+esm11"],"ecosystem_specific":{"binaries":[{"binary_name":"ffmpeg","binary_version":"7:4.4.2-0ubuntu0.22.04.1+esm12"},{"binary_name":"libavcodec-extra","binary_version":"7:4.4.2-0ubuntu0.22.04.1+esm12"},{"binary_name":"libavcodec-extra58","binary_version":"7:4.4.2-0ubuntu0.22.04.1+esm12"},{"binary_name":"libavcodec58","binary_version":"7:4.4.2-0ubuntu0.22.04.1+esm12"},{"binary_name":"libavdevice58","binary_version":"7:4.4.2-0ubuntu0.22.04.1+esm12"},{"binary_version":"7:4.4.2-0ubuntu0.22.04.1+esm12","binary_name":"libavfilter-extra"},{"binary_version":"7:4.4.2-0ubuntu0.22.04.1+esm12","binary_name":"libavfilter-extra7"},{"binary_name":"libavfilter7","binary_version":"7:4.4.2-0ubuntu0.22.04.1+esm12"},{"binary_name":"libavformat-extra","binary_version":"7:4.4.2-0ubuntu0.22.04.1+esm12"},{"binary_name":"libavformat-extra58","binary_version":"7:4.4.2-0ubuntu0.22.04.1+esm12"},{"binary_name":"libavformat58","binary_version":"7:4.4.2-0ubuntu0.22.04.1+esm12"},{"binary_name":"libavutil56","binary_version":"7:4.4.2-0ubuntu0.22.04.1+esm12"},{"binary_name":"libpostproc55","binary_version":"7:4.4.2-0ubuntu0.22.04.1+esm12"},{"binary_name":"libswresample3","binary_version":"7:4.4.2-0ubuntu0.22.04.1+esm12"},{"binary_name":"libswscale5","binary_version":"7:4.4.2-0ubuntu0.22.04.1+esm12"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40962.json"}},{"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":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","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_version":"7:6.1.1-3ubuntu5+esm10","binary_name":"libavdevice60"},{"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_version":"7:6.1.1-3ubuntu5+esm10"},{"binary_name":"libavformat-extra","binary_version":"7:6.1.1-3ubuntu5+esm10"},{"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_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"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40962.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_version":"7:7.1.1-1ubuntu4.2","binary_name":"ffmpeg"},{"binary_version":"7:7.1.1-1ubuntu4.2","binary_name":"libavcodec-extra"},{"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_name":"libavformat-extra61","binary_version":"7:7.1.1-1ubuntu4.2"},{"binary_name":"libavformat61","binary_version":"7:7.1.1-1ubuntu4.2"},{"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/2026/UBUNTU-CVE-2026-40962.json"}},{"package":{"name":"ffmpeg","ecosystem":"Ubuntu:Pro:26.04:LTS","purl":"pkg:deb/ubuntu/ffmpeg?arch=source&distro=esm-apps%2Fresolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7:8.0.1-3ubuntu2+esm1"}]}],"versions":["7:7.1.1-1ubuntu4","7:7.1.2-1ubuntu3","7:7.1.2-1ubuntu4","7:7.1.3-1ubuntu1","7:8.0.1-2ubuntu1","7:8.0.1-3ubuntu1","7:8.0.1-3ubuntu2"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_name":"ffmpeg","binary_version":"7:8.0.1-3ubuntu2+esm1"},{"binary_name":"libavcodec-extra","binary_version":"7:8.0.1-3ubuntu2+esm1"},{"binary_name":"libavcodec-extra62","binary_version":"7:8.0.1-3ubuntu2+esm1"},{"binary_version":"7:8.0.1-3ubuntu2+esm1","binary_name":"libavcodec62"},{"binary_version":"7:8.0.1-3ubuntu2+esm1","binary_name":"libavdevice62"},{"binary_name":"libavfilter-extra","binary_version":"7:8.0.1-3ubuntu2+esm1"},{"binary_name":"libavfilter-extra11","binary_version":"7:8.0.1-3ubuntu2+esm1"},{"binary_name":"libavfilter11","binary_version":"7:8.0.1-3ubuntu2+esm1"},{"binary_name":"libavformat-extra","binary_version":"7:8.0.1-3ubuntu2+esm1"},{"binary_version":"7:8.0.1-3ubuntu2+esm1","binary_name":"libavformat-extra62"},{"binary_version":"7:8.0.1-3ubuntu2+esm1","binary_name":"libavformat62"},{"binary_name":"libavutil60","binary_version":"7:8.0.1-3ubuntu2+esm1"},{"binary_name":"libswresample6","binary_version":"7:8.0.1-3ubuntu2+esm1"},{"binary_version":"7:8.0.1-3ubuntu2+esm1","binary_name":"libswscale9"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-40962.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}