Incorrect results via unchecked CPU shift counts
Published Sep 25, 2025 · Updated Sep 25, 2025
Incorrect calculation in PyTorch 2.6.0 allows remote attackers to produce silent wrong results through torch.bitwise_right_shift. CPU Inductor generated a direct C++ right-shift expression without checking whether the shift count reached the operand width, causing a count of 64 on an int64 tensor to restart the shift and return 1000 instead of zero. Exploitation requires an application to compile an attacker-influenced tensor operation with torch.compile for CPU execution; the resulting model computation silently uses an incorrect value.
Summary
What happened
Incorrect calculation in PyTorch 2.6.0 allows remote attackers to produce silent wrong results through torch.bitwise_right_shift. CPU Inductor generated a direct C++ right-shift expression without checking whether the shift count reached the operand width, causing a count of 64 on an int64 tensor to restart the shift and return 1000 instead of zero. Exploitation requires an application to compile an attacker-influenced tensor operation with torch.compile for CPU execution; the resulting model computation silently uses an incorrect value.
The record
- CVE
- CVE-2025-46152
- Published
- Sep 25, 2025
- Updated
- Sep 25, 2025
- Vendor
- Unknown vendor
- Product
- Unknown product
- Classifications
- CWE-787
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Sep 25, 2025CVE publishedPublication date reported by the CVE source.
- Sep 25, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
What conditions does exploitation require?
What is affected?
Affected products and versions are unavailable in this record.
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- PyTorch issue 143555 reproducerproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo