RadarFound by Crypto Implementation Vulnerabilities

ctutils non-constant-time mask generation flaw

Oct 28 find · published Oct 24
THthecratedigest.com · 2 min readRead original
AdvisorySide-channel attackNon-constant-time mask generation

RUSTSEC-2026-0385 covers non-constant-time mask generation in ctutils before version 0.4.4, where `const fn` constraints prevent use of constant-time assembly-backed masking from the `cmov` crate. The `Choice` type's mask generation functions for u8, u16, u32, u64, and u128 cannot use assembly-backed constant-time operations and instead emit branch instructions on secret values, potentially leaking secrets through covert channels. For u128 comparisons on 32-bit targets, the operations meant to be constant-time emit branches; version 0.4.4 adds a special-case implementation for 32-bit targets. The fix makes mask generation call `Choice::to_u8()` using `black_box` as an optimization barrier. Version 0.4.4 resolves the issue. Critically, 99.3% of the crate's 79.5 million downloads in the last 90 days were on affected versions.

99.3%90-day downloads on affected versions
79,553,144Downloads in last 90 days
53Dependent crates

Comments

Sign in to join the conversation.

More from this batch

Electrum patches transaction signature verification flawdecrypt.coLINE Letter Sealing v2 allows TLS man-in-the-middle attackseprint.iacr.orgFireblocks mpc-lib breaks BIP32 hardened derivation isolationbinarycourier.comTTLock hardcoded AES key allows Bluetooth unlockapp.opencve.iolibwebsockets MQTT PUBACK out-of-bounds write RCEzerodayinitiative.com
Crypto Implementation VulnerabilitiesReal vulnerabilities in cryptographic code and protocols — libraries, wallets, TLS, ZK circuits — with the affected versions and fixes.