PyTorch before 3.7.0 has a bernoulli_p decompose function in decompositions.py even though it lacks full consistency with the eager CPU implementation, negatively affecting nn.Dropout1d, nn.Dropout2d, and nn.Dropout3d for fallback_random=True
Affects pytorchSource GCVE Database
Not known to be exploited · CVSS 5.3 Medium.
Data as of 24 Nov 2026, 21:15 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 37% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 25 Sep 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10pytorchpkg:deb/ubuntu/pytorch?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSpytorchpkg:deb/ubuntu/pytorch?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 25.10pytorchpkg:deb/ubuntu/pytorch?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSpytorchpkg:deb/ubuntu/pytorch?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
PyTorch before 3.7.0 has a bernoulli_p decompose function in decompositions.py even though it lacks full consistency with the eager CPU implementation, negatively affecting nn.Dropout1d, nn.Dropout2d, and nn.Dropout3d for fallback_random=True.
References
- ubuntu.com/security/CVE-2025-46153 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-46153 (opens in a new tab)
- gist.github.com/shaoyuyoung/4bcefba4004f8271e64b5185c95a248a (opens in a new tab)
- gist.github.com/shaoyuyoung/e636f2e7a306105b7e96809e2b85c28a (opens in a new tab)
- github.com/pytorch/pytorch/compare/v2.6.0...v2.7.0 (opens in a new tab)
- github.com/pytorch/pytorch/issues/142853 (opens in a new tab)
- github.com/pytorch/pytorch/pull/143460 (opens in a new tab)