{"id":"CVE-2025-34297","aliases":["CVE-2025-34297"],"related":[],"kind":"vulnerability","state":"published","title":"KissFFT Integer Overflow Heap Buffer Overflow via kiss_fft_alloc","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Versiones de KissFFT anteriores al commit de corrección 1b083165 contienen un desbordamiento de entero en kiss_fft_alloc() en kiss_fft.c en plataformas donde size_t es de 32 bits. El parámetro nfft no se valida antes de ser utilizado en un cálculo de tamaño (sizeof(kiss_fft_cpx) * (nfft - 1)), lo que puede envolver a un valor pequeño cuando nfft es grande. Como resultado, malloc() asigna un búfer de tamaño insuficiente y el bucle de inicialización de factores de giro subsiguiente escribe nfft elementos, causando un desbordamiento de búfer de pila. Esta vulnerabilidad solo afecta a arquitecturas de 32 bits.","source":"nvd"}],"published":"2025-12-01T18:18:15.156Z","modified":"2026-10-18T20:10:00.110Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":8.6,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","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","score":8.6,"rating":"HIGH"}],"cwes":["CWE-190"],"affected":[{"ranges":[{"type":"git","introduced":"0","fixed":"1b08316582049c3716154caefc0deab8758506e3","status":"affected"}],"vendor":"mborgerding/kissfft","product":"mborgerding/kissfft","repo":"https://github.com/mborgerding/kissfft","platforms":["32 bit"],"source":"cvelist"}],"references":[{"url":"https://github.com/mborgerding/kissfft/commit/1b08316582049c3716154caefc0deab8758506e3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://github.com/mborgerding/kissfft/issues/120","tags":["issue-tracking"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/kissfft-integer-overflow-heap-buffer-overflow","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["Sajeeb Lohani of Bugcrowd Security Innovation Lab"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2025-12-01T18:36:15.952Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-34297","url":"https://www.cve.org/CVERecord?id=CVE-2025-34297","licence":"CVE Terms of Use","modified":"2026-07-14T22:25:55.819Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-34297","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-34297","licence":"Public domain","modified":"2026-10-18T20:10:00.110Z"}],"updatedAt":"2026-11-25T22:59:08.134Z","epss":{"score":0.00177,"percentile":0.07647,"date":"2026-12-01T12:00:22.000Z"}}