Resource Leaks in Thread-Amount Tool by jzeuzs for Windows and Apple Platforms
CVE-2025-65947
8.7HIGH
What is CVE-2025-65947?
The thread-amount tool developed by jzeuzs experiences significant resource leaks on both Windows and Apple platforms. On Windows, the function responsible for querying the number of threads fails to close the HANDLE returned by CreateToolhelp32Snapshot, leading to an increase in handle counts, which could compromise system stability as the handle limit approaches. Conversely, on Apple platforms, the function's use of Mach kernel APIs allocates memory for thread counts but neglects to deallocate this memory, resulting in a gradual memory leak that may trigger the Out of Memory (OOM) killer. This vulnerability has been resolved in version 0.2.2.
Affected Version(s)
thread-amount < 0.2.2
