How DRAM Scrambling Bypasses CPU Security on AMD Family 16h Platforms
A new GitHub project shows how DRAM address remapping on AMD Family 16h CPUs can bypass firmware and OS memory protections.

A GitHub project named “skitter‑creek‑bath‑salts” demonstrates a method to scramble DRAM address translations on AMD Family 16h CPUs. By flipping a single bit in the memory controller’s bank‑swizzle register, the code rewires the final mapping layer so that physical addresses no longer correspond to fixed DRAM coordinates. This effectively bypasses the firmware, SMM, and OS memory‑guard mechanisms that rely on static address maps. The researchers proved the concept on real silicon and documented the steps needed to keep the system alive while the entire memory space is shuffled. If the technique scales, it could expose hidden carve‑outs and undermine a core pillar of platform security.
What happened
The repository contains a proof‑of‑concept that modifies the DCT (DRAM Controller) registers on AMD Family 16h processors. The authors identified the bank‑swizzle‑mode register as a single‑bit lever that changes how the memory controller translates physical addresses to raw DRAM coordinates. By writing to this register, they force the controller to map any address to an arbitrary location, causing “&x != &x”.
The exploit works at the lowest layer of the memory pipeline, after the data fabric has generated a physical address but before the DRAM command is issued. Because all higher‑level protections—CPU microcode, SMM, and OS page tables—track physical addresses, they remain blind to the altered DRAM coordinates. The project also describes a fast‑path routine that disables auxiliary processors, primes TLBs, and keeps the system stable while the entire address space is scrambled.
The authors note that AMD’s later 17h and newer families omit the translation registers from public documentation, suggesting the vulnerability may be harder to reproduce on newer silicon, while similar address‑remap knobs exist on ARM and RISC‑V platforms.
Why it matters
Memory isolation is a cornerstone of modern threat models; if an attacker can rewrite the final address translation, every barrier that assumes a fixed mapping is bypassed. This opens the door to reading or overwriting firmware regions, secure enclaves, and other protected carve‑outs without triggering traditional detection. Enterprises that rely on AMD‑based servers for confidential workloads could see their threat surface expand dramatically. Additionally, the technique highlights a broader class of hardware‑level bugs that are invisible to software‑only testing, urging vendors to reconsider how they document and lock down low‑level controller registers.
- Reveals a previously undocumented attack surface on widely deployed CPUs.
- Provides researchers with a concrete testbed for hardware‑level security studies.
- Encourages vendors to harden memory‑controller firmware and hide critical registers.
- Exploit requires physical‑level access or privileged code execution, limiting immediate threat.
- Can cause system instability or data loss if applied to production hardware.
- Lack of documentation on newer generations leaves uncertainty about the prevalence of the bug.
How to think about it
When evaluating platform security, consider not only the documented protection mechanisms but also the hidden configuration registers in the memory controller. Verify that firmware updates lock down any mutable translation bits, and employ runtime integrity checks that compare expected DRAM coordinate maps against observed behavior. For critical deployments, prefer CPUs whose newer generations omit or lock these registers, and isolate firmware update paths to prevent unauthorized register writes.
FAQ
Can this DRAM scrambling be used to gain root access on a running system?+
Do newer AMD CPUs (17h and later) have the same vulnerability?+
What mitigation steps can administrators take today?+
Get the week’s most important gadget news and reviews in one short email. Free, and no spam.
Newsletter signup is temporarily unavailable.
- news·2 min readIntel Announces Nova Lake Core Will Debut on Desktop Before Data Center, Targeting Enthusiasts
Intel says its upcoming Nova Lake core will launch on desktop first, signaling a shift in its release strategy and challenging AMD’s data‑center lead.
- news·4 min readValve Launches Steam Machine Pre-Orders Starting at $1,050 with Randomized Queue
Valve has opened pre-orders for the Steam Machine starting at $1,050, utilizing a randomized queue to combat resellers amid rising component costs.
- mobile·2 min readAndroid C2PA Camera Apps Fail Security Checks, Allow Undetectable Image Forgeries
New research shows Android C2PA camera apps can be compromised via root exploits, breaking the trust model for image authenticity.