{"id":"CVE-2025-34297","state":"PUBLISHED","title":"KissFFT Integer Overflow Heap Buffer Overflow via kiss_fft_alloc","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.","publishedAt":"2025-12-01T18:18:15.156Z","updatedAt":"2026-07-14T22:25:55.819Z","severity":{"score":8.6,"label":"High","version":"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","source":"VulnCheck"},"assigner":"VulnCheck","products":["mborgerding/kissfft mborgerding/kissfft"],"affected":[{"vendor":"mborgerding/kissfft","product":"mborgerding/kissfft","packageURL":"pkg:github/mborgerding/kissfft","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1b08316582049c3716154caefc0deab8758506e3","versionType":"git"}],"platforms":["32 bit"],"repo":"https://github.com/mborgerding/kissfft"}],"references":["https://github.com/mborgerding/kissfft/commit/1b08316582049c3716154caefc0deab8758506e3","https://github.com/mborgerding/kissfft/issues/120","https://www.vulncheck.com/advisories/kissfft-integer-overflow-heap-buffer-overflow"],"weaknesses":["CWE-190"],"ingestedAt":"2026-10-29T20:09:03.054Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/34xxx/CVE-2025-34297.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-34297","state":"PUBLISHED","datePublished":"2025-12-01T18:18:15.156Z","dateUpdated":"2026-07-14T22:25:55.819Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2025-04-15T19:15:22.582Z"},"containers":{"cna":{"title":"KissFFT Integer Overflow Heap Buffer Overflow via kiss_fft_alloc","descriptions":[{"lang":"en","value":"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":[{"vendor":"mborgerding/kissfft","product":"mborgerding/kissfft","packageURL":"pkg:github/mborgerding/kissfft","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1b08316582049c3716154caefc0deab8758506e3","versionType":"git"}],"platforms":["32 bit"],"repo":"https://github.com/mborgerding/kissfft"}],"references":[{"url":"https://github.com/mborgerding/kissfft/commit/1b08316582049c3716154caefc0deab8758506e3","tags":["patch"]},{"url":"https://github.com/mborgerding/kissfft/issues/120","tags":["issue-tracking"]},{"url":"https://www.vulncheck.com/advisories/kissfft-integer-overflow-heap-buffer-overflow","tags":["third-party-advisory"]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"LOCAL","baseScore":8.6,"baseSeverity":"HIGH","exploitMaturity":"NOT_DEFINED","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"HIGH","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-190","description":"CWE-190 Integer Overflow or Wraparound","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-07-14T22:25:55.819Z"},"credits":[{"lang":"en","type":"finder","value":"Sajeeb Lohani of Bugcrowd Security Innovation Lab"}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 0.5.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-12-01T18:36:15.952712Z","id":"CVE-2025-34297","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-12-01T18:37:26.779Z"}}]}}}