CVE-2025-34297
JSON

8.6high

KissFFT Integer Overflow Heap Buffer Overflow via kiss_fft_alloc

Severity
8.6high CVSS:4.0 by VulnCheck
Exploit likelihood
0.18% (higher than 7% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
VulnCheck

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.

Affected

Product or packageVersionsReported by
mborgerding/kissfft mborgerding/kissfftbefore 1b08316582049c3716154caefc0deab8758506e3CVE List

Classification

CWE-190

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

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.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-34297 changed 2026-07-14CVE Terms of Use
NVDCVE-2025-34297 changed 2026-10-18Public domain