# RUSTSEC-2026-0385

- Priority: **Insufficient evidence**
- Reason: No CVSS vector published; no exploitation reported by the 5 checked sources
- Next step: Check the vendor advisory
- Status: published
- Published: 2026-10-23 · Modified: 2026-10-23
- Record: https://cvemate.com/vulnerability/RUSTSEC-2026-0385 · JSON: https://cvemate.com/vulnerability/RUSTSEC-2026-0385/json

## Description

```text
Non-constant-time mask generation and `u128` comparisons

## Summary

The `ctutils::Choice` type has mask generation functions for each unsigned
integer size (`u8`, `u16`, `u32`, `u64`, `u128`). These are `const fn` and
therefore can't reuse the `asm!`-backed mask generation in the `cmov` crate
that's otherwise used to ensure constant-time.

In releases prior to v0.4.4, the generated code from these functions could
include a branch on commonly used platforms. This has been corrected in this
release and now verified on several platforms using BINSEC.

Additionally, `u128` comparison operations provided via `ctutils::Choice` and
intended to work in constant-time were generating branches on 32-bit targets.
This has been resolved via a special case implementation of these functions
for such targets.

## Impact

Branch instructions on secret values can potentially leak such values via
covert channels. This can enable attackers to potentially recover such secrets.

## Resolution

This has been resolved by calling `Choice::to_u8()` when generating the mask,
which in turn uses `black_box` as an optimization barrier. Verification that
this resulted in the desired change in the generated assembly across a variety
of target CPU architectures was performed by BINSEC, which now runs
automatically in CI using `cargo checkct`.
```

## Signals

- CVSS: none published
- EPSS: not scored
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- Crates.Io ctutils (Crates.Io): ≥ 0.0.0-0, \< 0.4.4

## References

- <https://crates.io/crates/ctutils>
- <https://rustsec.org/advisories/RUSTSEC-2026-0385.html>
- <https://github.com/RustCrypto/utils/pull/1569>

---

Data as of 2026-12-05T10:13:13.208Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
