CVE-2025-2999: PyTorch torch.nn.utils.rnn.unpack_sequence memory corruption
A vulnerability was found in PyTorch 2.6.0. It has been rated as critical. Affected by this issue is the function torch.nn.utils.rnn.unpacksequence. The manipulation leads to memory corruption. Attacking locally is a requirement. The exploit has been disclosed to the public and may be used.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
pip/torchto a version that resolves this vulnerability.Fixed in 2.9.1 - Upgrade
Upgrade
debian/pytorchto a version that resolves this vulnerability.Fixed in 2.12.0+dfsg2-1 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch 494518046816d29099b7d056a74ffa5c244fdcdd
Event History
Frequently Asked Questions
What is the severity of CVE-2025-2999?
CVE-2025-2999 is rated as critical due to its potential for memory corruption.
What component is affected by CVE-2025-2999?
CVE-2025-2999 affects the function torch.nn.utils.rnn.unpack_sequence in PyTorch 2.6.0.
Who can exploit CVE-2025-2999?
Exploitation of CVE-2025-2999 requires a local attack.
What is the impact of CVE-2025-2999?
The exploitation of CVE-2025-2999 can lead to memory corruption.
How do I fix CVE-2025-2999?
To fix CVE-2025-2999, upgrade to the latest version of PyTorch that addresses this vulnerability.