{"id":"RUSTSEC-2026-0426","summary":"LLVM introduces timing-vulnerable optimizations into ML-KEM and ML-DSA operations intended to be constant-time","details":"## Summary\n\nOn targets that do not have a conditional move/select operations, LLVM compiles the internal `conditional_sub_u32()` function, into one that will contain a conditional jump on secret-dependent data, which could leak information about encapsulation and signing keys.\n\n`conditional_sub_u32()` is used throughout the field arithmetic of both ML-KEM and ML-DSA.\n\n## Impact\n\nThe variable-time jumps have been observed for ML-KEM and ML-DSA on:\n- `i586-unknown-linux-gnu`\n- `s390x-unknown-linux-gnu`\n\nAdditionally, ML-DSA sees the vulnerable LLVM optimization on `x86_64-unknown-linux-gnu`, for `hazardous::dsa::mldsa44` and `hazardous::dsa::mldsa87`.\n\nThe leakage this LLVM optimization introduces could enable recovery of cryptographic secrets. The practicality of exploiting the leakage depends on the compiler, target CPU used and how \"close\" to the process using the vulnerable functions the attacker is.\n\n## Resolution\n\nUpgrade to `v0.17.16` or `v0.18.1`. `conditional_sub_u32()` has been re-written to take conditional-move/jump ops availability into account.","aliases":["GHSA-r7wm-4vf2-h44w"],"modified":"2026-10-30T11:15:02.183819415Z","published":"2026-10-30T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/orion"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2026-0426.html"},{"type":"WEB","url":"https://github.com/orion-rs/orion/pull/689"}],"affected":[{"package":{"name":"orion","ecosystem":"crates.io","purl":"pkg:cargo/orion"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.17.16"},{"introduced":"0.18.0-0"},{"fixed":"0.18.1"}]}],"ecosystem_specific":{"affects":{"arch":["s390x","x86","x86_64"],"os":[],"functions":[]},"affected_functions":null},"database_specific":{"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0426.json","categories":["crypto-failure"],"cvss":null,"informational":null}}],"schema_version":"1.9.2"}