Skip to content
OpenAdvisories
Medium · 5.3 CVE-2025-2998 BIT-pytorch-2025-2998EUVD-2025-8748GHSA-f4hp-rmr7-r7v8PYSEC-2025-192

PyTorch torch.nn.utils.rnn.pad_packed_sequence memory corruption

Published Mar 31, 2025 · Updated Mar 31, 2025 · Assigned by VulDB

Description

A vulnerability was found in PyTorch 2.6.0. It has been declared as critical. Affected by this vulnerability is the function torch.nn.utils.rnn.pad_packed_sequence. The manipulation leads to memory corruption. Local access is required to approach this attack. The exploit has been disclosed to the public and may be used.

Affected products

VendorProductAffectedFixed
— PyTorch 2.6.0 —

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.6.0 — GHSA-f4hp-rmr7-r7v8
PyPI torch <= 2.6.0-NA — PYSEC-2025-192

Advisories 1

References