{"id":"CVE-2025-34297","aliases":["DEBIAN-CVE-2025-34297","EUVD-2025-200096","GHSA-4q9h-j8g6-f49h","UBUNTU-CVE-2025-34297","USN-8745-1"],"status":"published","title":"KissFFT Integer Overflow Heap Buffer Overflow via kiss_fft_alloc","description":"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.","severity":{"version":"4.0","score":8.6,"vector":"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","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.00177,"percentile":0.07389,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-190"],"published":"2025-12-01T18:18:15Z","modified":"2026-10-28T10:59:09Z","fixes":[{"ecosystem":"Debian:12","package":"kissfft","fixed_in":["131.1.0-4.1~deb12u1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"kissfft","fixed_in":["131.1.0-4.1~deb13u1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"kissfft","fixed_in":["131.1.0-4.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:22.04:LTS","package":"kissfft","fixed_in":["131.1.0-2ubuntu0.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:24.04:LTS","package":"kissfft","fixed_in":["131.1.0-3ubuntu0.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:26.04:LTS","package":"kissfft","fixed_in":["131.1.0-4ubuntu0.1~esm1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"kissfft","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"131.1.0-4.1~deb12u1"}]}],"versions":["131.1.0-3","131.1.0-4"]},{"source":"osv","ecosystem":"Debian:13","package":"kissfft","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"131.1.0-4.1~deb13u1"}]}],"versions":["131.1.0-3","131.1.0-4","131.1.0-4.1~deb12u1"]},{"source":"osv","ecosystem":"Debian:14","package":"kissfft","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"131.1.0-4.1"}]}],"versions":["131.1.0-3","131.1.0-4","131.1.0-4.1~deb12u1","131.1.0-4.1~deb13u1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:22.04:LTS","package":"kissfft","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"131.1.0-2ubuntu0.1~esm1"}]}],"versions":["131.1.0-1","131.1.0-2"]},{"source":"osv","ecosystem":"Ubuntu:Pro:24.04:LTS","package":"kissfft","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"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"kissfft","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["131.1.0-3build2"]},{"source":"osv","ecosystem":"Ubuntu:Pro:26.04:LTS","package":"kissfft","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"131.1.0-4ubuntu0.1~esm1"}]}],"versions":["131.1.0-3build2","131.1.0-4"]},{"source":"osv","ecosystem":"Ubuntu:Pro:22.04:LTS","package":"kissfft","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"131.1.0-2ubuntu0.1~esm1"}]}],"versions":["131.1.0-1","131.1.0-2"],"bundled":2},{"source":"osv","ecosystem":"Ubuntu:Pro:24.04:LTS","package":"kissfft","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"],"bundled":2},{"source":"osv","ecosystem":"Ubuntu:Pro:26.04:LTS","package":"kissfft","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"131.1.0-4ubuntu0.1~esm1"}]}],"versions":["131.1.0-3build2","131.1.0-4"],"bundled":2}],"products":[{"vendor":"mborgerding/kissfft","product":"mborgerding/kissfft"}],"references":[{"url":"https://github.com/mborgerding/kissfft/commit/1b08316582049c3716154caefc0deab8758506e3","tags":["patch","fix"]},{"url":"https://github.com/mborgerding/kissfft/issues/120","tags":["issue-tracking","report"]},{"url":"https://www.vulncheck.com/advisories/kissfft-integer-overflow-heap-buffer-overflow","tags":["third-party-advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-34297","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-4q9h-j8g6-f49h"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/34xxx/CVE-2025-34297.json","tags":["advisory"]},{"url":"https://github.com/mborgerding/kissfft","tags":["package"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-34297","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2025-34297","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-34297","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-8745-1","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-41445","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2025-34297","title":"KissFFT Integer Overflow Heap Buffer Overflow via kiss_fft_alloc","description":"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.","status":"published","published":"2025-12-01T18:18:15.156Z","modified":"2026-07-14T22:25:55.819Z","cvss":[{"version":"4.0","score":8.6,"vector":"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","level":"high","assessor":"cna"}],"cwes":["CWE-190"],"updated_at":"2026-11-02T14:32:54.534202Z"}],"euvd":[{"id":"EUVD-2025-200096","description":"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.","status":"published","published":"2025-12-01T18:18:15Z","modified":"2026-07-14T22:25:55Z","cvss":[{"version":"4.0","score":8.6,"vector":"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","level":"high"}],"updated_at":"2026-11-02T18:19:57.359664Z"}],"ghsa":[{"id":"GHSA-4q9h-j8g6-f49h","title":"KissFFT versions prior to the fix commit 1b083165 contain an integer overflow in kiss_fft_alloc()...","description":"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.","status":"published","published":"2025-12-01T21:30:26Z","modified":"2025-12-01T21:30:33Z","cvss":[{"version":"4.0","score":8.6,"vector":"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","level":"high"}],"cwes":["CWE-190"],"updated_at":"2026-11-02T15:04:59.670278Z"}],"nvd":[{"id":"CVE-2025-34297","description":"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.","status":"published","published":"2025-12-01T19:15:50.42Z","modified":"2026-10-18T20:10:00.11Z","cvss":[{"version":"4.0","score":8.6,"vector":"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","level":"high","assessor":"secondary"}],"cwes":["CWE-190"],"updated_at":"2026-11-02T14:11:46.94029Z"}],"osv":[{"id":"CVE-2025-34297","title":"KissFFT Integer Overflow Heap Buffer Overflow via kiss_fft_alloc","description":"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.","status":"published","published":"2025-12-01T18:18:15.156Z","modified":"2026-10-28T10:59:09.693555874Z","cvss":[{"version":"4.0","score":8.6,"vector":"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","level":"high"}],"cwes":["CWE-190"],"updated_at":"2026-11-02T15:44:48.02508Z"},{"id":"DEBIAN-CVE-2025-34297","description":"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.","status":"published","published":"2025-12-01T19:15:50.42Z","modified":"2026-10-23T17:47:38.21636319Z","cvss":[{"version":"4.0","score":8.6,"vector":"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","level":"high"}],"updated_at":"2026-11-02T15:45:45.870237Z"},{"id":"UBUNTU-CVE-2025-34297","description":"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.","status":"published","published":"2025-12-01T19:15:00Z","modified":"2026-09-10T21:30:17.520746238Z","cvss":[{"version":"4.0","score":8.6,"vector":"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","level":"high"}],"updated_at":"2026-11-02T16:55:28.829873Z"},{"id":"USN-8745-1","title":"kissfft vulnerabilities","description":"It was discovered that KissFFT incorrectly handled certain large Fourier\ntransform sizes on 32-bit architectures. An attacker could possibly use\nthis issue to cause KissFFT to crash, resulting in a denial of service, or\nexecute arbitrary code. (CVE-2025-34297)\n\nIt was discovered that KissFFT incorrectly handled certain multidimensional\nFourier transform sizes. An attacker could possibly use this issue to cause\nKissFFT to crash, resulting in a denial of service, or execute arbitrary\ncode. (CVE-2026-41445)","status":"published","published":"2026-09-10T15:36:46Z","modified":"2026-09-10T21:42:31.094242626Z","updated_at":"2026-11-02T16:58:26.907654Z"}]}}
