Skip to content

CVE-2026-50185 RustCrypto Cmov/CmovEq on aarch64 can produce wrong results if high-bits of registers are set

LowCVSS 2.0 EPSS 0.16%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
UbuntuDebianRed Hat

Description

RustCrypto CMOV provides conditional move CPU intrinsics which are guaranteed on major platforms to execute in constant-time and not be rewritten as branches by the compiler. From 0.1.1 until 0.5.4, the aarch64 implementations of Cmov and CmovEq in cmov/src/backends/aarch64.rs assume high bits are zero-extended when loading values smaller than a register, so set high bits such as [8..] in a Cmov selector or [16..] of self or other in the u16 and i16 CmovEq implementations can cause left.cmovz(&right, condition) to produce incorrect output. This issue is fixed in version 0.5.4.

Upgrade path

6 packages: 4 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/rust-cmov(Ubuntu 26.10) All versions No fix listed No fix yet
crates.io cmov(crates.io) >= 0.1.1, < 0.5.4 0.5.4 Fixed
debian/rust-cmov(Debian 14) < 0.5.4-1; = 0.5.3-1 0.5.4-1 Fixed
redhat/rust-main(Red Hat hummingbird 1) < 1.97.1-1.1.hum1 1.97.1-1.1.hum1 Fixed
RustCrypto cmov >= 0.1.1, < 0.5.4 0.5.4 Fixed
RustCrypto utils = >= 0.1.1, < 0.5.4 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
crates.io cmov(crates.io) >= 0.1.1, < 0.5.4 0.5.4
RustCrypto utils = >= 0.1.1, < 0.5.4 No fix listed
redhat/rust-main(Red Hat:hummingbird:1) < 1.97.1-1.1.hum1 1.97.1-1.1.hum1
redhat/build-of-trustee/trustee-rhel9(Red Hat:confidential_compute_attestation:1) All versions No fix listed
redhat/openshift-sandboxed-containers/osc-podvm-payload-rhel9(Red Hat:confidential_compute_attestation:1) All versions No fix listed
redhat/rust(Red Hat:enterprise_linux:10) All versions No fix listed
redhat/rust-sequoia-sq(Red Hat:enterprise_linux:10) All versions No fix listed
redhat/rust(Red Hat:enterprise_linux:9) All versions No fix listed
redhat/rhtpa/rhtpa-trustification-service-rhel9(Red Hat:trusted_profile_analyzer:2) All versions No fix listed
redhat/rhtpa/rhtpa-rhel10(Red Hat:trusted_profile_analyzer:3) All versions No fix listed
debian/rust-cmov(Debian:14) < 0.5.4-1 0.5.4-1
debian/rust-cmov(Debian:14) = 0.5.3-1 No fix listed
ubuntu/rust-cmov(Ubuntu:26.10) All versions No fix listed
RustCrypto cmov >= 0.1.1, < 0.5.4 0.5.4

References