CVE-2026-50185 RustCrypto Cmov/CmovEq on aarch64 can produce wrong results if high-bits of registers are set
- 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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- https://github.com/RustCrypto/utils/security/advisories/GHSA-3rjw-m598-pq24 exploit vendor-advisory
- github.com product
- https://github.com/RustCrypto/utils/commit/dba6c355c9f241e3726d5ec2a68f9f3b519f6063 patch
- https://github.com/RustCrypto/utils/releases/tag/cmov-v0.5.4 product
- Red Hat CVE page vendor-advisory
- RHSA-2026:42923 patch vendor-advisory
- Red Hat Bugzilla 2501836 issue-tracking
- www.cve.org
- nvd.nist.gov
- github.com
- Debian Security Tracker CVE-2026-50185 vendor-advisory
- Ubuntu CVE tracker vendor-advisory