Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. cmov
  4. ›
  5. CVE-2026-50185

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

July 2, 2026

The aarch64 implementations of Cmov and CmovEq seem to assume that the high bits when loading a value of size smaller than a register into a register are zero-extended. However, this is not the case and these bits are unspecified. This can result in a left.cmovz(&right, condition) not moving right into left, even if condition == 0.

References

  • github.com/RustCrypto/utils/security/advisories/GHSA-3rjw-m598-pq24
  • github.com/advisories/GHSA-3rjw-m598-pq24
  • nvd.nist.gov/vuln/detail/CVE-2026-50185

Code Behaviors & Features

Detect and mitigate CVE-2026-50185 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 0.1.1 before 0.5.4

Fixed versions

  • 0.5.4

Solution

Upgrade to version 0.5.4 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-758: Reliance on Undefined, Unspecified, or Implementation-Defined Behavior

Source file

cargo/cmov/CVE-2026-50185.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:20 +0000.