PT-2026-55463 · Pypi · Rustcrypto Cmov
CVE-2026-50185
·
Published
2026-07-02
·
Updated
2026-08-18
CVSS v4.0
5.5
Medium
| Vector | AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P |
Name of the Vulnerable Software and Affected Versions
RustCrypto CMOV versions 0.1.1 through 0.5.3
Description
The aarch64 implementations of
Cmov and CmovEq in cmov/src/backends/aarch64.rs incorrectly assume that high bits are zero-extended when loading values smaller than a register. Because these bits are actually unspecified, setting high bits (such as [8..] in a Cmov selector or [16..] of self or other in u16 and i16 CmovEq implementations) can lead to incorrect output when calling left.cmovz(&right, condition). This occurs because the inline assembly compares 32 bits of the value against 0 instead of the intended narrower width, causing the csel instruction to select the wrong value.Recommendations
Update RustCrypto CMOV to version 0.5.4.
Exploit
Fix
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Rustcrypto Cmov