Spaghettifying DRAM
- Security
- Hardware
- Infrastructure
- Open Source
The GitHub post describes a hardware attack primitive on older AMD systems. With ring 0 access, a kernel module can rewrite DRAM controller translation settings so memory that was carved out for higher-privilege components gets aliased into ordinary physical addresses. The practical result is that code already running as the OS kernel can start reading or modifying places it normally cannot touch, including memory used by things like SMM, security processors, and other firmware-resident trust anchors. People who had not read the README closely kept reducing this to 'physical DRAM access in software', but the important point is narrower and uglier. Permission checks happen before the DRAM controller's final address translation, so changing that mapping lets you step around protections that were applied to the original physical address.
If you run older AMD platforms, treat this as a reminder that 'root' is not the top of the stack and hidden firmware memory can become reachable if memory-controller registers stay writable. For current cloud and confidential-compute deployments, the immediate task is verifying which generations actually expose these knobs and whether firmware locks or memory encryption close the path.
-
github.com
- Discuss on HN