Re:Zentool – AMD Zen Microcode Manipulation Utility
by mjg59 on Wednesday March 05, 2025 @11:14PM
(#43276356)
PSP firmware is in system flash, but is verified by the PSP with its own signing key. PSP firmware is loaded before x86 comes up, and as long as the SEV firmware measures itself and as long as it patches the microcode loader before allowing x86 to run (which the description of the patch claims it does) I think SEV is rescuable.
Re:Zentool – AMD Zen Microcode Manipulation Utility
by sirdarckcat on Thursday March 06, 2025 @02:52AM
(#43277583)
> This probably depends on a lot of non-public info: how does the PSP validate CPU state?
https://github.com/amd/AMD-ASPFW/blob/3ca6650dd35d878b3fcbe5...
Re:Zentool – AMD Zen Microcode Manipulation Utility
by amluto on Thursday March 06, 2025 @10:31AM
(#43281365)
That seems to be reading a memory mapped register per core. I wonder what backs that register.
Re:Zentool – AMD Zen Microcode Manipulation Utility
by sirdarckcat on Thursday March 06, 2025 @10:29PM
(#43287175)
It's just written by the CPU during a ucode update
I think that, at least on Intel, the “microcode” package includes all kinds of stuff beyond just the actual CPU microcode, and I think it’s all signed together. If AMD is like this, than an unpatched CPU can be made to load all kinds of goodies.
Also, at least in Intel (and I think also on AMD), most of the SPI flash security mechanism is controlled by SMM code. So any ranges that the CPU can write, unless locked by a mechanism outside of the control of whatever this bug compromises, can be written. This seems pretty likely to include the entire SPI chip, which includes parts controlling code that will run early after the next power cycle, which can compromise the system again.