The curve25519-dalek crate before 4.1.3 for Rust has a constant-time operation on elliptic curve scalars that is removed by LLVM.
The developer builds a security-critical protection mechanism into the software, but the compiler optimizes the program such that the mechanism is removed or modified.
Link | Tags |
---|---|
https://rustsec.org/advisories/RUSTSEC-2024-0344.html | third party advisory |
https://github.com/dalek-cryptography/curve25519-dalek/pull/659 | patch issue tracking |
https://crates.io/crates/curve25519-dalek | product |