{"schemaVersion":4,"id":"RUSTSEC-2026-0385","aliases":[],"status":"published","duplicateOf":null,"title":null,"description":"Non-constant-time mask generation and `u128` comparisons\n\n## Summary\n\nThe `ctutils::Choice` type has mask generation functions for each unsigned\ninteger size (`u8`, `u16`, `u32`, `u64`, `u128`). These are `const fn` and\ntherefore can't reuse the `asm!`-backed mask generation in the `cmov` crate\nthat's otherwise used to ensure constant-time.\n\nIn releases prior to v0.4.4, the generated code from these functions could\ninclude a branch on commonly used platforms. This has been corrected in this\nrelease and now verified on several platforms using BINSEC.\n\nAdditionally, `u128` comparison operations provided via `ctutils::Choice` and\nintended to work in constant-time were generating branches on 32-bit targets.\nThis has been resolved via a special case implementation of these functions\nfor such targets.\n\n## Impact\n\nBranch instructions on secret values can potentially leak such values via\ncovert channels. This can enable attackers to potentially recover such secrets.\n\n## Resolution\n\nThis has been resolved by calling `Choice::to_u8()` when generating the mask,\nwhich in turn uses `black_box` as an optimization barrier. Verification that\nthis resulted in the desired change in the generated assembly across a variety\nof target CPU architectures was performed by BINSEC, which now runs\nautomatically in CI using `cargo checkct`.","dates":{"published":"2026-10-23T12:00:00.000Z","modified":"2026-10-23T08:30:02.389Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":null,"severity":"unknown","version":null,"versionLabel":null,"source":null,"vector":null,"computed":false,"selection":"none"},"metrics":[]},"epss":{"probability":null,"percentile":null,"severity":"unknown","asOf":null,"change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[],"last30":[]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[],"affected":[{"vendor":"Crates.Io","product":"ctutils","name":"ctutils","label":"ctutils","ecosystem":"Crates.Io","cpePart":null,"purl":"pkg:cargo/ctutils","purlType":"cargo","versions":[{"text":"≥ 0.0.0-0, < 0.4.4","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"0.0.0-0","startInclusive":true,"end":"0.4.4","endInclusive":false}}],"versionsText":"≥ 0.0.0-0, < 0.4.4","eol":null,"hubHref":null}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://crates.io/crates/ctutils","label":"crates.io/crates/ctutils","hostname":"crates.io","tags":["PACKAGE"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0385.html","label":"rustsec.org/advisories/RUSTSEC-2026-0385.html","hostname":"rustsec.org","tags":["Advisory"]},{"url":"https://github.com/RustCrypto/utils/pull/1569","label":"github.com/RustCrypto/utils/pull/1569","hostname":"github.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CVE-2026-23519"]},"timeline":[{"kind":"published","date":"2026-10-23T12:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-23T08:30:02.389Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"insufficient-evidence","tag":null,"reason":"No CVSS vector published; no exploitation reported by the 5 checked sources","nextStep":"Check the vendor advisory","rank":[0,0,0,0,0,0],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[],"epss":{"value":null,"date":null,"stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T10:02:10.250Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T10:02:10.837Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T10:02:11.033Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T10:01:03.214Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T10:02:08.667Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T10:02:07.694Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T10:13:13.208Z","stale":false,"partial":false}}