Skip to content
Heist/ feed
Back to feed
Low

rust-cmov — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-50185

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.

Products
rust-cmov
Affected versions
0.5.3-1, 0.5.4-1
Fixed versions
Not specified
CVEs
CVE-2026-50185
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 02:26 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-50185

core-osv · Original source

Published 17 Jul 2026, 19:17 UTC

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.

osv:UBUNTU-CVE-2026-50185

rust-cmov

Fixed versions: Not specified

Complete source record
{
  "id": "195945a4ac895bd668a800d286b1642a075c58de68bc978ad66e3f1d8423ae6a",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-50185",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-50185",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2026-50185",
    "products": [
      {
        "name": {
          "value": "rust-cmov",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.5.3-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.5.4-1",
            "evidence": "/affected/0/versions"
          }
        ]
      }
    ],
    "severity": "low",
    "structured": {
      "id": "UBUNTU-CVE-2026-50185",
      "aliases": [
        "UBUNTU-CVE-2026-50185"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "rust-cmov",
            "purl": "pkg:deb/ubuntu/rust-cmov?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "0.5.3-1",
            "0.5.4-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-50185.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "librust-cmov-dev",
                "binary_version": "0.5.4-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:58:32.891074342Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-50185"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-50185",
        "https://www.cve.org/CVERecord?id=CVE-2026-50185",
        "https://github.com/RustCrypto/utils/security/advisories/GHSA-3rjw-m598-pq24"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-50185",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/1/score"
  },
  "source_id": "core-osv",
  "document_id": 358738,
  "published_at": "2026-07-17T19:17:00+00:00"
}