Skip to content
OpenAdvisories
High · 7.8 CVE-2024-31583 BIT-pytorch-2024-31583EUVD-2024-1265GHSA-pg7h-5qx3-wjr3PYSEC-2024-251

Pytorch use-after-free vulnerability

Published Apr 17, 2024 · Updated Aug 2, 2024 · Assigned by mitre

Description

Pytorch before version v2.2.0 was discovered to contain a use-after-free vulnerability in torch/csrc/jit/mobile/interpreter.cpp.

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.4.1-1 —
Debian 13 pytorch 2.4.1-1 —
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 —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) pytorch 2.0.0-4 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI torch < 2.2.0 2.2.0 GHSA-pg7h-5qx3-wjr3

Advisories 1

References