{"id":"UBUNTU-CVE-2025-46153","details":"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.","modified":"2026-05-20T16:23:30.400747800Z","published":"2025-09-25T15:16:00Z","upstream":["CVE-2025-46153"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-46153"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-46153"},{"type":"REPORT","url":"https://gist.github.com/shaoyuyoung/4bcefba4004f8271e64b5185c95a248a"},{"type":"REPORT","url":"https://gist.github.com/shaoyuyoung/e636f2e7a306105b7e96809e2b85c28a"},{"type":"REPORT","url":"https://github.com/pytorch/pytorch/compare/v2.6.0...v2.7.0"},{"type":"REPORT","url":"https://github.com/pytorch/pytorch/issues/142853"},{"type":"REPORT","url":"https://github.com/pytorch/pytorch/pull/143460"}],"affected":[{"package":{"name":"pytorch","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/pytorch?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.1-7","1.8.1-4"],"ecosystem_specific":{"binaries":[{"binary_name":"libtorch-test","binary_version":"1.8.1-4"},{"binary_name":"libtorch1.8","binary_version":"1.8.1-4"},{"binary_version":"1.8.1-4","binary_name":"python3-torch"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-46153.json"}},{"package":{"name":"pytorch","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/pytorch?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.6.0+dfsg-5build1","2.6.0+dfsg-7"],"ecosystem_specific":{"binaries":[{"binary_name":"libtorch-test","binary_version":"2.6.0+dfsg-7"},{"binary_version":"2.6.0+dfsg-7","binary_name":"libtorch2.6"},{"binary_version":"2.6.0+dfsg-7","binary_name":"python3-torch"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-46153.json"}},{"package":{"name":"pytorch","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/pytorch?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.6.0+dfsg-7","2.6.0+dfsg-9","2.9.1+dfsg-1~exp1ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_name":"libtorch-test","binary_version":"2.9.1+dfsg-1~exp1ubuntu2"},{"binary_name":"libtorch2.9","binary_version":"2.9.1+dfsg-1~exp1ubuntu2"},{"binary_version":"2.9.1+dfsg-1~exp1ubuntu2","binary_name":"python3-torch"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-46153.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"},{"type":"Ubuntu","score":"medium"}]}