CVE-2018-5407: side-channel vulnerability on SMT/Hyper-Threading architectures
A timing side channel on SMT/Hyper-Threading CPUs allows a local attacker to steal an OpenSSL P-384 private key from a TLS server. The attacker must run a malicious process on the same physical core as the victim.
seclists.org
Published on seclists.org
We recently discovered a new CPU microarchitecture attack vector. The nature of the leakage is due to execution engine sharing on SMT (e.g.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the OpenSSL P-384 implementation has secret-dependent control flow, and SMT port contention creates a timing side channel that leaks that secret.
Impact
A local attacker co-located on the same physical core could recover the TLS server's private key, but the attack requires SMT and a specific CPU generation.
What the attacker needed
Malicious process on same physical core; SMT/Hyper-Threading enabled; Skylake or Kaby Lake CPU
The fix
Disable SMT/Hyper-Threading in the BIOS and upgrade to OpenSSL 1.1.1 or >= 1.1.0i.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Modern CPUs can run two threads at once on one core (Hyper-Threading). The two threads share some internal parts, so one can spy on the other by measuring tiny timing differences. Here, a malicious program on the same core as a web server can slowly learn the server's secret encryption key.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.