Implementation vulnerability·Demonstrated·Action: patch

Clangover: Clang-emitted secret-dependent branch in Kyber reference code (CVE-2024-37880)

Antoon Purnal showed that LLVM Clang (through 18.x, at several common optimization levels) compiled the constant-time poly_frommsg routine of the Kyber reference implementation into a secret-dependent branch, and released a proof of concept that recovers an ML-KEM-512 secret key in about ten minutes from decapsulation timing on the test machine. The reference code was patched on 2024-06-03 and liboqs in 0.10.1 (CVE-2024-36405). It is a compiler-induced implementation leak, not a weakness of ML-KEM.

Sources

Primary source first
  1. Implementation vulnerability·Demonstrated·Action: patch

    KyberSlash1/KyberSlash2: secret-dependent division timing in Kyber implementations