KissFFT versions prior to the fix commit 1b083165 contain an integer overflow in kissfftalloc() in kissfft.c on platforms where sizet is 32-bit. The nfft parameter is not validated before being used in a size calculation (sizeof(kissfftcpx) * (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.
"2026-04-12T15:36:24Z"
[
{
"source": "https://github.com/mborgerding/kissfft/commit/1b08316582049c3716154caefc0deab8758506e3",
"target": {
"file": "kiss_fft.c"
},
"id": "CVE-2025-34297-25c68af9",
"signature_type": "Line",
"signature_version": "v1",
"deprecated": false,
"digest": {
"line_hashes": [
"225193468594704237750876605570183174109",
"215000069480654626388866922675195860364",
"252268610753061227221797501302825321474",
"257022272158698638699152479811944270216",
"72162645817729369077901826927543794652"
],
"threshold": 0.9
}
},
{
"source": "https://github.com/mborgerding/kissfft/commit/1b08316582049c3716154caefc0deab8758506e3",
"target": {
"function": "kiss_fft_alloc",
"file": "kiss_fft.c"
},
"id": "CVE-2025-34297-d6655654",
"signature_type": "Function",
"signature_version": "v1",
"deprecated": false,
"digest": {
"function_hash": "112024550850666678402058197826958448011",
"length": 732.0
}
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-34297.json"