crypto-bigint
Affected
- introduced
0.0.0-0, fixed0.7.6(semver)
Fixed versions
0.7.6
Fix
- Fixed version
0.7.6cargo update -p crypto-bigint --precise 0.7.6
Advisory
Also known as: None
Multiple timing variability issues in operations intended to be constant-time
Summary
Several operations intended to be constant-time could execute secret-dependent
branches, depending on the compiler and target CPU. These include subtraction,
zero counting, division, and Montgomery multiplication.
Additionally, UintRef equality could terminate at the first unequal limb,
and BoxedMontyForm::invert branched on whether an inverse exists.
Impact
Applications using affected operations on secret integers may leak information
through timing or microarchitectural side channels. This includes information
about intermediate arithmetic values, matching limbs, and invertibility.
Such leakage could potentially enable recovery of cryptographic secrets.
Practical exploitability depends on the downstream algorithm, compiler, target
CPU, and an attacker's ability to observe the side channel.
Resolution
Upgrade to v0.7.6, which removes the identified branches, updates ctutils to
include its constant-time fixes, and adds BINSEC-based regression checks usingcargo checkct for arithmetic on multiple targets.
Not rated by the source.
0.0.0-0, fixed 0.7.6 (semver)0.7.6
0.7.6cargo update -p crypto-bigint --precise 0.7.6Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: RustSec Advisory Database · CC BY 4.0
This record names its own licence, CC BY 4.0, which differs from the source's (CC0-1.0).