PT-2025-47817 · Microsoft+2 · Windows+2

Published

2025-11-21

·

Updated

2025-11-25

·

CVE-2025-65947

CVSS v4.0

8.7

High

VectorAV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions thread-amount versions prior to 0.2.2
Description The thread-amount tool, used to determine the number of threads in a process, contains resource leaks when obtaining thread counts on Windows and Apple platforms. On Windows, the thread amount function utilizes CreateToolhelp32Snapshot but does not close the returned HANDLE using CloseHandle. Repeated calls to this function increase the process handle count indefinitely, potentially causing system instability or process termination when the handle limit is reached. On Apple platforms, the thread amount function calls task threads (via Mach kernel APIs) which allocates memory for the thread list, but fails to deallocate this memory using vm deallocate. Repeated calls result in a memory leak, potentially leading to process termination by the OOM (Out of Memory) killer.
Recommendations Update to thread-amount version 0.2.2 or later.

Exploit

Fix

Resource Exhaustion

Missing Release of Resource after Effective Lifetime

Weakness Enumeration

Related Identifiers

CVE-2025-65947
GHSA-JF9P-2FV9-2JP2
RUSTSEC-2025-0125

Affected Products

Apple
Windows
Thread-Amount