{"id":"CVE-2025-34297","summary":"KissFFT Integer Overflow Heap Buffer Overflow via kiss_fft_alloc","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-10-06T02:33:45.892292605Z","published":"2025-12-01T18:18:15.156Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/34xxx/CVE-2025-34297.json","cna_assigner":"VulnCheck","cwe_ids":["CWE-190"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/34xxx/CVE-2025-34297.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-34297"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/kissfft-integer-overflow-heap-buffer-overflow"},{"type":"REPORT","url":"https://github.com/mborgerding/kissfft/issues/120"},{"type":"FIX","url":"https://github.com/mborgerding/kissfft/commit/1b08316582049c3716154caefc0deab8758506e3"},{"type":"PACKAGE","url":"https://github.com/mborgerding/kissfft"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/mborgerding/kissfft","events":[{"introduced":"0"},{"fixed":"1b08316582049c3716154caefc0deab8758506e3"}],"database_specific":{"source":"REFERENCES"}}],"versions":["131.2.0","131.1.0","v131","v130"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/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"}]}