{"id":"CVE-2026-50185","state":"PUBLISHED","title":"RustCrypto Cmov/CmovEq on aarch64 can produce wrong results if high-bits of registers are set","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.","publishedAt":"2026-07-17T18:35:02.078Z","updatedAt":"2026-07-20T19:24:54.587Z","severity":{"score":2,"label":"Low","version":"4.0","vector":"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","source":"GitHub_M"},"assigner":"GitHub_M","products":["RustCrypto utils"],"affected":[{"vendor":"RustCrypto","product":"utils","versions":[{"version":">= 0.1.1, < 0.5.4","status":"affected"}]}],"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"],"weaknesses":["CWE-758"],"ingestedAt":"2026-10-29T20:12:16.098Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/50xxx/CVE-2026-50185.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-50185","state":"PUBLISHED","datePublished":"2026-07-17T18:35:02.078Z","dateUpdated":"2026-07-20T19:24:54.587Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-06-03T22:05:13.644Z"},"containers":{"cna":{"title":"RustCrypto Cmov/CmovEq on aarch64 can produce wrong results if high-bits of registers are set","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"RustCrypto","product":"utils","versions":[{"version":">= 0.1.1, < 0.5.4","status":"affected"}]}],"references":[{"url":"https://github.com/RustCrypto/utils/security/advisories/GHSA-3rjw-m598-pq24","name":"https://github.com/RustCrypto/utils/security/advisories/GHSA-3rjw-m598-pq24","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/RustCrypto/utils/commit/dba6c355c9f241e3726d5ec2a68f9f3b519f6063","name":"https://github.com/RustCrypto/utils/commit/dba6c355c9f241e3726d5ec2a68f9f3b519f6063","tags":["x_refsource_MISC"]},{"url":"https://github.com/RustCrypto/utils/releases/tag/cmov-v0.5.4","name":"https://github.com/RustCrypto/utils/releases/tag/cmov-v0.5.4","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"LOCAL","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"LOW","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"LOW","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":2,"baseSeverity":"LOW","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-758","lang":"en","description":"CWE-758: Reliance on Undefined, Unspecified, or Implementation-Defined Behavior","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-07-17T18:35:02.078Z"},"source":{"advisory":"GHSA-3rjw-m598-pq24","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/RustCrypto/utils/security/advisories/GHSA-3rjw-m598-pq24","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-07-20T19:24:50.398494Z","id":"CVE-2026-50185","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-07-20T19:24:54.587Z"}}]}}}