Description
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 real existence of this vulnerability is still doubted at the moment. The security policy of the project warns to use unknown models which might establish malicious effects.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | PyTorch | 2.6.0+cu124 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | pytorch | No fix yet | — |
| Debian 13 | pytorch | No fix yet | — |
| Debian 12 | pytorch | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | pytorch | No fix yet | — |
| Ubuntu 25.10 | pytorch | No fix yet | — |
| Ubuntu 22.04 LTS | pytorch | No fix yet | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | pytorch | 2.2.2-7 | — |
| Azure Linux 2 (CBL-Mariner) | pytorch | 2.0.0-9 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | torch | < 2.7.1-rc1 | 2.7.1-rc1 | GHSA-3749-ghw9-m3mg |
| PyPI | torch | <= 2.6.0+cu124 | — | PYSEC-2025-191 |
Advisories 1
- WID-SEC-2025-0654 PyTorch: Schwachstelle ermöglicht Denial of Service BSI CERT-Bund (WID) · Mar 30, 2025
References
- VDB-302006 | PyTorch torch.mkldnn_max_pool2d denial of service vdb-entry technical-description
- VDB-302006 | CTI Indicators (IOB, IOC, IOA) signature permissions-required
- Submit #521279 | pytorch PyTorch version: 2.6.0+cu124 Floating point exception third-party-advisory
- https://github.com/pytorch/pytorch/issues/149274 issue-tracking
- https://github.com/pytorch/pytorch/issues/149274#issue-2923122269 exploit issue-tracking
- https://github.com/pytorch/pytorch/blob/main/SECURITY.md#untrusted-models related