# GHSA-r7wm-4vf2-h44w: LLVM introduces timing-vulnerable optimizations into ML-KEM and ML-DSA operations intended to be constant-time

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-10-30T12:00:00.000Z
- Modified: 2026-10-30T11:15:02.183Z
- Also known as: RUSTSEC-2026-0426

## Description

## Summary

On 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.

`conditional_sub_u32()` is used throughout the field arithmetic of both ML-KEM and ML-DSA.

## Impact

The variable-time jumps have been observed for ML-KEM and ML-DSA on:
- `i586-unknown-linux-gnu`
- `s390x-unknown-linux-gnu`

Additionally, ML-DSA sees the vulnerable LLVM optimization on `x86_64-unknown-linux-gnu`, for `hazardous::dsa::mldsa44` and `hazardous::dsa::mldsa87`.

The 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.

## Resolution

Upgrade to `v0.17.16` or `v0.18.1`. `conditional_sub_u32()` has been re-written to take conditional-move/jump ops availability into account.

(As written by RustSec Advisory Database.)

## Affected

- orion (crates.io): from 0.0.0-0 before 0.17.16; from 0.18.0-0 before 0.18.1

## References

- <https://crates.io/crates/orion> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0426.html> (advisory)
- <https://github.com/orion-rs/orion/pull/689> (web)

## Sources

- RustSec Advisory Database: [RUSTSEC-2026-0426](https://rustsec.org/advisories/RUSTSEC-2026-0426.html), CC0-1.0, modified 2026-10-30

---

Page: https://cve.day/GHSA-r7wm-4vf2-h44w · Whole record: https://cve.day/GHSA-r7wm-4vf2-h44w.json · Rebuilt by cve.day 2026-11-25T22:56:43.460Z
