StackWarp Flaw Exposes Critical Weakness in AMD SEV-SNP, Impacting Zen 1–5 CPUs

StackWarp is the name given to a newly disclosed hardware vulnerability affecting a wide range of modern AMD processors, specifically those based on the Zen 1 through Zen 5 architectures. The flaw was discovered and responsibly disclosed by researchers at the CISPA Helmholtz Center for Information Security, a well-known cybersecurity research institution in Germany. While the name itself may sound abstract, the implications of StackWarp are very real—especially for cloud providers and enterprises relying on hardware-based isolation for sensitive workloads.

At the center of the issue is AMD’s SEV-SNP (Secure Encrypted Virtualization with Secure Nested Paging) technology. SEV-SNP is designed to protect “confidential virtual machines” (CVMs) by encrypting their memory and enforcing integrity checks, even against a compromised or malicious hypervisor. In theory, this means cloud customers can trust that their data and code remain private, even though they do not control the physical machine running their virtual machines.

StackWarp challenges that assumption.

In simple terms, the vulnerability allows an attacker who already has privileged access to the host system to interfere with how the CPU tracks the stack pointer of a protected virtual machine. The stack pointer is a critical part of program execution—it determines where function calls return and where local variables are stored. By manipulating this mechanism at a very low hardware level, an attacker can undermine SEV-SNP’s integrity guarantees and alter the control flow inside a supposedly protected VM.

Put plainly, SEV-SNP is meant to keep cloud workloads isolated and secure even from the cloud provider itself. StackWarp shows that under certain conditions, there is a hardware-level loophole that can break this isolation. This does not mean SEV-SNP is useless, but it does mean its protections are not absolute.

How the attack works

The vulnerability stems from a microarchitectural optimization inside AMD CPUs known as the stack engine. This optimization is intended to improve performance, but researchers found that it can be pushed into an unexpected and unsafe state using a previously undocumented CPU control bit. Once this state is triggered, the CPU may lose track of the correct stack pointer for a protected VM.

When that happens, the consequences can be severe. By corrupting the stack pointer, an attacker can hijack execution flow inside the VM. In controlled demonstrations, researchers showed that this could lead to remote code execution within SEV-SNP-protected guests, privilege escalation inside the VM, and even the recovery of sensitive cryptographic material such as RSA-2048 private keys. In some cases, authentication mechanisms like OpenSSH password checks or sudo prompts could be bypassed entirely.

It is important to stress a key limitation: exploiting StackWarp requires elevated privileges on the host machine. This is not a bug that can be triggered remotely by an anonymous attacker over the internet. However, in cloud environments where the threat model explicitly assumes the host may be untrusted, that requirement still matters a great deal.

Affected hardware and severity

StackWarp impacts AMD Zen processors from Zen 1 through Zen 5, covering a broad range of server and enterprise CPUs. This includes many EPYC processors commonly used in cloud and data center environments. The vulnerability is tracked as CVE-2025-29943, and AMD has rated it as low to medium severity, largely because of the high level of access required to exploit it.

AMD has already released microcode and firmware updates starting in mid-2025, with additional BIOS and platform updates expected to roll out through OEMs. Some embedded platforms may not receive updates until as late as April 2026. In the meantime, AMD recommends applying the latest firmware and, for especially sensitive workloads, considering disabling simultaneous multithreading (SMT), since shared core resources can make exploitation easier.

Why this matters

For developers and cloud operators, StackWarp is a reminder that confidential computing technologies reduce risk, but they do not eliminate it. If the underlying host is compromised, isolation guarantees may not be as strong as marketing materials suggest. For everyday consumers, the impact is minimal unless they are running sensitive workloads on shared cloud infrastructure.

In the bigger picture, StackWarp joins a long line of microarchitectural vulnerabilities, from Spectre and Meltdown to earlier SEV-related attacks. Each one underscores the same lesson: hardware-level security is incredibly complex, and even well-designed trusted execution mechanisms demand constant scrutiny, testing, and improvement.