5.3Medium

CVE-2025-46153

linuxfoundation pytorch Published: (1 year ago)

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.

Weakness (CWE): CWE-1176

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
linuxfoundation pytorch 2.6.0 – < 2.7.0

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:linuxfoundation:pytorch:*:-:*:*:*:python:*:* ≥ 2.6.0 < 2.7.0