News for hackers. Stuff that matters.
Re:New flaw in Intel chips lets attackers slip their own dat... by mynameisvlad on Tuesday March 10, 2020 @03:03PM (#22538462)
https://www.techspot.com/news/84309-amd-cpus-vulnerable-seve...

From 2 days ago, in case you weren't aware.

Re:New flaw in Intel chips lets attackers slip their own dat... by makomk on Wednesday March 11, 2020 @04:53AM (#22544200)
It's a cache-based timing sidechannel attack that leaks the address of memory accesses. In general, you should probably assume that every CPU with caches is susceptible to those (so every one with reasonable performance). As the paper mentions, there have been other cache side channel attacks that broke cryptographic implementations and only had working exploits on Intel - people didn't count those as Intel-specific attacks along with the Meltdowns or L1TFs either then or now, though, because there was no fundamental reason why it shouldn't be possible to exploit other chips the same way. Treating this one differently and somehow comparable to Intel CPUs just outright leaking data across privilege boundaries seems like a false attempt at injecting balance where none exists.
Re:New flaw in Intel chips lets attackers slip their own dat... by temac on Tuesday March 10, 2020 @03:08PM (#22538506)
The "new" AMD attack depends on lack of already existing spectre mitigations. If I understand correctly, this one is a real new one that works against a correctly patched system.
Re:New flaw in Intel chips lets attackers slip their own dat... by paulmd on Tuesday March 10, 2020 @05:24PM (#22539873)
the new AMD attack effectively breaks KASLR (the "metadata" that the attack reveals is page table layouts) and AMD has announced they're not going to patch it.

itself it's not a problem but if you pair it with something else it destroys a major line of defense against that something else.

AMD is still architecturally vulnerable to some variants of SPECTRE, they just consider it "hard to exploit", but they do recommend you run KASLR to harden against it. Well, so much for that.

Re:New flaw in Intel chips lets attackers slip their own dat... by AnthonyMouse on Wednesday March 11, 2020 @02:00AM (#22543425)
Wasn't KASLR (really KPTI, originally a KASLR hardening technique) a mitigation against Meltdown, which AMD isn't vulnerable to, rather than Spectre?
Re:New flaw in Intel chips lets attackers slip their own dat... by chousuke on Wednesday March 11, 2020 @02:47AM (#22543652)
As far as I understand it, KASLR is a general hardening technique to shuffle the kernel address space so that it's harder for attackers to use vulnerabilities successfully to attack the kernel. I don't think it's specifically for Meltdown.
Re:New flaw in Intel chips lets attackers slip their own dat... by AnthonyMouse on Wednesday March 11, 2020 @11:22AM (#22546572)
ASLR is a general technique to try to prevent memory corruption vulnerabilities from being turned into code execution when the attacker can determine the location of already-existing code in memory and use the memory corruption to cause program flow to jump to it.

It works pretty well against remote code execution because it's hard for an attacker who can't already execute arbitrary code on your machine to determine the address space layout. In principle it can also be used to protect the kernel against user processes, but that's much harder because a process that can already execute arbitrary user code on the same machine can use a variety of side channel attacks like this to determine the kernel address space layout.

KPTI was originally proposed to close some of those side channels, but it's kind of expensive. It only got enabled by default (on Intel) because it also mitigates Meltdown, which is a much worse problem. It also doesn't handle all of the side channels:

http://www.cs.ucr.edu/~nael/pubs/micro16.pdf

Meanwhile, if some kernel code is vulnerable to Spectre (i.e. the Spectre mitigations are not implemented properly), it could allow the attacker to read arbitrary kernel memory. That is obviously very bad, but the ability to read arbitrary kernel memory implies that the attacker can already determine the kernel address space layout, so I'm not sure how KASLR would be helpful in mitigating that.

Re:New flaw in Intel chips lets attackers slip their own dat... by avianes on Wednesday March 11, 2020 @05:26AM (#22544331)
> The "new" AMD attack depends on lack of already existing spectre mitigations.

No, it's a misunderstanding to say that the flaw in the "Take A Way" whitepaper depends on a mechanism already patched. Attack scenarios which are used in the paper to show the feasibility of the 2 new side channels are patched (except the KASLR entropy reduction), but the side-channels themselves are not patched.

Re:New flaw in Intel chips lets attackers slip their own dat... by kllrnohj on Wednesday March 11, 2020 @01:03PM (#22547467)
> but the side-channels themselves are not patched.

And might never be patched just like FLUSH+RELOAD never was. And the paper itself even points out that FLUSH+RELOAD is a more applicable attack than Load+Reload is:

> Comparison with Flush+Reload. While Flush+Reload invalidates a cache line from the entire cache hierarchy, Load+Reload only evicts the data for the sibling thread from the L1D. Thus, Load+Reload is limited to cross-thread scenarios, while Flush+Reload is applicable to cross-core scenarios too.

Collide+Probe is more interesting as it can use virtual address instead of physical address in comparison to Prime+Probe. That may get a microcode update to do a way flush on context switch as part of general Spectre mitigations (just like the branch predictors are), but it can also be handled entirely in software by adjusting how the AES implementation works as the paper also talks about.

But fundamentally what these attacks enable are super old & well known, with multiple existing mechanisms that fulfill similar roles. It's why Spectre/Meltdown never focused on the side-channel part of the attack, because it seems to just be assumed side-channels will always exist. And why the paper used existing, documented vulnerabilities to do the exploit side of their PoC, just changing the side-channel used to ex-filtrate the data.

Is there something particularly unique or severe about "Take A Way" other than techchrunch's bad reporting of it?

Re:New flaw in Intel chips lets attackers slip their own dat... by avianes on Wednesday March 11, 2020 @07:00PM (#22551718)
> But fundamentally what these attacks enable are super old & well known, with multiple existing mechanisms that fulfill similar roles.

It still has to be published. The article doesn't claim to break all the isolation mechanisms of the processor like Spectre/Meltdown. Why should we compare this paper with Spectre/Meltdown?

> Is there something particularly unique or severe about "Take A Way" other than techchrunch's bad reporting of it?

Yes, there are at least three things in "Take A Way" which is interesting:

- These side-channels are harder to detect because it doesn't require a very intensive use of the cache (no flush / filling all cache ways / etc.). A single collision is enough to evict a targeted cache line.

- It allows to set up a covert channel that can transfer up to 588.9 kB/s.

- They did a reverse engineering job on a processor mechanism and its undocumented hash function.

Re:New flaw in Intel chips lets attackers slip their own dat... by kllrnohj on Thursday March 12, 2020 @01:00PM (#22558906)
> The article doesn't claim to break all the isolation mechanisms of the processor like Spectre/Meltdown. Why should we compare this paper with Spectre/Meltdown?

That was sort of my point, we shouldn't be making that comparison but further up in the comment chain that's exactly what was being done.

The paper itself is great and definitely should exist. But it's not a counter-argument to "yet another Intel attack surfaces" either.

Re:New flaw in Intel chips lets attackers slip their own dat... by cosmiccatnap on Tuesday March 10, 2020 @04:02PM (#22539058)
You are correct. No AMD vulnerability is in the same universe as the Intel vulnerabilities from this year alone. Good luck on your new build
Re:New flaw in Intel chips lets attackers slip their own dat... by afiori on Wednesday March 11, 2020 @06:29AM (#22544594)
Curiosity: is this down voted because it is false/exaggerated? As someone that is far from being an expert I would be interested in a counterexample
Re:New flaw in Intel chips lets attackers slip their own dat... by saagarjha on Wednesday March 11, 2020 @06:43AM (#22544655)
I think the current outlook on this is "the only reason we're not seeing speculative bugs with AMD is because nobody is looking and they're probably more annoying to find", not that they're not there.