PYSEC-2025-210: Low severity PyTorch PyTorch vulnerability
An issue was discovered in PyTorch v2.5 and v2.7.1. Omission of profiler.stop() can cause torch.profiler.profile (PythonTracer) to crash or hang during finalization, leading to a Denial of Service (DoS).
Affected Software
Event History
Frequently Asked Questions
What access does an attacker need to trigger this issue?
The reported CVSS vector requires local access and low privileges. Exploitation does not require user interaction, but it depends on the affected profiler finalization path being reached without profiler.stop().
What is the practical impact of successful exploitation?
The impact is denial of service: torch.profiler.profile using PythonTracer can crash or hang during finalization. The supplied scoring indicates no reported confidentiality or integrity impact.
How can teams reduce risk if they cannot update immediately?
Ensure code using torch.profiler.profile calls profiler.stop() before finalization. Restrict local access to systems and workloads that run affected PyTorch profiling code where feasible.