Skip to content

CVE-2025-34297 KissFFT Integer Overflow Heap Buffer Overflow via kiss_fft_alloc

HighCVSS 8.6 EPSS 0.18%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total
Technology
UbuntuDebian

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.

Upgrade path

9 packages: 7 fixed, 2 with no fix yet.

PackageAffectedFixed inStatus
azure linux tensorflow(Azure Linux 3.0) All versions No fix listed No fix yet
cbl-mariner tensorflow(CBL-Mariner 2.0) All versions No fix listed No fix yet
debian/kissfft(Debian 12) < 131.1.0-4.1~deb12u1; = 131.1.0-3; = 131.1.0-4 131.1.0-4.1~deb12u1 Fixed
debian/kissfft(Debian 13) < 131.1.0-4.1~deb13u1; = 131.1.0-3; = 131.1.0-4; = 131.1.0-4.1~deb12u1 131.1.0-4.1~deb13u1 Fixed
debian/kissfft(Debian 14) < 131.1.0-4.1; = 131.1.0-3; = 131.1.0-4; = 131.1.0-4.1~deb12u1 +1 more 131.1.0-4.1 Fixed
mborgerding/kissfft < 1b08316582049c3716154caefc0deab8758506e3 1b08316582049c3716154caefc0deab8758506e3 Fixed
ubuntu/kissfft(Ubuntu 22.04) < 131.1.0-2ubuntu0.1~esm1 131.1.0-2ubuntu0.1~esm1 Fixed
ubuntu/kissfft(Ubuntu 24.04) < 131.1.0-3ubuntu0.1~esm1 131.1.0-3ubuntu0.1~esm1 Fixed
ubuntu/kissfft(Ubuntu 26.04) < 131.1.0-4ubuntu0.1~esm1 131.1.0-4ubuntu0.1~esm1 Fixed

Affected products

ProductAffected versionsFixed in
cbl-mariner tensorflow(CBL-Mariner:2.0) All versions No fix listed
azure linux tensorflow(Azure Linux:3.0) All versions No fix listed
debian/kissfft(Debian:12) < 131.1.0-4.1~deb12u1 131.1.0-4.1~deb12u1
debian/kissfft(Debian:12) = 131.1.0-3 No fix listed
debian/kissfft(Debian:12) = 131.1.0-4 No fix listed
debian/kissfft(Debian:13) < 131.1.0-4.1~deb13u1 131.1.0-4.1~deb13u1
debian/kissfft(Debian:13) = 131.1.0-3 No fix listed
debian/kissfft(Debian:13) = 131.1.0-4 No fix listed
debian/kissfft(Debian:13) = 131.1.0-4.1~deb12u1 No fix listed
debian/kissfft(Debian:14) < 131.1.0-4.1 131.1.0-4.1
debian/kissfft(Debian:14) = 131.1.0-3 No fix listed
debian/kissfft(Debian:14) = 131.1.0-4 No fix listed
debian/kissfft(Debian:14) = 131.1.0-4.1~deb12u1 No fix listed
debian/kissfft(Debian:14) = 131.1.0-4.1~deb13u1 No fix listed
mborgerding/kissfft < 1b08316582049c3716154caefc0deab8758506e3 1b08316582049c3716154caefc0deab8758506e3
ubuntu/kissfft(Ubuntu:22.04) < 131.1.0-2ubuntu0.1~esm1 131.1.0-2ubuntu0.1~esm1
ubuntu/kissfft(Ubuntu:24.04) < 131.1.0-3ubuntu0.1~esm1 131.1.0-3ubuntu0.1~esm1
ubuntu/kissfft(Ubuntu:26.04) < 131.1.0-4ubuntu0.1~esm1 131.1.0-4ubuntu0.1~esm1

References