TechNewsReel
Live

Long-Running CPU Instructions Can Break x86 SMM Isolation

Researcher xoreaxeaxeax shows how 'SMI counter divergence' undermines the most privileged layer of x86 architecture.

TechNewsReel Newsroom · August 10, 2026

Security researcher xoreaxeaxeax has demonstrated a method to compromise System Management Mode (SMM), the highly privileged "ring -2" environment on x86 CPUs. By executing an obscenely long-running machine instruction, an attacker can break the fundamental security assumption that all CPU cores transition into SMM simultaneously.

The exploit works by forcing one CPU core to execute a "very long" instruction—typically involving slow Memory-Mapped I/O (MMIO) copies—which makes that core too busy to respond to a System Management Interrupt (SMI) invitation. While other cores successfully enter SMM, the stalled core remains outside, creating a state known as "SMI counter divergence." This breaks the atomicity of the SMM transition, a requirement that SMM security relies upon to maintain its isolation from the rest of the system.

The Architecture of Ring -2

System Management Mode is a special-purpose operating mode used by firmware for low-level hardware control, such as power management. Because SMM is invisible to the operating system and possesses full access to system memory, it is designed to be a secure enclave. Its integrity is predicated on the CPU's ability to atomically transition all cores into this mode via an SMI, ensuring that no other code is running while the firmware performs its tasks. As xoreaxeaxeax noted, "SMM's one promise, that nothing else runs while it does, falls apart in the face of one absurdly long instruction."

Implications for System Security

If the atomicity of the SMM transition is compromised, the "invisible" and secure nature of the environment is undermined. This vulnerability could potentially allow an attacker who already possesses kernel-level privileges to escalate their access further into ring -2. Such an escalation would enable the installation of persistent, undetectable firmware rootkits. Because these rootkits reside below the operating system, they can survive full OS reinstalls and bypass the vast majority of standard security software.

The Path Forward

Industry attention now turns to how platform vendors handle instruction timeouts. While some firmware designers may have anticipated this risk by implementing timeouts, the responsibility for selecting an appropriate timeout value often falls to the platform vendor. Future mitigations will likely depend on whether vendors can implement timeouts strict enough to prevent divergence without interfering with legitimate hardware operations. For now, the discovery highlights a critical gap in the assumed atomicity of x86 CPU state transitions.

Sources

Get a notification when a big story breaks. A few a day at most — no spam.