PyTorch susceptible to local Denial of Service
Research is free — Hunters explains how the bug works, the root-cause code pattern, how the fix addresses it, and how to test whether a target is affected, in chat. Investigate & write exploit is a paid run — the engine reads the advisory and fix commits, then builds and validates a working proof-of-concept exploit with reproduction steps.
Affected versions
0 → fixed in 2.7.1-rc1
Details
A vulnerability, which was classified as problematic, has been found in PyTorch 2.6.0+cu124. Affected by this issue is the function torch.mkldnn_max_pool2d. The manipulation leads to denial of service. An attack has to be approached locally. The exploit has been disclosed to the public and may be used.
The fix
No fix commit could be resolved for this advisory (it may reference an issue tracker or a non-GitHub patch). See the references below.
References
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2025-2953
- WEBhttps://github.com/pytorch/pytorch/issues/149274
- WEBhttps://github.com/pytorch/pytorch/issues/149274#issue-2923122269
- WEBhttps://github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2025-191.yaml
- PACKAGEhttps://github.com/pytorch/pytorch
- WEBhttps://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models
- WEBhttps://vuldb.com/?ctiid.302006
- WEBhttps://vuldb.com/?id.302006
- WEBhttps://vuldb.com/?submit.521279