{"id":"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-04-12T15:36:24.515040Z","published":"2025-12-01T19:15:50.420Z","references":[{"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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/mborgerding/kissfft","events":[{"introduced":"0"},{"fixed":"1b08316582049c3716154caefc0deab8758506e3"}]}],"versions":["131.1.0","131.2.0","v130","v131"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-34297.json","vanir_signatures":[{"source":"https://github.com/mborgerding/kissfft/commit/1b08316582049c3716154caefc0deab8758506e3","id":"CVE-2025-34297-25c68af9","target":{"file":"kiss_fft.c"},"deprecated":false,"signature_version":"v1","signature_type":"Line","digest":{"threshold":0.9,"line_hashes":["225193468594704237750876605570183174109","215000069480654626388866922675195860364","252268610753061227221797501302825321474","257022272158698638699152479811944270216","72162645817729369077901826927543794652"]}},{"source":"https://github.com/mborgerding/kissfft/commit/1b08316582049c3716154caefc0deab8758506e3","id":"CVE-2025-34297-d6655654","target":{"function":"kiss_fft_alloc","file":"kiss_fft.c"},"deprecated":false,"signature_version":"v1","signature_type":"Function","digest":{"function_hash":"112024550850666678402058197826958448011","length":732}}],"vanir_signatures_modified":"2026-04-12T15:36:24Z"}}],"schema_version":"1.7.5","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"}]}