5.3Medium
CVE-2025-2998PyTorch torch.nn.utils.rnn.pad_packed_sequence memory corruption
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.
Weakness (CWE):
CWE-119
Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.
Affected products and versions
| Vendor | Product | Versions | |
|---|---|---|---|
| linuxfoundation | pytorch | 2.6.0 | |
| — | PyTorch | 2.6.0 |
References and patches
- VDB-302047 | PyTorch torch.nn.utils.rnn.pad_packed_sequence memory corruption vdb-entrytechnical-descriptionThird Party AdvisoryVDB Entry
- VDB-302047 | CTI Indicators (IOB, IOC, IOA) signatureVDB Entry
- Submit #524151 | pytorch torch 2.6.0 Segmentation fault third-party-advisoryThird Party AdvisoryVDB Entry
- https://github.com/pytorch/pytorch/issues/149622 issue-trackingIssue TrackingVendor Advisory
- https://github.com/pytorch/pytorch/issues/149622#issue-2935495265 exploitissue-trackingIssue TrackingVendor Advisory
CPE matches (NVD) (1)
cpe:2.3:a:linuxfoundation:pytorch:2.6.0:-:*:*:*:python:*:*