CVEfocus › CVE database › CVE-2026-50185

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

CVSS 2.0 LowEPSS 0.2% (higher than 3% of CVEs)Published 2026-07-17Updated 2026-07-20Assigner: GitHub_M

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.

CWE-758

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

2Fixed
1Fix pending
35Under investigation

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10rust-cmovFix pendingUBUNTU-CVE-2026-50185
Debian 14rust-cmovFixed0.5.4-1DEBIAN-CVE-2026-50185
Red Hat Enterprise Linux 10cargoUnder investigation
Red Hat Enterprise Linux 10clippyUnder investigation
Red Hat Enterprise Linux 10rustUnder investigation
Red Hat Enterprise Linux 10rust-analyzerUnder investigation
Red Hat Enterprise Linux 10rust-debugger-commonUnder investigation
Red Hat Enterprise Linux 10rust-docUnder investigation
Red Hat Enterprise Linux 10rust-gdbUnder investigation
Red Hat Enterprise Linux 10rust-lldbUnder investigation
Red Hat Enterprise Linux 10rust-sequoia-sqUnder investigation
Red Hat Enterprise Linux 10rust-srcUnder investigation
Red Hat Enterprise Linux 10rust-std-staticUnder investigation
Red Hat Enterprise Linux 10rust-std-static-aarch64-unknown-none-softfloatUnder investigation
Red Hat Enterprise Linux 10rust-std-static-wasm32-unknown-unknownUnder investigation
Red Hat Enterprise Linux 10rust-std-static-wasm32-wasip1Under investigation
Red Hat Enterprise Linux 10rust-std-static-x86_64-unknown-noneUnder investigation
Red Hat Enterprise Linux 10rust-toolsetUnder investigation
Red Hat Enterprise Linux 10rust-toolset-srpm-macrosUnder investigation
Red Hat Enterprise Linux 10rustfmtUnder investigation
Red Hat Enterprise Linux 10sequoia-sqUnder investigation
Red Hat Enterprise Linux 9cargoUnder investigation
Red Hat Enterprise Linux 9clippyUnder investigation
Red Hat Enterprise Linux 9rustUnder investigation
Red Hat Enterprise Linux 9rust-analysisUnder investigation
Red Hat Enterprise Linux 9rust-analyzerUnder investigation
Red Hat Enterprise Linux 9rust-debugger-commonUnder investigation
Red Hat Enterprise Linux 9rust-docUnder investigation
Red Hat Enterprise Linux 9rust-gdbUnder investigation
Red Hat Enterprise Linux 9rust-lldbUnder investigation
Red Hat Enterprise Linux 9rust-srcUnder investigation
Red Hat Enterprise Linux 9rust-std-staticUnder investigation
Red Hat Enterprise Linux 9rust-std-static-wasm32-unknown-unknownUnder investigation
Red Hat Enterprise Linux 9rust-std-static-wasm32-wasiUnder investigation
Red Hat Enterprise Linux 9rust-std-static-wasm32-wasip1Under investigation
Red Hat Enterprise Linux 9rust-toolsetUnder investigation
Red Hat Enterprise Linux 9rustfmtUnder investigation
crates.io librarycmovFixed0.5.4GHSA-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.

References

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.