Improper resource shutdown or release in PyTorch - CVE-2025-4287
Published: September 26, 2025
PyTorch
Detailed vulnerability description
The vulnerability allows a local user to perform a denial of service (DoS) attack.
The vulnerability exists due to application does not properly control consumption of internal resources in the function torch.cuda.nccl.reduce() of the file torch/cuda/nccl.py. A local user can trigger resource exhaustion and perform a denial of service (DoS) attack.
How to mitigate CVE-2025-4287
Sources
- https://github.com/Divigroup-RAP/PYTORCH/commit/5827d2061dcb4acd05ac5f8e65d8693a481ba0f5
- https://github.com/pytorch/pytorch/issues/150836
- https://github.com/pytorch/pytorch/issues/150836#issue-2979097872
- https://github.com/pytorch/pytorch/pull/150923
- https://vuldb.com/?ctiid.307394
- https://vuldb.com/?id.307394
- https://vuldb.com/?submit.553644