Skip to content
Crypto Write-up Advanced

AMD: Microcode Signature Verification Vulnerability

AMD Zen CPUs used an insecure hash function when verifying the signature of microcode patches, allowing an attacker with local administrator privileges to load malicious microcode. This could compromise confidential computing workloads protected by AMD SEV-SNP or Dynamic Root of Trust Measurement.

github.com

Published on github.com

sirdarckcat published GHSA-4xq7-4mgh-gp6w Feb 3, 2025

The author, on github.com

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

The CPU's microcode patch loader used an insecure hash function in its signature validation, so crafted patches could pass verification.

Impact

An attacker with local administrator privileges could load malicious microcode, causing loss of confidentiality and integrity for confidential guests running under AMD SEV-SNP; the text says a test payload was demonstrated on Zen 1 through Zen 4 and later reproduced on Zen 5.

What the attacker needed

Local administrator privileges; root from outside a VM

The fix

AMD provided an embargoed fix to its customers on December 17, 2024, and users can verify it by checking TCB values for SNP in attestation reports.

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.

Microcode is low-level software inside the CPU that controls how instructions work. The CPU checks a digital signature before accepting a microcode update, but here that check used a weak hash, so someone with high local privileges could craft a fake update that the CPU accepts. That lets them change how the processor behaves, which can break the isolation that protects encrypted virtual machines.

What is Crypto?

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.