Skip to content
OpenAdvisories
Medium · 5.3 CVE-2025-46152 BIT-pytorch-2025-46152EUVD-2025-31109GHSA-x8x6-v465-7v88PYSEC-2025-201

In PyTorch before 2.7.0, bitwise_right_shift produces incorrect output for certain out-of-bounds values of the "other" argument.

Published Sep 25, 2025 · Updated Sep 25, 2025 · Assigned by mitre

Description

In PyTorch before 2.7.0, bitwise_right_shift produces incorrect output for certain out-of-bounds values of the "other" argument.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 pytorch 2.12.0+dfsg2-1 —
Debian 13 pytorch No fix yet —
Debian 12 pytorch No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 pytorch No fix yet —
Ubuntu 26.04 LTS pytorch No fix yet —
Ubuntu 25.10 pytorch No fix yet —
Ubuntu 22.04 LTS pytorch No fix yet —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 pytorch 2.2.2-9 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI torch >= 2.6.0, < 2.7.0 2.7.0 PYSEC-2025-201

Advisories 1

References