{"id":"UBUNTU-CVE-2025-34297","details":"KissFFT versions prior to the fix commit 1b083165 contain an integer overflow in kiss_fft_alloc() in kiss_fft.c on platforms where size_t is 32-bit. The nfft parameter is not validated before being used in a size calculation (sizeof(kiss_fft_cpx) * (nfft - 1)), which can wrap to a small value when nfft is large. As a result, malloc() allocates an undersized buffer and the subsequent twiddle-factor initialization loop writes nfft elements, causing a heap buffer overflow. This vulnerability only affects 32-bit architectures.","modified":"2026-09-10T21:30:17.520746238Z","published":"2025-12-01T19:15:00Z","related":["USN-8745-1"],"upstream":["CVE-2025-34297"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-34297"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-34297"},{"type":"REPORT","url":"https://github.com/mborgerding/kissfft/issues/120"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-8745-1"}],"affected":[{"package":{"name":"kissfft","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/kissfft?arch=source&distro=esm-apps%2Fjammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"131.1.0-2ubuntu0.1~esm1"}]}],"versions":["131.1.0-1","131.1.0-2"],"ecosystem_specific":{"binaries":[{"binary_name":"kissfft-tools","binary_version":"131.1.0-2ubuntu0.1~esm1"},{"binary_name":"libkissfft-float131","binary_version":"131.1.0-2ubuntu0.1~esm1"}],"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-34297.json"}},{"package":{"name":"kissfft","ecosystem":"Ubuntu:Pro:24.04:LTS","purl":"pkg:deb/ubuntu/kissfft?arch=source&distro=esm-apps%2Fnoble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"131.1.0-3ubuntu0.1~esm1"}]}],"versions":["131.1.0-3","131.1.0-3build1","131.1.0-3build2"],"ecosystem_specific":{"binaries":[{"binary_name":"kissfft-tools","binary_version":"131.1.0-3ubuntu0.1~esm1"},{"binary_name":"libkissfft-float131","binary_version":"131.1.0-3ubuntu0.1~esm1"}],"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-34297.json"}},{"package":{"name":"kissfft","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/kissfft?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["131.1.0-3build2"],"ecosystem_specific":{"binaries":[{"binary_name":"kissfft-tools","binary_version":"131.1.0-3build2"},{"binary_version":"131.1.0-3build2","binary_name":"libkissfft-float131"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-34297.json"}},{"package":{"name":"kissfft","ecosystem":"Ubuntu:Pro:26.04:LTS","purl":"pkg:deb/ubuntu/kissfft?arch=source&distro=esm-apps%2Fresolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"131.1.0-4ubuntu0.1~esm1"}]}],"versions":["131.1.0-3build2","131.1.0-4"],"ecosystem_specific":{"binaries":[{"binary_version":"131.1.0-4ubuntu0.1~esm1","binary_name":"kissfft-tools"},{"binary_name":"libkissfft-float131","binary_version":"131.1.0-4ubuntu0.1~esm1"}],"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-34297.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"},{"type":"Ubuntu","score":"medium"}]}