Skip to content

CVE-2025-46153 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,...

MediumCVSS 5.3 EPSS 0.42%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebian

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.

Upgrade path

9 packages: 3 fixed, 6 with no fix yet.

PackageAffectedFixed inStatus
cbl-mariner pytorch(CBL-Mariner 2.0) All versions No fix listed No fix yet
debian/pytorch(Debian 12) = 1.13.1+dfsg-4; = 1.13.1+dfsg-5; = 2.0.1+dfsg-1; = 2.0.1+dfsg-1~exp1 +38 more No fix listed No fix yet
debian/pytorch(Debian 13) = 2.6.0+dfsg-7; = 2.6.0+dfsg-8; = 2.6.0+dfsg-9; = 2.9.0+dfsg-1~exp1 +14 more No fix listed No fix yet
ubuntu/pytorch(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/pytorch(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/pytorch(Ubuntu 26.10) All versions No fix listed No fix yet
debian/pytorch(Debian 14) < 2.12.0+dfsg2-1; = 2.6.0+dfsg-7; = 2.6.0+dfsg-8; = 2.6.0+dfsg-9 +6 more 2.12.0+dfsg2-1 Fixed
linuxfoundation pytorch >= 2.6.0, < 2.7.0 2.7.0 Fixed
pypi torch(PyPI) = 2.6.0; >= 2.6.0, < 2.7.0 2.7.0 Fixed

Affected products

ProductAffected versionsFixed in
pypi torch(PyPI) >= 2.6.0, < 2.7.0 2.7.0
pypi torch(PyPI) = 2.6.0 No fix listed
cbl-mariner pytorch(CBL-Mariner:2.0) All versions No fix listed
debian/pytorch(Debian:12) All versions No fix listed
debian/pytorch(Debian:12) = 1.13.1+dfsg-4 No fix listed
debian/pytorch(Debian:12) = 1.13.1+dfsg-5 No fix listed
debian/pytorch(Debian:12) = 2.0.1+dfsg-1 No fix listed
debian/pytorch(Debian:12) = 2.0.1+dfsg-1~exp1 No fix listed
debian/pytorch(Debian:12) = 2.0.1+dfsg-2 No fix listed
debian/pytorch(Debian:12) = 2.0.1+dfsg-4 No fix listed
debian/pytorch(Debian:12) = 2.0.1+dfsg-5 No fix listed
debian/pytorch(Debian:12) = 2.1.2+dfsg-1 No fix listed
debian/pytorch(Debian:12) = 2.1.2+dfsg-2 No fix listed
debian/pytorch(Debian:12) = 2.1.2+dfsg-4 No fix listed
debian/pytorch(Debian:12) = 2.12.0+dfsg2-1 No fix listed
debian/pytorch(Debian:12) = 2.12.0+dfsg2-1~exp1 No fix listed
debian/pytorch(Debian:12) = 2.12.0+dfsg2-1~exp2 No fix listed
debian/pytorch(Debian:12) = 2.12.0+dfsg2-2 No fix listed
debian/pytorch(Debian:12) = 2.12.0+dfsg2-3 No fix listed
debian/pytorch(Debian:12) = 2.12.0+dfsg2-4 No fix listed
debian/pytorch(Debian:12) = 2.12.1+dfsg-1 No fix listed
debian/pytorch(Debian:12) = 2.12.1+dfsg-2 No fix listed
debian/pytorch(Debian:12) = 2.14.1+dfsg-1 No fix listed
debian/pytorch(Debian:12) = 2.14.1+dfsg-1~exp1 No fix listed
debian/pytorch(Debian:12) = 2.4.1-1 No fix listed
Show 52 more
ProductAffected versionsFixed in
debian/pytorch(Debian:12) = 2.4.1-3 No fix listed
debian/pytorch(Debian:12) = 2.4.1-4 No fix listed
debian/pytorch(Debian:12) = 2.5.0+dfsg-1 No fix listed
debian/pytorch(Debian:12) = 2.5.1+dfsg-1 No fix listed
debian/pytorch(Debian:12) = 2.5.1+dfsg-3 No fix listed
debian/pytorch(Debian:12) = 2.5.1+dfsg-4 No fix listed
debian/pytorch(Debian:12) = 2.6.0+dfsg-1 No fix listed
debian/pytorch(Debian:12) = 2.6.0+dfsg-1~exp1 No fix listed
debian/pytorch(Debian:12) = 2.6.0+dfsg-2 No fix listed
debian/pytorch(Debian:12) = 2.6.0+dfsg-3 No fix listed
debian/pytorch(Debian:12) = 2.6.0+dfsg-4 No fix listed
debian/pytorch(Debian:12) = 2.6.0+dfsg-5 No fix listed
debian/pytorch(Debian:12) = 2.6.0+dfsg-7 No fix listed
debian/pytorch(Debian:12) = 2.6.0+dfsg-8 No fix listed
debian/pytorch(Debian:12) = 2.6.0+dfsg-9 No fix listed
debian/pytorch(Debian:12) = 2.6.0~rc9+dfsg-1~exp1 No fix listed
debian/pytorch(Debian:12) = 2.9.0+dfsg-1~exp1 No fix listed
debian/pytorch(Debian:12) = 2.9.0+dfsg-1~exp2 No fix listed
debian/pytorch(Debian:12) = 2.9.1+dfsg-1~exp1 No fix listed
debian/pytorch(Debian:12) = 2.9.1+dfsg-1~exp2 No fix listed
debian/pytorch(Debian:13) All versions No fix listed
debian/pytorch(Debian:13) = 2.12.0+dfsg2-1 No fix listed
debian/pytorch(Debian:13) = 2.12.0+dfsg2-1~exp1 No fix listed
debian/pytorch(Debian:13) = 2.12.0+dfsg2-1~exp2 No fix listed
debian/pytorch(Debian:13) = 2.12.0+dfsg2-2 No fix listed
debian/pytorch(Debian:13) = 2.12.0+dfsg2-3 No fix listed
debian/pytorch(Debian:13) = 2.12.0+dfsg2-4 No fix listed
debian/pytorch(Debian:13) = 2.12.1+dfsg-1 No fix listed
debian/pytorch(Debian:13) = 2.12.1+dfsg-2 No fix listed
debian/pytorch(Debian:13) = 2.14.1+dfsg-1 No fix listed
debian/pytorch(Debian:13) = 2.14.1+dfsg-1~exp1 No fix listed
debian/pytorch(Debian:13) = 2.6.0+dfsg-7 No fix listed
debian/pytorch(Debian:13) = 2.6.0+dfsg-8 No fix listed
debian/pytorch(Debian:13) = 2.6.0+dfsg-9 No fix listed
debian/pytorch(Debian:13) = 2.9.0+dfsg-1~exp1 No fix listed
debian/pytorch(Debian:13) = 2.9.0+dfsg-1~exp2 No fix listed
debian/pytorch(Debian:13) = 2.9.1+dfsg-1~exp1 No fix listed
debian/pytorch(Debian:13) = 2.9.1+dfsg-1~exp2 No fix listed
debian/pytorch(Debian:14) < 2.12.0+dfsg2-1 2.12.0+dfsg2-1
debian/pytorch(Debian:14) = 2.12.0+dfsg2-1~exp1 No fix listed
debian/pytorch(Debian:14) = 2.12.0+dfsg2-1~exp2 No fix listed
debian/pytorch(Debian:14) = 2.6.0+dfsg-7 No fix listed
debian/pytorch(Debian:14) = 2.6.0+dfsg-8 No fix listed
debian/pytorch(Debian:14) = 2.6.0+dfsg-9 No fix listed
debian/pytorch(Debian:14) = 2.9.0+dfsg-1~exp1 No fix listed
debian/pytorch(Debian:14) = 2.9.0+dfsg-1~exp2 No fix listed
debian/pytorch(Debian:14) = 2.9.1+dfsg-1~exp1 No fix listed
debian/pytorch(Debian:14) = 2.9.1+dfsg-1~exp2 No fix listed
ubuntu/pytorch(Ubuntu:22.04) All versions No fix listed
ubuntu/pytorch(Ubuntu:26.04) All versions No fix listed
ubuntu/pytorch(Ubuntu:26.10) All versions No fix listed
linuxfoundation pytorch >= 2.6.0, < 2.7.0 2.7.0

References