17 ms·
Page was down when I tried to read it, but it's archived here: http://archive.is/s831k http://archive.is/s831k. Its hard to get your head around how big a deal
by tptacek 9y ago
Page was down when I tried to read it, but it's archived here: http://archive.is/s831k http://archive.is/s831k.
Its hard to get your head around how big a deal this is. This vulnerability is so bad they killed x86 indirect jump instructions. It's so bad compilers --- all of them --- have to know about this bug, and use an incantation that hacks ret like an exploit developer would. It's so bad that to restore the original performance of a predictable indirect jump you might have to change the way you write high-level language code.
It's glorious.
- jncraton 9y agoAgreed. I haven't had this much fun thinking through the implications of a new exploit technique in a long time. It is truly beautiful.
- voidmain 9y agoAnd I fear there's little reason to think that the "three variants" from project zero's announcement are the full scope of the problem. They were just the variants that the few people in on this found time to develop exploits for. There can now be security bugs in things your program doesn't do; it seems like there is room for nearly unlimited creativity in finding them. From the spectre paper: "A minor variant of this could be to instead use an out-of-bounds read to a function pointer to gain control of execution in the mis-speculated path. We did not investigate this variant further."
- deleted 9y ago[deleted]
- pdpi 9y agoARM’s white paper details a variant 3a that affects some of their cores that are unaffected by var3 (and vice versa)
- geertj 9y ago> d I fear there's little reason to think that the "three variants" from project zero's announcement are the full scope of the problem. Agreed. This is an entirely new class of vulnerabilities, and we're just at the beginning.
- alanfalcon 9y agoAs evidenced by the Mozilla announcement.
- jcranmer 9y agoI think the main takeaway should be "speculative execution creates exploitable side-channels, and you should assume your hardware is exploitable until proven otherwise." AMD and ARM are probably still exploitable with unknown exploits, possibly even at Meltdown-levels of exploitability, but people haven't taken the time to reverse-engineer the microarchitecture enough to find the exploits. If I were developing processors, I'd be having emergency meetings on trying to craft exploits to figure out where our processors' weaknesses are. While being happy that Intel is getting all the bad PR for this and I'm not.
- bluGill 9y agoThis needs to find its way into the hands of every manager of companies that make processors.
- eridius 9y agoAIUI the fundamental difference between Meltdown and Spectre is Meltdown involves speculating execution that loads memory across privilege domains and Spectre doesn't. If both AMD and ARM won't speculate memory loads across privilege domains, then it sounds like they're strictly immune to Meltdown.
- bsdetector 9y ago> main takeaway should be "speculative execution creates exploitable side-channels, and you should assume your hardware is exploitable until proven otherwise." Speculative execution does not create side-channels in and of itself, side effects of speculative execution does that. In this case the side effect of cache state. Just don't change the cache during speculative execution and there's no problem.
- rayiner 9y agoIs glorious the right word for it? We’re going back to the stone ages where processors couldn’t predict the targets of indirect jumps. More generally, this seems to me like an attempt to patch out of what is really a class of attacks leveraging fundamental assumptions about high-performance CPU design. Before, OOO just had to preserve correctness and (some of) the order of exceptions and memory operations. Now, it has to preserve (some of) the timing of in-order execution too? Where does this path end?
- tptacek 9y agoWe have different utility functions, you and I.
- deleted 9y ago[deleted]
- tcoppi 9y agoSeems like the ultimate end-game here is to have mini-vms for every process using CPU-level ring protection. If you can't speculate across privilege levels, only inside them, it isn't a security problem anymore.
- sandworm101 9y agoOr time to have Kernel live on dedicated cache not ever accessed/shared with anything else. Let the CPU speculate all it wants, just not when playing in the kernel's cache. It may even be time for dedicated kernel cpus/cores.
- FractalNerve 9y ago> It may even be time for dedicated kernel cpus/cores. Oh yes, I agree! One needs to be able to phycically (un)lock the "kernel fpga" like a door without remote capabilities, except for server cpu's. Or whatever chip designers believe is a good "physical kernel embodiment" other than fpga. EDIT: I know it's not really clever, but I would really enjoy hearing any solutions that doesn't try to fix it at the hardware level.
- js2 9y agoCPUs have been vulnerable to this attack since 1995. How did it collectively take us 22 years to figure this out? I know it's a highly esoteric complex attack, but there's no shortage of clever hackers in the world.
- tzahola 9y ago- we didn't have browsers compiling JavaScript into machine code - we didn't have hyperconverged cloud infrastructures running arbitrary entities' code next to each other
- ashleyn 9y agoSounds like it's time for me to give up on the so-called "modern web" and install noscript.
- yorwba 9y agoYou can have both "modern web" and block most JavaScript. You just need to keep adding scripts to the whitelist until sites you trust work again. It's a bit arduous at first, but possible to get used to once everything you visit daily has been added.
- meepmorp 9y agoUnless, of course, the site you trust is hosted in a shared hosting VM which is also vulnerable to spectre or meltdown. In which case, you can’t trust the scripts.
- XR0CSWV3h3kZWg 9y agospectre can read, not write.
- dtparr 9y agoIf it can read the right data (private keys, etc.), then it can write whatever it wants.
- jasode 9y ago>Its hard to get your head around how big a deal this is. It truly is difficult to predict all the ripple effects from this. I can't think of a single computer bug in the last 30 years that's similar in reach to this Intel Meltdown. [EDITED following text to replace "Intel bug" with "Spectre bug" based on ars and jcranmer clarification. The Intel Meltdown can be fixed with operating system update patches for kpti instead of a complete recompile.] Journalists like to overuse the bombastic metaphor "shaken the very foundations" but this Spectre bug actually seems very fitting of it. Off the top of my head: - browsers like Chrome & Firefox have to compile with new defensive compilation flags because it runs untrusted Javascript - cloud providers have to recompile and patch their code to protect themselves from hostile customer vms - operating systems like Linux/Windows/MacOS have to recompile and patch code to protect users from malware Imagine the economics of all these mitigations. Also imagine that each of the cloud vendors AWS/Google/Azure/Rackspace had very detailed Excel spreadsheets extrapolating cpu usage for the next few years to plan for millions of $$$ of capital expenditures. Because of the severe performance implications of the bugfix (5% to 50% slowdown?), the cpu utilization assumptions in those spreadsheets are now wrong. They will have to spend more than they thought they did to meet goals of workload throughput. There are dozens of other scenarios that we can't immediately think of.
- ars 9y ago> to this Intel Meltdown. Wrong bug. Intel meltdown is bad, but not anywhere near as bad as Spectre which affects everything! No AMD immunity here.
- jasode 9y ago> Intel meltdown is bad, but not anywhere near as bad as Spectre I mentioned Meltdown because multiple entities (gcc, llvm, Google Cloud, Azure, Linux, Windows, etc) have already converged on concrete solutions such as new compiler flags and patches which gives us a glimpse into the costs and severity. The Spectre bug may be "bigger" but it doesn't have complete consensus mitigation yet and in the meantime, we really can't tell people to "just keep your laptop unplugged from internet and don't run any apps to avoid the Spectre bug." The Spectre hole seems like it will be an open problem for many years and the new gcc/llvm is an incomplete fix.
- leeoniya 9y agoi know this came out as a leak, but makes one wonder how "responsible" even a Jan 9 official announcement would have been. the scope is absolutely terrifying. this bug will be exploitable for a very long time.
- Piskvorrr 9y agoJan 9, 2019? 2050? How much longer is long _enough_?
- leeoniya 9y agoi guess at minimum it's worth asking how many major hosting providers have been fully patched at the time of disclosure. in addition to browsers and OSes.
- pixl97 9y agoYou don't "think infosec". If I'm an attacker and I notice both amazon and azure rebooting all their systems I know something is up. When I see that both Microsoft and Redhat employees are working overtime it gives away more information. All I have to do is crack on of their patched systems and I can bin diff it and figure out what is up. Then I sell it off to blackhats before the rest of the world is aware.
- jopsen 9y agoThey had like 6 months or so... how is more time going to make things less painful?
- jmull 9y agoWell, these are workarounds because fixing the problem at the source is hard. The right fix is to prevent speculatively executed code from leaking information. Here that perhaps means associating cache lines with a speculative branch somehow so that they aren't accessible until/unless the speculative branch becomes the real branch. (I have no idea exactly how that would be done or what the performance cost might be... I'd really need to know the details of how speculative execution is implemented in a particular CPU to even be able to guess.)
- eric_b 9y agoPrediction: This will be just like any vulnerability disclosure. The infosec people and media will scream hysterically about how game changingly bad it is. The OS vendors will patch, and business will go on as usual.