CVE-2026-50185RustCrypto Cmov/CmovEq on aarch64 can produce wrong results if high-bits of registers…
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.
What to do
Fixed builds are available from Debian, crates.io: see the table below for the fixed version per release.
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | rust-cmov | Fix pending | UBUNTU-CVE-2026-50185 | |
| Debian 14 | rust-cmov | Fixed | 0.5.4-1 | DEBIAN-CVE-2026-50185 |
| Red Hat Enterprise Linux 10 | cargo | Under investigation | ||
| Red Hat Enterprise Linux 10 | clippy | Under investigation | ||
| Red Hat Enterprise Linux 10 | rust | Under investigation | ||
| Red Hat Enterprise Linux 10 | rust-analyzer | Under investigation | ||
| Red Hat Enterprise Linux 10 | rust-debugger-common | Under investigation | ||
| Red Hat Enterprise Linux 10 | rust-doc | Under investigation | ||
| Red Hat Enterprise Linux 10 | rust-gdb | Under investigation | ||
| Red Hat Enterprise Linux 10 | rust-lldb | Under investigation | ||
| Red Hat Enterprise Linux 10 | rust-sequoia-sq | Under investigation | ||
| Red Hat Enterprise Linux 10 | rust-src | Under investigation | ||
| Red Hat Enterprise Linux 10 | rust-std-static | Under investigation | ||
| Red Hat Enterprise Linux 10 | rust-std-static-aarch64-unknown-none-softfloat | Under investigation | ||
| Red Hat Enterprise Linux 10 | rust-std-static-wasm32-unknown-unknown | Under investigation | ||
| Red Hat Enterprise Linux 10 | rust-std-static-wasm32-wasip1 | Under investigation | ||
| Red Hat Enterprise Linux 10 | rust-std-static-x86_64-unknown-none | Under investigation | ||
| Red Hat Enterprise Linux 10 | rust-toolset | Under investigation | ||
| Red Hat Enterprise Linux 10 | rust-toolset-srpm-macros | Under investigation | ||
| Red Hat Enterprise Linux 10 | rustfmt | Under investigation | ||
| Red Hat Enterprise Linux 10 | sequoia-sq | Under investigation | ||
| Red Hat Enterprise Linux 9 | cargo | Under investigation | ||
| Red Hat Enterprise Linux 9 | clippy | Under investigation | ||
| Red Hat Enterprise Linux 9 | rust | Under investigation | ||
| Red Hat Enterprise Linux 9 | rust-analysis | Under investigation | ||
| Red Hat Enterprise Linux 9 | rust-analyzer | Under investigation | ||
| Red Hat Enterprise Linux 9 | rust-debugger-common | Under investigation | ||
| Red Hat Enterprise Linux 9 | rust-doc | Under investigation | ||
| Red Hat Enterprise Linux 9 | rust-gdb | Under investigation | ||
| Red Hat Enterprise Linux 9 | rust-lldb | Under investigation | ||
| Red Hat Enterprise Linux 9 | rust-src | Under investigation | ||
| Red Hat Enterprise Linux 9 | rust-std-static | Under investigation | ||
| Red Hat Enterprise Linux 9 | rust-std-static-wasm32-unknown-unknown | Under investigation | ||
| Red Hat Enterprise Linux 9 | rust-std-static-wasm32-wasi | Under investigation | ||
| Red Hat Enterprise Linux 9 | rust-std-static-wasm32-wasip1 | Under investigation | ||
| Red Hat Enterprise Linux 9 | rust-toolset | Under investigation | ||
| Red Hat Enterprise Linux 9 | rustfmt | Under investigation | ||
| crates.io library | cmov | Fixed | 0.5.4 | GHSA-3rjw-m598-pq24 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- RustCrypto utils: affected: >= 0.1.1, < 0.5.4
References
- https://github.com/RustCrypto/utils/security/advisories/GHSA-3rjw-m598-pq24
- https://github.com/RustCrypto/utils/commit/dba6c355c9f241e3726d5ec2a68f9f3b519f6063
- https://github.com/RustCrypto/utils/releases/tag/cmov-v0.5.4
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.