Skip to content
OpenAdvisories
High · 7.5 CVE-2025-55558 BIT-pytorch-2025-55558EUVD-2025-31124GHSA-79pg-rrp8-8wqmPYSEC-2025-208

A buffer overflow occurs in pytorch v2.7.0 when a PyTorch model consists of torch.nn.Conv2d, torch.nn.functional.hardshrink, and torch.Tens…

Published Sep 25, 2025 · Updated Sep 26, 2025 · Assigned by mitre

Description

A buffer overflow occurs in pytorch v2.7.0 when a PyTorch model consists of torch.nn.Conv2d, torch.nn.functional.hardshrink, and torch.Tensor.view-torch.mv() and is compiled by Inductor, leading to a Denial of Service (DoS).

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.

ReleasePackageFixed inAdvisory
Debian 14 pytorch 2.12.0+dfsg2-1 —
Debian 13 pytorch No fix yet —
Debian 12 pytorch No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 pytorch No fix yet —
Ubuntu 26.04 LTS pytorch No fix yet —
Ubuntu 25.10 pytorch No fix yet —
Ubuntu 22.04 LTS pytorch No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI torch < 2.7.1 2.7.1 PYSEC-2025-208

Advisories 1

References