CVE 8.6 HIGH

KissFFT Integer Overflow Heap Buffer Overflow via kiss_fft_alloc_CVE-2025-34297

8.6 / 10
HIGH
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

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.

AI Analysis

Integer overflow in kiss_fft_alloc() function, leading to a heap buffer overflow on 32-bit architectures.

Basic Information

ID CVE-2025-34297
Source VulnCheck
Published Dec 1, 2025 at 18:18
Modified Dec 1, 2025 at 18:37

Affected Product

Vendor mborgerding/kissfft
Product mborgerding/kissfft
Affected Versions mborgerding/kissfft mborgerding/kissfft 0

CWE Classification

AI Assessment

AI Score 8.6 / 10
AI Severity High
Vendor mborgerding
Product KissFFT
Version prior to commit 1b083165

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.