#VU109002 Improper resource shutdown or release in PyTorch - CVE-2025-3730


Vulnerability identifier: #VU109002

Vulnerability risk: Low

CVSSv4.0: 1.1 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U/U:Clear]

CVE-ID: CVE-2025-3730

CWE-ID: CWE-404

Exploitation vector: Local

Exploit availability: No

Vulnerable software:
PyTorch
Universal components / Libraries / Programming Languages & Components

Vendor: pytorch

Description

The vulnerability allows a local user to perform a denial of service (DoS) attack.

The vulnerability exists in the function torch.nn.functional.ctc_loss of the file aten/src/ATen/native/LossCTC.cpp. A local user can trigger resource exhaustion and perform a denial of service (DoS) attack.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

PyTorch: 2.6.0


External links
https://github.com/pytorch/pytorch/issues/150835
https://github.com/pytorch/pytorch/issues/150835
https://github.com/pytorch/pytorch/issues/150835#issue-2979082232
https://github.com/pytorch/pytorch/pull/150981
https://github.com/timocafe/tewart-pytorch/commit/46fc5d8e360127361211cb237d5f9eef0223e567
https://vuldb.com/?ctiid.305076
https://vuldb.com/?id.305076
https://vuldb.com/?submit.553645


Q & A

Can this vulnerability be exploited remotely?

No. This vulnerability can be exploited locally. The attacker should have authentication credentials and successfully authenticate on the system.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability