What’s Vulnerable › Vulnerabilities

CVE-2025-46153

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.

Affected products

How to fix

Upgrade to a fixed version: PyTorch 2.7.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-46153 or the next vulnerability affects your stack