Vulnerabilities · 2025 · Linuxfoundation
CVE-2025-2998
Linuxfoundation Pytorch vulnerability
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
Pytorch. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Linuxfoundation Pytorch runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/pytorch/pytorch/issues/149622 · Vendor Advisory
- github.com/pytorch/pytorch/issues/149622#issue-2935495265 · Vendor Advisory
- vuldb.com/?id.302047 · Third Party Advisory
- vuldb.com/?submit.524151 · Third Party Advisory
- vuldb.com/?ctiid.302047
- nvd.nist.gov/vuln/detail/CVE-2025-2998
- github.com/pytorch/pytorch/commit/494518046816d29099b7d056a74ffa5c244fdcdd
- github.com/pypa/advisory-database/tree/main/vulns/torch/PYSEC-2025-192.yaml
- nvd.nist.gov/vuln/detail/CVE-2025-2998
- cve.org/CVERecord?id=CVE-2025-2998
More vulnerabilities in Linuxfoundation products
CVE-2026-24747CVE-2026-24117CVE-2026-23955CVE-2026-23831CVE-2025-68141CVE-2025-68140CVE-2025-68139CVE-2025-68138All 418
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.