by gzer0 · 4y ago · 0 comments
> Linux creator Linus Torvalds famously rejected such warnings, arguing that such exploits weren’t practical.
And I would certainly agree with Linus, here's why:
> Retbleed can leak kernel memory from Intel CPUs at about 219 bytes per second and with 98 percent accuracy.
Retbleed adds more credence to this idea of impractical-yet-technically-feasible exploits; where do you draw the line? Do you choose to be vulnerable to this 219 bytes per second leak at the cost of 28% CPU overhead? I would imagine, one could toggle on or off the mitigations they'd want with the implications provided in the future via modifying BIOS settings.
Sure, chasing the necessary pointers and data structures through the kernel or other user programs might add some overhead, but don't write off a 200b/s leak as harmless. It may well be enough to steal the secrets you care about the most.
- The login cookies I have for my email account, my bank or my GitHub account
- My password vault
- My ssh private keys - which could be used to mess with production systems or make changes to repositories on GitHub without my knowledge
All of this data is extremely small (handfuls of bytes) and could cause lots of harm.
Giving malicious javascript the power to exfiltrate any of these secrets would be a disaster.
Desktop computing needs application sandboxing like phones have. I find it remarkable that nobody in the opensource world seems to care about this problem.
There are very, very few threat models in which a 219 bytes/sec kernel memory disclosure is not catastrophic. Even in an ideal world where disclosing kernel memory wouldn't help an attacker bypass KASLR, it's catastrophic for any key material that happens to be in kernel memory.
What we actually did was add "glass break sensors" to our security system.
Oops.
It will be dog slow, but it can't leak the behaviour of other components on the system.
Also, I'll say, having read a lot of SGX related research papers that many of the attacks were not really practical on close examination, or were immediately patched. The researchers don't tend to mention these things but e.g. using ancient crypto libraries without any side channel mitigations is rather common in that field.
For things like this, it'd probably make sense to use SGX more in the Linux kernel for holding secrets and doing other things. A lot of stuff in the kernel isn't really read sensitive (modulo generic secrets like KASLR slides). Having secrets like root hashes hanging around in kernel memory isn't a good idea but where to put them? One solution is to move stuff into enclaves. Unfortunately it would only help on server platforms.
business-wise, I think Intel's decision to gatekeep SGX and require developers to buy licenses to get signing keys probably doomed it, along with how weird and arcane it was to develop for. but the security was not good.
I worked on Spectre for a couple years when on V8 and read a couple books on information theory, signals, and probability. Computer science is catching up to EE little by little :-)
“Intel has worked with the Linux community and VMM vendors to provide customers with software mitigation guidance which should be available on or around today's public disclosure date,” Intel wrote in a blog post. “Note that Windows systems are not affected given that these systems use Indirect Branch Restricted Speculation (IBRS) by default which is also the mitigation being made available to Linux users. Intel is not aware of this issue being exploited outside of a controlled lab environment.”
There’s also other mitigations that don’t have that penalty that are working on employing: https://www.intel.com/content/www/us/en/developer/articles/t...
Perhaps I'm a boomer, but 219 Bps is damn fucking fast - faster then the first few modems I used.
> where do you draw the line?
Probably somewhere fucking much further below any point where human communication was deemed practical in the past 150 years.
Somewhat pathetic to me that people can't imagine 200 Bps as a usable bandwidth.
Eh?
219 Bps ~= 2100 bps (effective)
Assuming QAM that'd be something under 600 baud.
Baud and bps are not the same thing.
Did any of those old modems use QAM? It seems like many of the older protocols were FSK/PSK-based (yes, special cases of QAM, but not decoded the same way).
It looks like downplaying the potential of ret attacks was at best overly optimistic.