Bypass Memory Isolation on AMD CPU Systems through Memory Controller Manipulations

At the Black Hat 2026 conference, a new attack method was demonstrated, utilizing the swizzle mode of AMD memory controllers to bypass memory isolation and read or write arbitrary data from memory, including areas containing CPU microcode and memory allocated to the Platform Security Processor (PSP). This method allows for the circumvention of built-in memory encryption mechanisms (AMD SME/SEV), disrupts the isolation of virtual machines, and rewrites the processor microcode. Manipulations with the memory controller require code execution at the kernel level, which lowers the potential risk of the demonstrated attack technique.

The swizzle mode alters the logic of memory addressing to eliminate conflicts that arise during sequential access when reading from different rows within a single memory bank. To prevent such conflicts, the swizzle mode applies an XOR operation to portions of the address bits to separate sequentially accessed data blocks across different memory banks. The attack involves manipulating the swizzle mode on a running system to dynamically reallocate physical addresses.

The attack prototype was showcased on AMD processors from the 16h family, used in PS4 and Xbox One consoles, where the address configuration registers of the memory controller were documented and the mechanism to block them post-system boot was absent. In AMD processors from the 17h family and newer (starting with Zen), AMD implemented a blocking mechanism for accessing the configuration registers of the memory controller and added protection against substitution of the microcode copy that gets loaded into memory during the processor's transition to sleep mode (C6).

Source: opennet.ru

Buy reliable website hosting with DDoS protection, VPS VDS servers 🔥 Buy reliable website hosting with DDoS protection, VPS VDS servers | ProHoster