{"id":"UBUNTU-CVE-2025-2998","details":"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.","modified":"2026-01-20T18:53:42.177158Z","published":"2025-03-31T14:15:00Z","upstream":["CVE-2025-2998"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-2998"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-2998"},{"type":"REPORT","url":"https://github.com/pytorch/pytorch/issues/149622"},{"type":"REPORT","url":"https://github.com/pytorch/pytorch/issues/149622#issue-2935495265"},{"type":"REPORT","url":"https://vuldb.com/?ctiid.302047"},{"type":"REPORT","url":"https://vuldb.com/?id.302047"},{"type":"REPORT","url":"https://vuldb.com/?submit.524151"}],"affected":[{"package":{"name":"pytorch","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/pytorch@1.8.1-4?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.1-7","1.8.1-4"],"ecosystem_specific":{"binaries":[{"binary_version":"1.8.1-4","binary_name":"libtorch-dev"},{"binary_version":"1.8.1-4","binary_name":"libtorch-test"},{"binary_version":"1.8.1-4","binary_name":"libtorch1.8"},{"binary_version":"1.8.1-4","binary_name":"python3-torch"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-2998.json"}},{"package":{"name":"pytorch","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/pytorch@2.6.0+dfsg-7?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.6.0+dfsg-5build1","2.6.0+dfsg-7"],"ecosystem_specific":{"binaries":[{"binary_version":"2.6.0+dfsg-7","binary_name":"libtorch-dev"},{"binary_version":"2.6.0+dfsg-7","binary_name":"libtorch-test"},{"binary_version":"2.6.0+dfsg-7","binary_name":"libtorch2.6"},{"binary_version":"2.6.0+dfsg-7","binary_name":"python3-torch"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-2998.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N"},{"type":"Ubuntu","score":"medium"}]}