Has it been Pwned
Side channelPractical impact

KyberSlash: secret-dependent division timing in Kyber reference code and many libraries

Goutam Tamvada, Karthikeyan Bhargavan and Franziskus Kiefer (Cryspen) noticed that Kyber's reference code divided a secret-derived numerator by the public modulus q; on many CPUs, division time depends on its inputs. They reported it on December 1, 2023. Follow-up work (Bernstein et al.) showed both variants, KyberSlash1 and KyberSlash2, were exploitable: secret keys were recovered within minutes (KyberSlash2) or hours (KyberSlash1) on a Raspberry Pi 2 and an Arm Cortex-M4.

A separate source-review date has not been recorded for this historical entry. Corrections.

Broken implementation. The underlying math is not broken by this. The failure is in code, hardware, or how the primitive is used.

Background

A one-line compiler-visible pattern - dividing by a constant, which compilers usually turn into a multiply but not always, e.g. at -Os or on CPUs without fast division - slipped into the reference implementation and was copied into many downstream libraries, which were patched between December 2023 and January 2024 (including Signal). The paper also patched Valgrind to flag variable-time instructions on secret data and checked over 1,000 implementations.

This is a pure implementation flaw: ML-KEM's lattice problem is unaffected. It came months before FIPS 203 was finalised, underscoring that standardising an algorithm is not the same as having safe implementations.

Sources

  1. paperKyberSlash: Exploiting secret-dependent division timings in Kyber implementations (ePrint 2024/1049)IACR ePrint, eprint.iacr.org
  2. announcementKyberSlash: division timings depending on secrets in Kyber softwarekyberslash.cr.yp.to, kyberslash.cr.yp.to