CVE-2025-34297

Source
https://cve.org/CVERecord?id=CVE-2025-34297
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-34297.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-34297
Downstream
Published
2025-12-01T18:18:15Z
Modified
2026-08-12T15:13:49Z
Severity
  • 8.6 (High) CVSS_V4 - 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 CVSS Calculator
Summary
KissFFT Integer Overflow Heap Buffer Overflow via kiss_fft_alloc
Details

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.

Database specific
{
    "cna_assigner":  "VulnCheck",
    "cwe_ids":  [
        "CWE-190"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/34xxx/CVE-2025-34297.json",
    "unresolved_ranges":  [
        {
            "extracted_events":  [
                {
                    "fixed":  "1b08316582049c3716154caefc0deab8758506e3"
                }
            ],
            "source":  "AFFECTED_FIELD"
        }
    ]
}
References

Affected packages

Git / github.com/mborgerding/kissfft

Affected ranges

Type
GIT
Repo
https://github.com/mborgerding/kissfft
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
Show details
{
    "source":  "REFERENCES"
}

Affected versions

131.*
131.1.0
131.2.0
Other
v130
v131

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-34297.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "225193468594704237750876605570183174109",
                "215000069480654626388866922675195860364",
                "252268610753061227221797501302825321474",
                "257022272158698638699152479811944270216",
                "72162645817729369077901826927543794652"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2025-34297-25c68af9",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/mborgerding/kissfft/commit/1b08316582049c3716154caefc0deab8758506e3",
        "target":  {
            "file":  "kiss_fft.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "112024550850666678402058197826958448011",
            "length":  732
        },
        "id":  "CVE-2025-34297-d6655654",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/mborgerding/kissfft/commit/1b08316582049c3716154caefc0deab8758506e3",
        "target":  {
            "file":  "kiss_fft.c",
            "function":  "kiss_fft_alloc"
        }
    }
]
vanir_signatures_modified
"2026-08-12T15:13:49Z"