{
  "id": "CVE-2025-34297",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-34297",
  "published_at": "2025-12-01T18:18:15.156Z",
  "title": "KissFFT Integer Overflow Heap Buffer Overflow via kiss_fft_alloc",
  "vendor": "mborgerding/kissfft",
  "product": "mborgerding/kissfft",
  "cvss": {
    "score": 8.6,
    "source": "cna",
    "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"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-190",
  "cvss_by_source": {
    "cna": 8.6
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "mborgerding/kissfft",
        "product": "mborgerding/kissfft",
        "ranges": [
          "\u003c 1b08316582049c3716154caefc0deab8758506e3"
        ],
        "fixed_in": [
          "1b08316582049c3716154caefc0deab8758506e3"
        ]
      }
    ],
    "upgrade": [
      "Upgrade mborgerding/kissfft to 1b08316582049c3716154caefc0deab8758506e3 or later."
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://github.com/mborgerding/kissfft/commit/1b08316582049c3716154caefc0deab8758506e3"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
