RUSTSEC-2026-0385: Non-constant-time mask generation and `u128` comparisons
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 20/100
Piste de recherche
The issue describes a security advisory for ctutils and links to RustCrypto/utils pull request 1569, but gives no numtracker files, tests, or requested change. Read the advisory and linked pull request first to determine whether numtracker uses an affected version and where it is declared; done means the project no longer uses a vulnerable version, if the dependency is present.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Non-constant-time mask generation and
u128comparisons
| Details | |
|---|---|
| Package | ctutils |
| Version | 0.4.2 |
| URL | https://github.com/RustCrypto/utils/pull/1569 |
| Date | 2026-10-23 |
| Patched versions | >=0.4.4 |
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.
See advisory page for additional details.
- Langage dominant
- Rust
- Étoiles
- 2
- Forks
- 2
- Merge moyen
- 13 h 13 min
- PR mergées (30 j)
- 5
Préparer son environnement
- Fournit un Dockerfile ou un fichier Docker Compose
- Aucun modèle de pull request
- Aucun guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de DiamondLightSource/numtracker
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 70/100
DiamondLightSource/numtracker#309 ·
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 82/100
DiamondLightSource/numtracker#278 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 45/100
DiamondLightSource/numtracker#329 ·
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 20/100
DiamondLightSource/numtracker#326 ·
-
RUSTSEC-2026-0387: Multiple timing variability issues in operations intended to be constant-timeOuverte
Difficulté 4/5 3-5 jours Accessibilité débutants 1/100
DiamondLightSource/numtracker#324 ·
Toutes les issues de DiamondLightSource/numtracker
Issues similaires
-
bug(core): partial tool arguments drop existing string content during a split surrogate pairOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
0xPlaygrounds/rig#3176 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Publish memtop on crates.ioOuvertepackaging
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
SalomonAvila/memtop#23 ·
Les mainteneurs répondent en général sous 1 jour
-
Anthropic provider: 400 on tools.N.custom.name after tool_search adds web.run (name contains a dot)Ouvertearea:install area:mcp area:state area:tui os:macos
Difficulté 2/5 1-3 heures Accessibilité débutants 73/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Les mainteneurs répondent en général sous 1 jour
-
area:core
Difficulté 2/5 1-3 heures Accessibilité débutants 67/100
Les mainteneurs répondent en général sous 1 jour