Slashdot Mirror


Google Says Almost All CPUs Since 1995 Vulnerable To 'Meltdown' And 'Spectre' Flaws (bleepingcomputer.com)

Catalin Cimpanu, reporting for BleepingComputer: Google has just published details on two vulnerabilities named Meltdown and Spectre that in the company's assessment affect "every processor [released] since 1995." Google says the two bugs can be exploited to "to steal data which is currently processed on the computer," which includes "your passwords stored in a password manager or browser, your personal photos, emails, instant messages and even business-critical documents." Furthermore, Google says that tests on virtual machines used in cloud computing environments extracted data from other customers using the same server. The bugs were discovered by Jann Horn, a security researcher with Google Project Zero, Google's elite security team. These are the same bugs that have been reported earlier this week as affecting Intel CPUs. Google was planning to release details about Meltdown and Spectre next week but decided to publish the reports today "because of existing public reports and growing speculation in the press and security research community about the issue, which raises the risk of exploitation."

269 comments

  1. I'm not even surprised. by Z00L00K · · Score: 1

    This isn't even surprising that the problem exists in almost every CPU since a long time considering that most CPUs share the same type of logic in order to achieve the best performance. But performance and security often comes into conflict.

    --
    If builders built buildings the way programmers wrote programs, then the first woodpecker would destroy civilization.
    1. Re:I'm not even surprised. by hey! · · Score: 1

      Actually in this case I think "strategy" rather than "logic" is probably a better way of putting it. Everyone uses speculative evaluation to speed things up, Intel just does it slightly more aggressively than other chipmakers and so presents a slightly larger attack surface.

      --
      Post may contain irony: discontinue use if experiencing mood swings, nausea or elevated blood pressure.
  2. Almost All processors by dehachel12 · · Score: 2

    Shouldn't that be : Almost All Intel processors?

    1. Re:Almost All processors by Lothsahn · · Score: 5, Informative

      No. Spectre affects AMD and ARM as well (and likely other architectures too).

      Best I can tell, the only CPUs guaranteed not affected by both are in-order architectures, which many older ARM (and extremely old x86) chips are.

      These attacks are a sort of new category of security analysis--realizing that out of order execution can have side effects, and that programs can check for those side effects to leak program state and system memory.

      --
      -=Lothsahn=-
    2. Re:Almost All processors by Excelcia · · Score: 1

      "According to Google, everything and everyone is affected. This includes all major chipset vendors (Intel, AMD, ARM), all major operating systems (Windows, Linux, macOS, Android, ChromeOS), cloud providers (Amazon, Google, Microsoft), and application makers."

      It looks like the attack uses side effects of out-of-order execution that probably will affect every processor. There is not a practical demonstration on AMD yet, but it is likely affected. Interestingly, it looks like it can break out of a VM jail as well.

    3. Re:Almost All processors by Anonymous Coward · · Score: -1

      Bullshit. AMD is NOT affected by meltdown, which is the really bad one and where the fix kills performance.

      Stop spreading lies, dipshit.

    4. Re:Almost All processors by Anonymous Coward · · Score: -1

      Not really necessary, given AMD has fuck all for marketshare.

    5. Re:Almost All processors by AHuxley · · Score: 2

      "“Meltdown” and “Spectre”: Every modern processor has unfixable security flaws"
      https://arstechnica.com/gadget...

      --
      Domestic spying is now "Benign Information Gathering"
    6. Re:Almost All processors by K.+S.+Kyosuke · · Score: 1

      Given the sales figures, they're not exactly wrong.

      --
      Ezekiel 23:20
    7. Re:Almost All processors by K.+S.+Kyosuke · · Score: 1

      Every modern processor has unfixable security flaws

      Heh. That phrasing is debatable. Release a better processor and the "unfixable" security flaws will have been fixed. ;)

      --
      Ezekiel 23:20
    8. Re:Almost All processors by Lunix+Nutcase · · Score: 2

      They didn’t say AMD was vulnerable to Meltdown. Do you have the reading comprehension skills of stone?

    9. Re:Almost All processors by beelsebob · · Score: 2

      Yes - but both AMD and ARM are affected by Spectre, which there is NO KNOWN FIX for.

    10. Re:Almost All processors by Excelcia · · Score: 5, Informative

      I just read the papers and it's actually a fascinating, and deceptively simple method. Out-of-order execution and execution prefetching causes a CPU to pre-execute instructions that are later on in the chain. If my program performs a divide-by-zero, which will cause an error when it happens, instruction pre-fetching and out of order execution has already in whole or part executed the instructions that happen after the error. So, you write your program to do this:

      Something legal
      Fork
      Child:
      Divide by Zero
      Read of illegal memory

      Parent:
      Wait for child to crash
      Read the prefetch cache to see what the out-of-order execution put in the cache when it read the illegal memory

      In case that's not clear, a program forks. The child process induces an error, but after the error it has an instruction which would not normally be allowed, such as reading a portion of memory it wouldn't normally be able to. Out of order execution will already have begun performing the instruction, and because it doesn't have as rigorous controls on it, it actually reads the memory into the cache. This wouldn't be an issue, except there are ways to determine what a prefetch instruction resulted in. So the parent process waits for the child to crash and then it uses those instructions to determine the results of the prefetch which means you have just bypassed memory protection.

    11. Re:Almost All processors by Attila+Dimedici · · Score: 1

      "“Meltdown” and “Spectre”: Every modern processor has unfixable security flaws" https://arstechnica.com/gadget...

      Which makes you wonder if this is actually a flaw. A flaw is where something does not work the way it was designed to work. The fact that every modern processor has the same vulnerability suggests that perhaps this was designed into them at some point. I have no evidence that this was designed in, but one should at least entertain the possibility that it was.

      --
      The truth is that all men having power ought to be mistrusted. James Madison
    12. Re:Almost All processors by Lothsahn · · Score: -1

      Yes, because Spectre = Meltdown. Try reading.

      Also, your statement isn't necessarily true. From the researchers:
      At the moment, it is unclear whether ARM and AMD processors are also affected by Meltdown.
      https://meltdownattack.com/

      --
      -=Lothsahn=-
    13. Re:Almost All processors by zifn4b · · Score: 0

      Shouldn't that be : Almost All Intel processors?

      No if you read TFA carefully, Meltdown and Spectre affect Intel, AMD and Qualcomm Snapdragon processors to varying degrees. The 1995 bit probably solely refers to Intel in the sense that the AMD K5 was AMD's first processor and released in 1996. Back in 1995, if my memory serves me correct, the only two x86 CPU's in town in 1995 were the Intel Pentium 1 and the IBM Cyrix chipset. I'm guessing 8086/8088/286/386/486 were not affected?

      --
      We'll make great pets
    14. Re:Almost All processors by Lunix+Nutcase · · Score: 3, Insightful

      Of course it’s a flaw. It’s an unintended side-effect of speculative execution.

    15. Re:Almost All processors by Excelcia · · Score: 5, Informative

      Please read the article. From it:

      Google says that they've tested and verified Spectre against Intel, AMD, and ARM processors, and the attack affects desktops, laptops, cloud servers, and smartphones. The attack is also believed to affect almost all CPUs released in recent years.

      Meltdown uses out-of-order execution and a side channel attack that is unique to Intel. Spectre uses speculative execution and is more generalized, with tested proof-of-concept attack code on AMD and ARM.

    16. Re:Almost All processors by Lunix+Nutcase · · Score: 1

      Yes, because Spectre = Meltdown. Try reading.

      Wrong. They are the same class of bug around speculative execution but they are not the same thing.

    17. Re:Almost All processors by Anonymous Coward · · Score: 0

      According to AMD, they are not affected by Meltdown at all (the third listed flaw), only Spectre (the first two listed flaws), and even then they seem to think that the impact is minimal.

      https://www.amd.com/en/corporate/speculative-execution

      If the 2018 revision of Ryzen is any good then I would expect that these might end up being very competitive with Intel chips that will be slowed down by the OS changes required to mitigate Meltdown.

    18. Re:Almost All processors by zifn4b · · Score: 2

      These attacks are a sort of new category of security analysis--realizing that out of order execution can have side effects, and that programs can check for those side effects to leak program state and system memory.

      Not really. Sophisticated security attacks written in ASM have been around for decades. I have a friend who has worked for a decade as a security contractor for federal agencies and they are well aware of this sort of thing. I think what's happened is the knowledge to be able to architect these types of exploits is known to a relatively small group of people that have highly specialized knowledge. Most of the exploits we see these days are effectively script kiddies but in some cases very effect. Back in ye olden days when DOS roamed the earth, the black hats were a lot more evil and had a lot more knowledge. We should be thankful script kiddies are not that savvy. I recall (Satan bug?) would inject itself into the BIOS Flash memory and operate from there. Others would hide in the MBR and be executed during the boot strapping process of a hard drive which is essentially start executing at the beginning of storage memory. What they would do is put their own code there or jump to where their code was, load into memory and then jump back so that the user was none the wiser. Not real keen on seeing these types of hackers re-surface. Ugh.

      --
      We'll make great pets
    19. Re:Almost All processors by Lothsahn · · Score: 1

      Of course they're not. Read the chain and look for the sarcasm...

      --
      -=Lothsahn=-
    20. Re:Almost All processors by Z00L00K · · Score: 1

      But older architectures has other kinds of security gaps instead. So going back isn't going to help either.

      And today we essentially only have ARM and x86 architectures to care about. Sparc is a fringe architecture, so is PowerPC and MIPS, which means that it really doesn't matter if these architectures are impacted or not.

      --
      If builders built buildings the way programmers wrote programs, then the first woodpecker would destroy civilization.
    21. Re:Almost All processors by Z00L00K · · Score: 1

      At least not with the attack style that works on Intel processors, but I wouldn't be surprised if there are similar methods that works on AMD processors.

      --
      If builders built buildings the way programmers wrote programs, then the first woodpecker would destroy civilization.
    22. Re:Almost All processors by Anonymous Coward · · Score: -1

      Bullshit. AMD is NOT affected by meltdown, which is the really bad one and where the fix kills performance.

      Stop spreading lies, dipshit.

      Whoa, having a meltdown there mate? Just because the article mentions meltdown doesn't mean you must do so like a snowflake.

    23. Re:Almost All processors by Lunix+Nutcase · · Score: 1

      My bad. Missed your sarcasm. ^_^;

    24. Re:Almost All processors by Z00L00K · · Score: 1

      Probably more like "not possible to fix fully with software".

      --
      If builders built buildings the way programmers wrote programs, then the first woodpecker would destroy civilization.
    25. Re:Almost All processors by Anonymous Coward · · Score: 0

      I wonder how hard this is to actually exploit, and what path that exploit would take, and how likely it could be done with no detection. These articles rarely discuss the real world immediate risk vs. the theoretical risk.

    26. Re:Almost All processors by Anonymous Coward · · Score: 0, Interesting

      Oh, for FFS, at least get your facts straight.

        K5 was AMD's first processor? I must have imagined a whole heap of their processors which I owned and used before that one... And meltdown STILL doesn't affect AMD, all we have on that front is speculation from intel and their fanboys who wants to paint everyone else with the same tar brush.

    27. Re:Almost All processors by AHuxley · · Score: 4, Insightful

      Re but one should at least entertain the possibility that it was.
      A hardware version of PRISM? https://en.wikipedia.org/wiki/...
      Room 641A Inside https://en.wikipedia.org/wiki/... most computers?
      It was interesting how much of the NSA ANT catalog https://en.wikipedia.org/wiki/... connected to a computer rather than was able to work internally on a CPU as shipped?
      Is the world missing the other part of the CPU catalog thats still doing collect it all missions?

      --
      Domestic spying is now "Benign Information Gathering"
    28. Re:Almost All processors by dunkelfalke · · Score: 1

      Well, there was the NexGen, but I have only seen it being sold in a shop once - with the motherboard - and when I've returned with cash it was already gone.

      --
      "It's such a fine line between stupid and clever" -- David St. Hubbins, Spinal Tap
    29. Re:Almost All processors by ilguido · · Score: 5, Interesting

      Meltdown is the real problem here and that affects only all Intel CPUs since 1995 (except for Itanium and pre-2013 Atom) and one [sic!] ARM chip (I think Cortex-A75).

      Spectre is linked to two vulnerabilities: the first one is difficult to exploit and solvable via software, the second one is very difficult to exploit. Spectre allows to read memory from the same process, so it is an issue only for JIT and VM code. Meltdown allows to read memory everywhere.

    30. Re:Almost All processors by PincushionMan · · Score: 2

      the AMD K5 was AMD's first processor and released in 1996

      I know I had an AMD 386DX/40. Intel was pretty expensive back then, and I couldn't have purchased the processor for what I paid for the whole full tower unit. Okay, so it was the Am386. You likely recall the K5 release name because they renamed the 586 the Pentium and the 686 the Pentium Pro, and they sued AMD and Cyrix for using the numbers 486 and 586. Ultimately Intel lost. However, to shield itself from lawsuits, AMD had no choice but to name their processor the K5. Also, Cyrix (now Via) named their processors the 5x86 and the 6x86.

    31. Re:Almost All processors by twdorris · · Score: 2

      My bad.

      Are you sure you're on the right forum? This sounds suspiciously like owning up to an honest mistake and moving on. That's not going to cut it around here.

    32. Re:Almost All processors by 140Mandak262Jamuna · · Score: 1

      It was a well known technique used for amusement in USA. Till someone in Karachi, Pakistan decided it would be nice to be a little malicious about it. That is how the C-Brain virus was born, back in 1984-85 time frame.

      --
      sed -e 's/Chuck Norris/Rajnikant/g' joke > fact
    33. Re:Almost All processors by Anonymous Coward · · Score: 0

      I was one of those people back in the day who had those skills and did just that, knew many others with similar skillset, and definitely disagree with the 'much more evil' theory. We were mostly engineers and academics, and did not focus on monetizing those exploits. It was done mainly because it was fun.

    34. Re:Almost All processors by blind+biker · · Score: 4, Interesting

      No. Spectre affects AMD and ARM as well (and likely other architectures too).

      Best I can tell, the only CPUs guaranteed not affected by both are in-order architectures, which many older ARM (and extremely old x86) chips are.

      These attacks are a sort of new category of security analysis--realizing that out of order execution can have side effects, and that programs can check for those side effects to leak program state and system memory.

      Spectre is a red herring - there is no known way it can be exploited. Meltdown is far more dangerous and it can be exploited RIGHT NOW with a simple Javascript executed in a browser. Researchers demonstrated a Javascript exploit that uses Meltdown - and there is no telling who has already been compromised. But one thing is sure: non-Intel users have not been compromised.

      Frankly, this whole hoopla about Spectre seems like a well orchestrated deflection stunt by Intel PR operations. And your posts smells a bit of sockpuppetry.

      --
      "The agriculture ministry is not in charge of Gundam" - Japanese ministry official.
    35. Re:Almost All processors by thegreatbob · · Score: 1

      I've seen some pretty sharp stones out there, perhaps moss?

      --
      There is no XUL, only WebExtensions...
    36. Re:Almost All processors by ilguido · · Score: 2

      It is totally the other way around. Meltdown has no fix: you have to entirely skip the hardware feature via software and take the performance hit.

      Spectre is already patched on some ARM processors (note that many ARM processors are not affected by Spectre), while AMD says that it should be patched in the software affected. Since Spectre only refers to leakages of memory in the same process, it is only a problem for JIT and VM stuff (e.g. browsers and their Javascript, wait for a browser update in the next few days).

    37. Re:Almost All processors by Attila+Dimedici · · Score: 1

      Are you sure it is unintended?

      --
      The truth is that all men having power ought to be mistrusted. James Madison
    38. Re:Almost All processors by Anonymous Coward · · Score: 2, Interesting

      ...The fact that every modern processor has the same vulnerability suggests that perhaps this was designed into them at some point. I have no evidence that this was designed in, but one should at least entertain the possibility that it was.

      Perhaps we should entertain the possibility that the revelations of Edward Snowden scratch the fucking surface as to the deceptive power and control that the US government holds over US corporations.

      I'd say there's more than enough evidence to suggest this is no fucking "flaw". In fact, the timing of it all tends to suggest the Clipper chip program didn't just go away in the late 90s; it was superseded.

    39. Re:Almost All processors by Misagon · · Score: 2

      SPARC, MIPS and PowerPC may be fringe but they are still out there in the fringe for servers and/or supercomputers.
      Several CPUs of each architecture were released in 2017.

      IBM's POWER chips have supported the full PowerPC ISA for a decade and its performance is very competitive to Intel XEON, if not surpassing.

      Oracle (which had bought Sun) closed their SPARC processor group last year though. Fujitsu may still be active.

      Chinese Loongson makes MIPS processors at 1.5GHz, but they would need to step it up to compete.

      I have not checked PowerPC or SPARC but MIPS is not vulnerable to Meltdown. Linux on MIPS can not leak any kernel pages -- simply because MIPS does not do paging in kernel mode.

      --
      "We mustn't be caught by surprise by our own advancing technology" -- Aldous Huxley
    40. Re:Almost All processors by MSG · · Score: 2

      No. Spectre affects AMD and ARM as well (and likely other architectures too).

      AMD CPUs were demonstrated to be vulnerable to Spectre under Linux only in a non-standard kernel configuration. In the standard configuration, they demonstrated "the ability to read data within the same process, without crossing privilege boundaries."

      It's possible that future research will reveal vulnerabilities on AMD CPUs, but as of now, I don't see that one has been verified under the standard kernel configuration. (So don't enable eBPF JIT)

    41. Re:Almost All processors by Opportunist · · Score: 2

      Damn right, that's not how you play /., you insist that you're right and make a complete ass out of yourself. You can't just go and say "my bad", that's not allowed here.

      I so unsubbed to your channel!

      --
      We used to have a Bill of Rights. Now, with the rights gone, all we have left is the bill.
    42. Re:Almost All processors by Major+Blud · · Score: 1

      Does anyone know if this will affect PowerPC, SPARC, Alpha, and MIPS as well?

      --
      If you post as Anonymous Coward, don't expect a reply.
    43. Re:Almost All processors by Anonymous Coward · · Score: 0

      It is far and away the most likely explanation, idiot.

    44. Re:Almost All processors by NicknameUnavailable · · Score: 0

      Bullshit. AMD is NOT affected by meltdown, which is the really bad one and where the fix kills performance.

      Don't be disingenuous just because you own AMD stock. Spectre is not the same thing. Multiple processor bugs were revealed.

    45. Re:Almost All processors by Gr8Apes · · Score: 1

      Are you sure it is unintended?

      Proving such a subjective negative is almost impossible. Proving it was intended only requires providing some statement that someone intended to do this or evidence of the possibility of this exploit in the past.

      Ball's in your court - prove it was intended.

      --
      The cesspool just got a check and balance.
    46. Re:Almost All processors by Duhavid · · Score: 1

      "that it should be patched in the software affected"

      That is code for "we cant update the microcode, it *should* be patched in the CPU, but cant be ( and we dont want to say that ), so, hopefully the software can mitigate".

      --
      emt 377 emt 4
    47. Re:Almost All processors by Opportunist · · Score: 1

      Yes, it really boosts your sales, especially internationally, when the press tells everyone your CPUs are insecure crap. That's why the Intel boss sold his shares in time because he knew that it's going to be a big boon for his company when everyone learns about the problem.

      People, I love a good conspiracy theory like the next guy, but try to create some that are at least plausible.

      --
      We used to have a Bill of Rights. Now, with the rights gone, all we have left is the bill.
    48. Re:Almost All processors by Bing+Tsher+E · · Score: 1

      I have AMD 8088 processors. They second-sourced Intel from the beginning of the PC.

    49. Re:Almost All processors by religionofpeas · · Score: 1

      Yes, it really boosts your sales, especially internationally, when the press tells everyone your CPUs are insecure crap

      Well, a lot of people have to buy new CPUs now...

    50. Re:Almost All processors by Opportunist · · Score: 1

      Really? Which one? The one from your competitor that allegedly does not have that bug?

      --
      We used to have a Bill of Rights. Now, with the rights gone, all we have left is the bill.
    51. Re:Almost All processors by Anonymous Coward · · Score: 0

      MIPS fringe?? Hand in your geek badge at the exit please.

    52. Re:Almost All processors by Anonymous Coward · · Score: 0

      No. Almost any processor with an indirect predictor.

    53. Re:Almost All processors by dryeo · · Score: 3, Informative

      K5 was the first totally in-house designed AMD CPU and one of the first to do out of order execution, which is what these bugs exploit. Whether it is actually vulnerable would have to be tested.
      https://en.wikipedia.org/wiki/...

      --
      https://en.wikipedia.org/wiki/Inverted_totalitarianism
    54. Re:Almost All processors by emil · · Score: 1

      This seems to focus on branch prediction and the impact of backing the pipeline contents. The error seems to center on taking a branch into privileged memory that is initiated by unprivileged code. Therefore, any CPU with branch prediction is likely suspect.

    55. Re:Almost All processors by zifn4b · · Score: 2

      Oh, for FFS, at least get your facts straight.

      K5 was AMD's first processor? I must have imagined a whole heap of their processors which I owned and used before that one... And meltdown STILL doesn't affect AMD, all we have on that front is speculation from intel and their fanboys who wants to paint everyone else with the same tar brush.

      I should have said the AMD K5 was AMD's first in-house processor. The whole history is right here. No fan boi nonsense just facts. If you don't like facts, I can't help you.

      --
      We'll make great pets
    56. Re:Almost All processors by JaredOfEuropa · · Score: 2

      Interesting. I can see why the speculative instruction to read a memory location wouldn't be subject to all checks, but in that case why does the parent process even have access to the prefetch cache? Either that access needs to go, or the speculative memory read needs to be subject to all regular controls.

      --
      If construction was anything like programming, an incorrectly fitted lock would bring down the entire building...
    57. Re:Almost All processors by mspohr · · Score: 1

      If the defect is in the microcode and they patch it in software, isn't it still vulnerable? Doesn't seem like it would be difficult to undo or work around the software patch to access the original defective microcode.

      --
      I don't read your sig. Why are you reading mine?
    58. Re:Almost All processors by ilguido · · Score: 2

      Well, not really. Spectre is a problem only for applications that run trusted code alongside untrusted code (i.e. interpreters, JIT vm), that is a small subset of all software. Why do you want to tamper all your software, then?

    59. Re:Almost All processors by sl3xd · · Score: 5, Informative

      Frankly, this whole hoopla about Spectre seems like a well orchestrated deflection stunt by Intel PR operations.

      I'd caution against a false sense of security, based on one's choice of processor for your personal desktop.

      There's no disagreement that "Meltdown" is the greater problem, and affects pretty much any Intel chip still functioning. It's important to remember that it's virtually guaranteed that connect to many servers that uses an affected processor every day. Those of us who maintain cloud infrastructures are particularly unhappy with the situation.

      The fact that Meltdown is worse shouldn't distract from the fact that Spectre is bad.

      The paper on Spectre is written by a number of people working for a number of organizations, but Intel isn't one of them. It has the following statement:

      We have also verified the attack’s applicability to AMD Ryzen CPUs. Finally, we have also successfully mounted Spectre attacks on several Samsung and Qualcomm processors (which use an ARM architecture) found in popular mobile phones

      They go on to state they've verified the weakness on x86 using C and JavaScript (+ Google V8 JIT) bytecode.

      Much like JavaScript cryptocurrency mining , the fact that something is hard doesn't mean it's not worth doing to those interested, and having browser-based JavaScript exposing data isn't a good thing.

      Meltdown can be fixed fairly easily (AMD certainly shows it's possible to avoid the problem). Spectre, however, will be with us for a long time.

      --
      -- Sometimes you have to turn the lights off in order to see.
    60. Re:Almost All processors by Anonymous Coward · · Score: 1

      I think Cortex-A75

      Here is some more. Now, where was my cheap, 12-core, high-frequency A55 processor for my almost embarrassingly parallel needs again, with SVE? What, no standardized open platforms available?

    61. Re:Almost All processors by religionofpeas · · Score: 1

      Really? Which one? The one from your competitor that allegedly does not have that bug?

      Possibly, yes. Another possibility is to replace it with a new intel CPU where the bug is fixed, or at least a model where a software fix can be implemented with minimum performance degradation.

    62. Re:Almost All processors by sl3xd · · Score: 1

      Hanlon's rasor applies pretty well here.

      We can't even design a car with a few thousand parts that doesn't have unintended side effects.

      The idea a machine with billions of transistors won't have unintended side effects is comical at best.

      Processor eratta are maintained by every chip maker -- from the lowliest 4-bit microcontroller all the way up to beasts like Ryzen. This particular problem just happens to be unusually bad, and in a place that can't be fixed with microcode.

      --
      -- Sometimes you have to turn the lights off in order to see.
    63. Re:Almost All processors by silverdirk · · Score: 4, Informative

      The attack checks which rows of cache got evicted by reading across a large array, requesting behavior by another process, and then re-reading the array timing how long each read takes. Each iteration of the attack reveals a byte of memory by identifying which cache row it affected.

      --
      Mark of the Coder fades from you. You perform Opening on World of Warcraft. Warcraft crits GPA for 4. GPA dies.
    64. Re:Almost All processors by russotto · · Score: 1

      Spectre allows to read memory from the same process, so it is an issue only for JIT and VM code. Meltdown allows to read memory everywhere.

      The paper appears to claim that Spectre can read memory from a different process, provided it can get that process to do things by giving input to it.

    65. Re:Almost All processors by Anonymous Coward · · Score: 0

      No, it should be almost all processors, but you have to read it like this:

      Share of Intel processors made since 1995: 97% or thereabouts.
      Affected Intel processors since 1995: 100%.

      Share of non-Intel processors made since 1995: 3% or whatever remains.
      Affected non-Intel processors since 1995: 0%.

      So in effect, almost all processors.

      Nice spin in the summary. Do read the other comments further down.

    66. Re:Almost All processors by silverdirk · · Score: 1

      The unfixable part is two programs sharing a processor cache. In order to fix it you might have to have a per-thread offset added to the L1/L2/L3 cache addresses or something, and randomized by the OS at regular intervals. If you change something that fundamental (requiring cooperation by the OS), it would have to be a completely new version of the processor.

      --
      Mark of the Coder fades from you. You perform Opening on World of Warcraft. Warcraft crits GPA for 4. GPA dies.
    67. Re:Almost All processors by Attila+Dimedici · · Score: 1

      And exactly what processors are they going to buy instead? According to several sources, EVERY modern processor has this "flaw".

      --
      The truth is that all men having power ought to be mistrusted. James Madison
    68. Re:Almost All processors by swillden · · Score: 2

      Spectre is a red herring - there is no known way it can be exploited.

      Yet.

      non-Intel users have not been compromised

      So far.

      Frankly, this whole hoopla about Spectre seems like a well orchestrated deflection stunt by Intel PR operations. And your posts smells a bit of sockpuppetry.

      Intel had nothing to do with it; all three issues were found by Google Project Zero (who didn't name them; GPZ doesn't do silly vulnerability marketing games), and then independently by other researchers.

      Note that I'm not trying to defend Intel. I'm an AMD fanboy from way back, and I'd love to see this give AMD a major boost in sales for a few years. But let's not get overconfident. This is a brand new class of attack and few security researchers have focused on it yet. There will be more attacks.

      --
      Note to ACs: I usually delete AC replies without reading them. If you want to talk to me, log in.
    69. Re:Almost All processors by martyros · · Score: 3, Informative

      Spectre is a red herring - there is no known way it can be exploited.

      Google has exploited it. Look at Google Project Zero's write-up of these bugs. Spectre corresponds to "Variant 1 and Variant 2" in that blog post. You'll see that they successfuly exploit both, the second from a KVM guest.

      It is true that Google cheat a little here, by using Linux's eBPF JIT engine (which, I hear, is normally disabled by default). From the blog post:

      To be able to actually use this behavior for an attack, an attacker needs to be able to cause the execution of such a vulnerable code pattern in the targeted context with an out-of-bounds index. For this, the vulnerable code pattern must either be present in existing code, or there must be an interpreter or JIT engine that can be used to generate the vulnerable code pattern. So far, we have not actually identified any existing, exploitable instances of the vulnerable code pattern; the PoC for leaking kernel memory using variant 1 uses the eBPF interpreter or the eBPF JIT engine, which are built into the kernel and accessible to normal users.

      --

      TCP: Why the Internet is full of SYN.

    70. Re: Almost All processors by Anonymous Coward · · Score: 0

      Your facts where fucking wrong. So wrong in fact, you had to repost and correct yourself.

      Balls in your court Homey D. Clown.

    71. Re:Almost All processors by Anonymous Coward · · Score: 0

      So when people lost data because it was fun that was better than doing it for money how? Justify it all you want people messing with others is just being a bully/evil don't matter the reasons.

    72. Re: Almost All processors by Anonymous Coward · · Score: 0

      Have there been Alpha processors sold in the past decade?

    73. Re:Almost All processors by WaffleMonster · · Score: 1

      These attacks are a sort of new category of security analysis--realizing that out of order execution can have side effects, and that programs can check for those side effects to leak program state and system memory.

      They are not new in any shape or form.

      https://eprint.iacr.org/2006/2...

    74. Re:Almost All processors by Anonymous Coward · · Score: 2

      I once had a job with a company contracted to install server farms for the DOD and some other agencies. I had a fairly low level clearance and was hired right away. I was promoted when they found out I had a Solaris cert, becasue most of the server farms were running Sun blade servers with Sparc processors even though intel blades which were faster and cheaper were available.

      One day, at lunch, I asked about this, and his comment stuck with me. he basically told me that most of the DOD and other intelligence agencies want to put in a varied amount of architectures to prevent a "uni-culture" that makes security of the nation compromised, should vulnerabilities incapacitate whole networks using one architecture. He told me that it was getting harder and harder as vast variety of architectures were disappearing in the face of competition from Intel, with only some companies with architectures out side of the x86 being kept alive by specialty needs and government contracts. The next month, he told me (although this was not a secret) he was supervising an installment of servers that will run OpenVMS.

      As more and more architecture and OS become deprecated, we are fast falling into an architectural uni-culture that will be deleterious to national security.

    75. Re:Almost All processors by sl3xd · · Score: 1

      Yes, it really boosts your sales, especially internationally, when the press tells everyone your CPUs are insecure crap

      It actually might: many makers (<cough>Apple</cough>) only buy Intel chips, and I wouldn't be surprised if a lot of folks buy a new computer in the (mistaken) belief that will have an updated CPU that fixes the bug.

      Few consumers understand the lead time for hardware to go from an engineer's workstation to fabricated hardware. I wouldn't expect an Intel chip that won't "Meltdown" until 2019 at the earliest.

      That's why the Intel boss sold his shares in time

      The problem (for the prosecutor) is proving to the Jury that it was insider trading. (And that's of course the problem with a lot of criminal justice: Just because you know something doesn't mean you can prove it.)

      Intel's stock skyrocketed on October 26th, and then slowly fell from Nov 2 to Dec 15th. So if Intel's CEO sold his stock on, say, Nov 3rd, it'll be a tough sell to say he wasn't just "selling high."

      Best of luck to the DA investigating, though.

      --
      -- Sometimes you have to turn the lights off in order to see.
    76. Re: Almost All processors by Major+Blud · · Score: 1

      I don't think so, but they may still be in use for some older VMS systems.

      I think I read that Itanium isn't affected by Meltdown or Spectre. If I remember correctly, Itanium and Alpha shared some technology as a result of the Compaq/HP merger, but I don't know specifics.

      --
      If you post as Anonymous Coward, don't expect a reply.
    77. Re:Almost All processors by Anonymous Coward · · Score: 0

      If Google has known about this for a year why is there no fix for Android or Chrome?

    78. Re:Almost All processors by Anonymous Coward · · Score: 0

      You are responding to PAID REPUTATION MANANGEMENT posts on behalf of Intel from Israel. Jews descibe Intel as a 'jewish' company- and work to ensure Intel wins over AMD at any cost. In reality key engineering at Intel is done by Indians, the Israeli dept specialises in stealing the IP of other companies, and inserting the NSA backdoors.

      Anyway the zionist trolls ain't gonna respond to the FACTS- they are all about FAKE NEWS- and in this case the fake news is a) nothing to see here and b) AMD has the issue as well.

      The simple truth is that all Intel chips BY DESIGN give user code access to ring-0, the ultimate gift to NSA and GCHQ malware coders. AMD chips do NOT. Meltdown describes this, but the 'fix' (undeeded for the wonderful AMD Ryzen parts) doesn't really close the NSA backdoor- and Google KNOWS this.

      The ONLY fix is throwing out ALL Intel CPUs from servers and other serious systems, and replacing them with AMD parts. Trump banned the Russian anti-virus program on the same (but in that case fake news) grounds. Every single Intel system is compromised, and ANY code the NSA etc gets on your system has complete access to every part of your computer system. This includes browser code.

    79. Re:Almost All processors by Duhavid · · Score: 1

      That is why I say "should be patched in the CPU".
      I would expect that working around the OS mitigation will be the next thing to try.

      --
      emt 377 emt 4
    80. Re:Almost All processors by Duhavid · · Score: 1

      If someone builds something that finds a clever device to get thru a wall, do you build a better wall, or do you find some way to keep the device away from the wall?
      Workaround, keep the device away from the wall. Attackers will find another way to get to the wall. Works as a stopgap.
      Real fix, wall that is impervious to the device. ( which, to be fair leads to research in new clever device to get thru previously impervious wall )

      --
      emt 377 emt 4
    81. Re:Almost All processors by MtViewGuy · · Score: 1

      Here's the question: just how vulnerable are Apple's A7 to A11 SoC chips to the Spectre attack? While it may based on ARM instruction set, Apple's customization of their SoC design makes it a real unknown just vulnerable the iPhone 5S/iPad Air and everything newer are to the Spectre exploit.

    82. Re: Almost All processors by Anonymous Coward · · Score: 1

      Intel, Intel! How do you respond to reports you are a drunken coke head?
      Uh. AMD had half a glass of red wine last week too...

      That's basically what the shills are posting.
      AMD is safe for running a web browser, Intel is not.
      That's the story.

    83. Re:Almost All processors by Carewolf · · Score: 1

      Spectre is a red herring - there is no known way it can be exploited.

      Google has exploited it. Look at Google Project Zero's write-up of these bugs. Spectre corresponds to "Variant 1 and Variant 2" in that blog post. You'll see that they successfuly exploit both, the second from a KVM guest.

      It is true that Google cheat a little here, by using Linux's eBPF JIT engine (which, I hear, is normally disabled by default). From the blog post:

      To be able to actually use this behavior for an attack, an attacker needs to be able to cause the execution of such a vulnerable code pattern in the targeted context with an out-of-bounds index. For this, the vulnerable code pattern must either be present in existing code, or there must be an interpreter or JIT engine that can be used to generate the vulnerable code pattern. So far, we have not actually identified any existing, exploitable instances of the vulnerable code pattern; the PoC for leaking kernel memory using variant 1 uses the eBPF interpreter or the eBPF JIT engine, which are built into the kernel and accessible to normal users.

      No they haven't been exploited, they have been proven. There is still nothing really useful gathered from using it that makes it a security risk.

    84. Re:Almost All processors by Skuld-Chan · · Score: 1
    85. Re:Almost All processors by Darinbob · · Score: 1

      That's still not ALL processors. It's not even all processors from ARM, Intel, and AMD, as those companies do supply lower end models. The details of the exploits are still vague to me, but it sort of sounds like they're related to advanced processor designs; speculative execution, VM support, etc.

    86. Re:Almost All processors by Darinbob · · Score: 1

      If it only affects leakage within the same process, is that really an issue? A process can typically already read all of its own memory (depending upon how one defines "process"). The bug is if it could read memory from other processes or private kernel/system memory or there are memory droppings leftover from other VMs.

    87. Re:Almost All processors by Darinbob · · Score: 1

      Sollution is to know what you are running on your CPU. Most of those processors are running on specialized devices that do no run arbitrary off-the-net code. PowerPC is big on network routers and such, MIPs has a chunk of the embedded market, and so forth. Google is talking about desktops, laptops, servers, and smartphones. That is, very high end processors. ARM has some of that space but it has an even bigger space in the lower end embedded device market.

      If those CPUs are used in a product with 100% of control of the software running on them, then those CPUs are safe to use (barring a separate unrelated security breach).

    88. Re:Almost All processors by Darinbob · · Score: 1

      Right, Specture is a problem. But only if you use VM or Javascript or other interpretes. What it does is reinforce the idea to not trust unknown code. That is, continue using noscript on your browser and don't open the gates for stuff you don't know. People not yet using noscript should consider using it, or at the very least make regular backups of important data.

      Web sites have a moral obligation to personally vet each and every script they serve up to the unsuspecting gullible public. Avoid the lure of convenient third party services that promise to do all the advertising work for you.

    89. Re:Almost All processors by Major+Blud · · Score: 1

      Thanks for this....the article specifically mentions System Z, POWER8, and POWER9.

      If System Z is is affected, does this mean that this vulnerability has existed since the System/360 way back when LBJ was president (!) ?

      --
      If you post as Anonymous Coward, don't expect a reply.
    90. Re:Almost All processors by K.+S.+Kyosuke · · Score: 1

      I'm wondering now...would fully asynchronous logic mitigate this issue?

      --
      Ezekiel 23:20
    91. Re:Almost All processors by Duhavid · · Score: 1

      It allows you to read other processes.

      --
      emt 377 emt 4
    92. Re:Almost All processors by martyros · · Score: 1

      There is still nothing really useful gathered from using it that makes it a security risk.

      They were able to read the entirety of host RAM from inside a KVM VM.

      You seem to have a very strange definition of "security risk".

      --

      TCP: Why the Internet is full of SYN.

    93. Re:Almost All processors by paulpach · · Score: 1

      Which makes you wonder if this is actually a flaw. A flaw is where something does not work the way it was designed to work.

      It is working as designed.

      The problem is that the design is bad to begin with.

      So it is a flaw. To be specific: it is a design flaw.

      Meltdown and Spectre are basically a brand new type of attack. Speculation works fine, out of order works fine, cache works fine, each was most likely designed by different teams, and each one works as designed. It never occurred to anyone that the way these features worked together could be exploited to leak privileged information.

    94. Re:Almost All processors by Anonymous Coward · · Score: 0

      Prefetch has been around that long, but I'm not so sure about speculative execution.

    95. Re:Almost All processors by bongey · · Score: 2

      No you are confused, reading other processes ONLY applies to Intel processors.

    96. Re:Almost All processors by bongey · · Score: 1

      "verified the attack’s applicability" aka they didn't actually test it on ANY AMD processor in a non-default configuration. Until then the people at Google who are concerned that their majority Intel cpu servers are shit now needs to actually exploit a AMD processor.

    97. Re:Almost All processors by bongey · · Score: 1

      Fuckwit that only applies to Meltdown and only applies to Intel.

    98. Re:Almost All processors by bongey · · Score: 2

      Only on Intel processors. AMD processors check the address of the read before actually reading it, thus there is nothing in the cache.

    99. Re:Almost All processors by martyros · · Score: 1

      You don't know what you're talking about. Meltdown only applies to normal user processes; it doesn't apply to KVM because you're in a different address space. Google Project Zero's blog clearly says they used "Variant 2" -- one of the Spectre vulnerabilities -- to read host memory from within a KVM guest.

      --

      TCP: Why the Internet is full of SYN.

    100. Re:Almost All processors by Anonymous Coward · · Score: 0

      I'm sure Intel is getting right on that. If Intel wants to fix Spectre too, it should take their PhDs a year or two to come up with a new way to do branch prediction that won't leak information. Followed by several months of silicon design and layout, a few rounds of prototyping, a couple months more to being mass manufacturing and shipping to OEMs in bulk.

      2021: "Buy our new Intel processors! now with a 30% speed boost* (*: on workloads that lost 30% due to fixing these problems in software)"

    101. Re:Almost All processors by Opportunist · · Score: 1

      You're aware that we're talking about a design flaw, not something as trivial as changing a few photons in the etching process, yes? What you're looking at could well be a fundamental redesign of the complete processor. This is probably the biggest disaster Intel has faced, bigger than the much more trivial little bug they had in the FPU of the first Pentium.

      We're looking at something that may well cause Intel to throw away much of the work that went into the next processor generation and starting large parts of the instruction pipelines pretty much from scratch. By the time you can buy an Intel CPU where that bug is fixed, you probably bought 2 AMD CPUs waiting for it.

      --
      We used to have a Bill of Rights. Now, with the rights gone, all we have left is the bill.
    102. Re:Almost All processors by Opportunist · · Score: 1

      We're looking at two distinct problems here. One is indeed most likely also something that affects other processors, but fortunately this bug is dependent on some very specific events and situations. The other one is as far as we can tell now Intel-specific. This is also the one that can be fixed "easily" in software, but will probably result in a performance hit.

      How big, well, we'll see. Since we can't do much else right now but sit, wait and look what that fallout will be like, we can just as well do just that and benchmark the processors again once the dust settles.

      --
      We used to have a Bill of Rights. Now, with the rights gone, all we have left is the bill.
    103. Re: Almost All processors by sl3xd · · Score: 1

      This issue was discovered independently by several groups, and on multiple continents.

      Google is one, but a number of European universities and other companies (even Rambus, who is somehow still around) have been involved too.

      ARM has probably been one of the best reactions that I've seen, being far more thorough and writing far more about which of their processor designs are affected, and by how much.

      According to Red Hat, spectre has been found to affect the Power 8 and Power 9 architectures.

      Apple has a press release stating that all of its ARM-powered iOS devices are affected in addition to every Mac.

      Xensource wants Xen to work everywhere, and they've been thorough in documenting and testing - and they've replicated spectre with ARM, Intel, and even AMDâ(TM)s latest processors. They have promised more details as the embargo is lifted.

      It's not a conspiracy to smear AMD or anyone else.

      They're security professionals who are concerned with keeping everyoneâ(TM)s computer secure.

      --
      -- Sometimes you have to turn the lights off in order to see.
    104. Re:Almost All processors by Jane+Q.+Public · · Score: 1

      "... and affects pretty much any Intel chip still functioning."

      Not true. If you have an i3, i5, i7 processor made in the last few years, and it was manufactured using a smaller process than 32nm, it is not vulnerable.

      A list of the processors that are vulnerable can be found here.

      For example: I have an i7 4790k made in 2014. It was manufactured using a 22nm process. It is not on the list of processors vulnerable to Meltdown.

    105. Re:Almost All processors by jrumney · · Score: 1

      Specifically, they demonstrated this on Intel and AMD processors with bpf_jit enabled in the kernel config.

    106. Re:Almost All processors by Anonymous Coward · · Score: 0

      Spectre is appropriately named because it isn't a fucking problem. It's NEVER EVER EVER EVER been safe to run Javascript. It will NEVER EVER EVER EVER be safe to run Javascript. Fucking compiling it to opcodes is even dumber. You can't run foreign code and be safe. You can't run foreign code and be safe. You can't run foreign code and be safe. No sandboxing, no remote code. It will NEVER EVER EVER EVER be safe to run Javascript, and you can't run foreign code and be safe.

      Process boundaries define the security model in computing. NOT a fucking sandbox that downloads and runs opcodes blindly. Spectre is nothing but the eighty millionth warning bell that our javascript infection has more effects than just the massive rash we have on our faces.

      Meltdown is real, and it's pretty much an Intel problem. Hopefully they'll fix it eventually, and hopefully the mitigation doesn't fuck performance too much.

    107. Re:Almost All processors by bingoUV · · Score: 1

      Intel says yours falls under 4th Generation Intel Core processors. The PC World article you point to says 4th Generation Intel Core processors are affected.

      Where do you find that it is not affected ?

      --
      Bingo Dictionary - Pragmatist, n. A myopic idealist.
    108. Re:Almost All processors by Attila+Dimedici · · Score: 1

      While I do not believe this was intentional, I think that anyone who does not consider the possibility that the NSA, or some other organization, got this designed in on purpose is naive.

      --
      The truth is that all men having power ought to be mistrusted. James Madison
    109. Re: Almost All processors by zifn4b · · Score: 1

      Your facts where fucking wrong. So wrong in fact, you had to repost and correct yourself.

      Balls in your court Homey D. Clown.

      Negative. AMD did not create their own chip designs until 1996. That's a fact. They were making cheaper version's of Intel's chips and had licensing agreements all described in the article I posted. My balls in your face AC troll. Wiggle wiggle.

      --
      We'll make great pets
    110. Re:Almost All processors by toddestan · · Score: 1

      That list is confusing. They list the Core processors first by model and process size (Core i7/i5/i3/M - basically all models, and 45 nm and 32 nm, so first and second generation), then again by generation, which they list all but the first generation (huh?).

      I would just assume that any Intel x86 CPU after the original Pentium is affected, except for possibly some of the Atom chips.

    111. Re:Almost All processors by bingoUV · · Score: 1

      Confusing people is the only tool left in Intel's toolbox.

      I would assume that too, which is why I was surprised by GP's assertion.

      --
      Bingo Dictionary - Pragmatist, n. A myopic idealist.
    112. Re:Almost All processors by drinkypoo · · Score: 1

      If those CPUs are used in a product with 100% of control of the software running on them, then those CPUs are safe to use (barring a separate unrelated security breach).

      You can't bar that. So they're not safe. There's too many ways to slip some code into a computer.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    113. Re: Almost All processors by Anonymous Coward · · Score: 0

      It would be much more surprising if Jane made a correct assertion...

    114. Re: Almost All processors by Anonymous Coward · · Score: 0

      Thank you! (former mips employee)

    115. Re:Almost All processors by Darinbob · · Score: 1

      100% control means you control access. New software must be signed. If they can already get past the security to put in their own software, then they don't need to use a method so obscure as these. Never mind that the Spectre method is irrelevant here if you're not running VMs or interpreted languages with unknown scripts.

    116. Re:Almost All processors by drinkypoo · · Score: 1

      100% control means you control access.

      That's a nice idea, but mistakes happen. That's why even single-user computers have access control mechanisms. For example, to keep one process from reading another process' memory. In a world without malice, no single-user computer would need memory protection, and any MMU would be used solely to provide a virtual address space to make it easy to avoid accidentally stepping on another program's memory.

      This is not your fairytale perfect world in which the sun always shines, and the birds clothe beautiful young girls in streamers of silk. This is the real world, where we actually live. Security matters.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    117. Re:Almost All processors by WorBlux · · Score: 1

      >> It never occurred to anyone that the way these features worked together could be exploited to leak privileged information.

      That's false. Obviously it did occur to someone, hence the current situation. Additionally side-channel attack are a well-known topic in micro-architecture designs, and I'd be surprised if the possibility wans't brought up years ago at Intel, as they literally have many of the best silicon designers in the world on staff.

    118. Re:Almost All processors by Anonymous Coward · · Score: 0

      Spectre, however, will be with us for a long time.

      Tell M to send in Bond. That'll solve the problem!

    119. Re:Almost All processors by Anonymous Coward · · Score: 0

      Does anyone know if this will affect PowerPC, SPARC, Alpha, and MIPS as well?

      https://www.ibm.com/blogs/psirt/potential-impact-processors-power-family/ sounds familiar

  3. They did not test AMD or ARM by Zorpheus · · Score: 2, Informative
    You can find this information at the end of the article:

    At the time of writing, Google believes that "every Intel processor which implements out-of-order execution is potentially affected, which is effectively every processor since 1995 (except Intel Itanium and Intel Atom before 2013)" is affected by Meltdown. Google says it verified Meltdown only against Intel CPUs, but not ARM and AMD. Nonetheless, Intel has a market share of than 80% on desktops and more than 90% on the laptop and server markets, meaning that a large number of desktops, laptops, and servers are affected.

    1. Re:They did not test AMD or ARM by martyros · · Score: 1

      AMD seem to think they're not affected by Meltdown:

      AMD processors are not subject to the types of attacks that the kernel page table isolation feature protects against. The AMD microarchitecture does not allow memory references, including speculative references, that access higher privileged data when running in a lesser privileged mode when that access would result in a page fault.

      BTB it is almost certainly this email, sent on 26 December, which led to the Meltdown vulnerability being made public, causing the disclosure timeline to be moved up.

      --

      TCP: Why the Internet is full of SYN.

    2. Re:They did not test AMD or ARM by Misagon · · Score: 3, Informative

      No, they did test their Meltdown code on AMD and ARM but were not able to reproduce it on the chips they tested on.
      That does not prove that a Meltdown-like attack on AMD or ARM is impossible, either on a different chip they did not test on or with a tweaked version of Meltdown.

      From the actual article ("meltdown.pdf"):

      We also tried to reproduce the Meltdown bug on several ARM and AMD CPUs. However, we did not manage to successfully leak kernel memory with the attack described in Section 5, neither on ARM nor on AMD. The reasons for this can be manifold. First of all, our implementation might simply be too slow and a more optimized version might succeed. For instance, a more shallow out-of-order execution pipeline could tip the race condition towards against the data leakage. Similarly, if the processor lacks certain features, e.g., no re-order buffer, our current implementation might not be able to leak data. However, for both ARM and AMD, the toy example as described in Section 3 works reliably, indicating that out-of-order execution generally occurs and instructions past illegal memory accesses are also performed.

      --
      "We mustn't be caught by surprise by our own advancing technology" -- Aldous Huxley
    3. Re:They did not test AMD or ARM by Zorpheus · · Score: 2

      Yes. What we read in this article is: Google believes that AMD is vulnerable, but they could not prove it. What we don't read here is: AMD says they are not vulnerable.

    4. Re:They did not test AMD or ARM by neo00 · · Score: 2
      Meltdown only impacts Intel processors. Meltdown can be thought to be a special case of Spectre that exploits an Intel-specific flaw that makes it simpler to execute the exploit.

      Spectre, which is more of a generalized class of attacks, but more difficult to implement, impacts Intel, AMD, and ARM as per the original spectre paper. https://spectreattack.com/spec..., from which I quote:

      Hardware. We have empirically verified the vulnerability of several Intel processors to Spectre attacks, including Ivy Bridge, Haswell and Skylake based processors. We have also verified the attack’s applicability to AMD Ryzen CPUs. Finally, we have also successfully mounted Spectre attacks on several Samsung and Qualcomm processors (which use an ARM architecture) found in popular mobile phones.

      and

      Unlike Meltdown, the Spectre attack works on non-Intel processors, including AMD and ARM processors. Furthermore, the KAISER patch [19], which has been widely applied as a mitigation to the Meltdown attack, does not protect against Spectre.

      References:
      Spectre https://spectreattack.com/spec...
      Meltdown https://meltdownattack.com/mel...

    5. Re:They did not test AMD or ARM by sl3xd · · Score: 1

      LWN published articles indicating a problem back in November, and followed up on it a number of times.

      That the Kernel devs would prioritize a fairly invasive patch set, reducing performance up to 30% was a sign that something was amiss.

      The fact the LKML had practically no discussion for why so much effort was being expended on it was a sign that something was very, very wrong.

      --
      -- Sometimes you have to turn the lights off in order to see.
    6. Re:They did not test AMD or ARM by sl3xd · · Score: 2

      The paper also appears to insinuate that RISC-V and MIPS might be vulnerable as well.

      RISC-V is so new it's not widely deployed, but MIPS... well, that's in most routers.

      --
      -- Sometimes you have to turn the lights off in order to see.
    7. Re:They did not test AMD or ARM by bongey · · Score: 1

      Google is claiming more than what is actually truth. Reality is that AMD might proceed past an exception due to out of order scheduling but the READ never occurs as in the Intel processors. Intel processors were doing the memory check after the fact where AMD is doing it before the instruction ever executes.

  4. Did the TFA really self-link? by xxxJonBoyxxx · · Score: -1, Troll

    Did the TFA really self-link? (Try clicking "two vulnerabilities named Meltdown and Spectre")

  5. worst dup ever? by Anonymous Coward · · Score: -1

    scroll down 2 stories..

  6. Better link and description than story by xxxJonBoyxxx · · Score: 5, Informative

    https://meltdownattack.com/

    Meltdown breaks the most fundamental isolation between user applications and the operating system. This attack allows a program to access the memory, and thus also the secrets, of other programs and the operating system.If your computer has a vulnerable processor and runs an unpatched operating system, it is not safe to work with sensitive information without the chance of leaking the information. This applies both to personal computers as well as cloud infrastructure. Luckily, there are software patches against Meltdown.

    Spectre breaks the isolation between different applications. It allows an attacker to trick error-free programs, which follow best practices, into leaking their secrets. In fact, the safety checks of said best practices actually increase the attack surface and may make applications more susceptible to Spectre. Spectre is harder to exploit than Meltdown, but it is also harder to mitigate. However, it is possible to prevent specific known exploits based on Spectre through software patches.

    1. Re:Better link and description than story by Anonymous Coward · · Score: 0

      In fact, the safety checks of said best practices actually increase the attack surface and may make applications more susceptible to Spectre.

      Wouldn’t it be funny, then, if Rust applications were highly vulnerable to Spectre so we could all point and laugh at its hipster users?

    2. Re:Better link and description than story by martyros · · Score: 2

      There's a pretty good summary in the XenProject Security Advisory:

      Processors give the illusion of a sequence of instructions executed one-by-one. However, in order to most efficiently use cpu resources, modern superscalar processors actually begin executing many instructions in parallel. In cases where instructions depend on the result of previous instructions or checks which have not yet completed, execution happens based on guesses about what the outcome will be. If the guess is correct, execution has been sped up. If the guess is incorrect, partially-executed instructions are cancelled and architectural state changes (to registers, memory, and so on) reverted; but the whole process is no slower than if no guess had been made at all. This is sometimes called "speculative execution".

      Unfortunately, although architectural state is rolled back, there are other side effects, such as changes to TLB or cache state, which are not rolled back. These side effects can subsequently be detected by an attacker to determine information about what happened during the speculative execution phase. If an attacker can cause speculative execution to access sensitive memory areas, they may be able to infer what that sensitive memory contained.

      Furthermore, these guesses can often be 'poisoned', such that attacker can cause logic to reliably 'guess' the way the attacker chooses. This advisory discusses three ways to cause speculative execution to access sensitive memory areas (named here according to the discoverer's naming scheme):

      SP1, "Bounds-check bypass": Poison the branch predictor, such that operating system or hypervisor code is speculatively executed past boundary and security checks. This would allow an attacker to, for instance, cause speculative code in the normal hypercall / emulation path to execute with wild array indexes.

      SP2, "Branch Target Injection": Poison the branch predictor. Well-abstracted code often involves calling function pointers via indirect branches; reading these function pointers may involve a (slow) memory access, so the CPU attempts to guess where indirect branches will lead. Poisoning this enables an attacker to speculatively branch to any code that exists in the hypervisor.

      SP3, "Rogue Data Load": On some processors, certain pagetable permission checks only happen when the instruction is retired; effectively meaning that speculative execution is not subject to pagetable permission checks. On such processors, an attacker can speculatively execute arbitrary code in userspace with, effectively, the highest privilege level.

      The "some processors" for SP3 means Intel.

      --

      TCP: Why the Internet is full of SYN.

    3. Re:Better link and description than story by Anonymous Coward · · Score: 0

      Puts the subject line "Better link [...] than story".
      Doesn't provide a link.

      Please learn the difference between a URL and a link. And please link.

    4. Re:Better link and description than story by blind+biker · · Score: 1

      Spectre breaks the isolation between different applications. It allows an attacker to trick error-free programs, which follow best practices, into leaking their secrets. In fact, the safety checks of said best practices actually increase the attack surface and may make applications more susceptible to Spectre. Spectre is harder to exploit than Meltdown, but it is also harder to mitigate. However, it is possible to prevent specific known exploits based on Spectre through software patches.

      This paragraph, which you copy-pasted from meltdownattack.com, is not explaining much. I would go as far as to say that it's jackshit. Just read the linked research paper.

      --
      "The agriculture ministry is not in charge of Gundam" - Japanese ministry official.
    5. Re:Better link and description than story by xxxJonBoyxxx · · Score: 1

      >> Just read the linked research paper.

      Which is why I provided that URL. None of the clickbait articles had links to the research paperS (plural, MF'er).

      So...you're welcome newbie. Now GTFO my lawn.

    6. Re:Better link and description than story by blind+biker · · Score: 1

      >> Just read the linked research paper.

      Which is why I provided that URL. None of the clickbait articles had links to the research paperS (plural, MF'er).

      So...you're welcome newbie. Now GTFO my lawn.

      I used singular, because the topic was Spectre, so I only referenced the Spectre paper.

      And "newbie"? Who uses that, anymore? I remember it being quite the term, circa 1998.

      --
      "The agriculture ministry is not in charge of Gundam" - Japanese ministry official.
    7. Re: Better link and description than story by c6gunner · · Score: 1

      OK, so he misspelled n00b. It happens.

  7. Fuck Bleeping computer by Anonymous Coward · · Score: -1

    Can we get a direct link to Google then not to some intermediate regurgitation site?

  8. And bitcoin is the future??? by Anonymous Coward · · Score: 0

    With all these boulder abilities you would be nuts to trust your wealth to a mechanism thatâ(TM)s nothing but tech. No paper trail no fail safe. At least gold in a vault that few if anyone knows about will not be at risk of theft from someone at a computer on the other side of the world.

    1. Re:And bitcoin is the future??? by DontBeAMoran · · Score: 1

      Crypto-coin paper wallet. Problem solved.

      --
      #DeleteFacebook
  9. Now I am confused by Anonymous Coward · · Score: 1

    The fix for the original "Intel only" bug was "fuckwit" (kpti=on) and there is a patch [1] from AMD to disable kpti on AMD cpus in order to avoid unnecessary performance loss. Now does this mean the the AMD patch was short sighted and we need kpti on AMD cpus as well? Or does it mean kpti isn't a sufficient counter measure for meltdown/spectre?

    [1] https://lkml.org/lkml/2017/12/27/2

    1. Re:Now I am confused by Lunix+Nutcase · · Score: 2

      No, KPTI doesn’t help for Spectre.

    2. Re:Now I am confused by Lunix+Nutcase · · Score: 1

      Also Spectre and Meltdown are not the same thing.

    3. Re:Now I am confused by Anonymous Coward · · Score: 0

      Nobody said they were, asshole

    4. Re:Now I am confused by PingSpike · · Score: 1

      Intel use weasel language to heavily imply they were in their press release. And based on comment chains on this story, it seems to have worked.

    5. Re:Now I am confused by Anonymous Coward · · Score: 0

      Double dumbass on you; plenty of people are getting confused. You are just plain objectively wrong when you say the absolutely false statement that nobody said they were the same.

    6. Re:Now I am confused by Anonymous Coward · · Score: 0

      From https://spectreattack.com/spectre.pdf

      Meltdown [27] is a related microarchitectural attack
      which exploits out-of-order execution in order to leak
      the target’s physical memory. Meltdown is distinct from
      Spectre Attacks in two main ways. First, unlike Spectre,
      Meltdown does not use branch prediction for achieving
      speculative execution. Instead, it relies on the observa-
      tion that when an instruction causes a trap, following in-
      structions that were executed out-of-order are aborted.
      Second, Meltdown exploits a privilege escalation vulner-
      ability specific to Intel processors, due to which specula-
      tively executed instructions can bypass memory protec-
      tion. Combining these issues, Meltdown accesses kernel
      memory from user space. This access causes a trap, but
      before the trap is issued, the code that follows the ac-
      cess leaks the contents of the accessed memory through
      a cache channel.
      Unlike Meltdown, the Spectre attack works on non-
      Intel processors, including AMD and ARM processors.
      Furthermore, the KAISER patch [19], which has been
      widely applied as a mitigation to the Meltdown attack,
      does not protect against Spectre.

  10. Are microkernels vulnerable to Meltdown ? by Anonymous Coward · · Score: 0

    Given the natural process isolation in microkernels are they immune, or at least strongly resistant, to Meltdown ?

    1. Re:Are microkernels vulnerable to Meltdown ? by qbast · · Score: 1

      No, the whole point of meltdown is bypassing the isolation.

    2. Re: Are microkernels vulnerable to Meltdown ? by Anonymous Coward · · Score: 0

      No. Unless it unmaps all memory except the application on context switches.

  11. Easy Fix by Anonymous Coward · · Score: 2, Funny

    Just patch all the CPUs so they process things introspectively, with a glass of wine and some light jazz.

    1. Re:Easy Fix by Anonymous Coward · · Score: 0

      Caches are to blame. Pour some hard liquor on them, set them on fire and build scratchpads to replace them. Them play some Norwegian black metal or Stravinsky. Scream.

    2. Re: Easy Fix by Anonymous Coward · · Score: 0

      Maybe some deathklok?

      https://en.m.wikipedia.org/wiki/Dethklok

    3. Re:Easy Fix by ceoyoyo · · Score: 1

      Judging by my last teleconference, I'm pretty sure that would incur a more severe performance penalty.

  12. Google did not discover anything.. by Anonymous Coward · · Score: 0

    ... They are just reiterating what the community has known for weeks.
    Leaks through speculative execution is anything but new.
    Everybody that knows anything useful about CPU's has known this since the beginning of speculative execution through privilige barriers.
    Every modern microarchitecture is just a security mess with side-channels, pure flaws, microarchitecture stupidness.

  13. Ok, now what? by DontBeAMoran · · Score: 1

    What are we supposed to do? Have you seen the price of Amiga and Atari ST computers on eBay? Not to mention that there's nowhere near enough to supply the whole planet!

    Has anyone started working on an OS/9 port of Firefox for the Color Computer 3 yet?

    --
    #DeleteFacebook
    1. Re:Ok, now what? by Lunix+Nutcase · · Score: 1

      You could wrap all your computers in tinfoil. If it works for mind control rays on your head it might for this.

    2. Re:Ok, now what? by drinkypoo · · Score: 1

      What are we supposed to do? Have you seen the price of Amiga and Atari ST computers on eBay? Not to mention that there's nowhere near enough to supply the whole planet!

      My Amiga doesn't have a MMU, you insensitive clod! Luckily I have AMD processors, on which you can mitigate these attacks. Now if I could just figure out how to disable their equivalent of the management engine

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    3. Re:Ok, now what? by Stormwatch · · Score: 0

      Or we could adopt the IBM POWER architecture.

    4. Re:Ok, now what? by Anonymous Coward · · Score: 0

      What are we supposed to do? Have you seen the price of Amiga and Atari ST computers on eBay? Not to mention that there's nowhere near enough to supply the whole planet!

      Has anyone started working on an OS/9 port of Firefox for the Color Computer 3 yet?

      Usually any problem that can't be perfectly defended against can be at least imperfectly defended against.

      If you are worried about one program reading another's memory, then make sure things like keys are not stored unencrypted, even in memory. Sure maybe the temporary key and such to decrypt them are also in memory somewhere, but it makes it harder.

      If you are worried about hostile VMs owned by others, you could rent all the VMs on a server. You could also keep sensitive information on a locked down server or server with only other trusted VMs, thus minimizing the attack profile.

      Of course mitigation is not a replacement for a true fix, even if the fix slows down your pc, but it is something. Most likely they will have updated CPUs out in a year or two, though it may take a decade for most of the others to be out of circulation. It is likely there will be multiple workarounds. They may even come up with something hybrid that is partly microcode, partly using a spare core, partly OS, who knows. The point is you have very clever people working on the problem, and I tend to bet they will figure something out.

    5. Re:Ok, now what? by DontBeAMoran · · Score: 1

      Are you saying that the old PowerPC Macs are immune to these two problems?

      --
      #DeleteFacebook
    6. Re:Ok, now what? by Bing+Tsher+E · · Score: 1

      NetBSD runs quite adequately on my Macintosh SE/30.

      Well, for some values of 'adequate.' Don't try to recompile the userland.

    7. Re:Ok, now what? by Doctor+Memory · · Score: 1

      Looks like I'm going to have to drag my Quadra 700 out of mothballs. Anybody know what the latest version of System 7 is? Just hope my 320MB external hard drive isn't full....

      Hey, anybody got a 56K modem I could borrow?

      --
      Just junk food for thought...
    8. Re:Ok, now what? by Stormwatch · · Score: 1

      Perhaps, as no one has mentioned them. Also, you realize that they still make POWER processors, right? They are high end stuff, competing with Xeon in the "big iron" market.

    9. Re:Ok, now what? by Skuld-Chan · · Score: 1
    10. Re:Ok, now what? by DontBeAMoran · · Score: 1

      IBM may still be making Power processors but I said "old PowerPC Macs", as in "Apple hasn't used PowerPC processors in a decade".

      Also, I haven't seen non-server computers use Power processors either. Then again I'm not looking for anything with the level of computing power of a Xeon so maybe they exist and I just don't know about it.

      --
      #DeleteFacebook
    11. Re:Ok, now what? by Stormwatch · · Score: 1

      Also, I haven't seen non-server computers use Power processors either.

      There is the Talos II workstation.

      Definitely not priced for mainstream consumers. But not too crazy when you look at Apple's prices!

  14. Reaction? by fluffernutter · · Score: 1

    It will be interesting to see how quickly corporations react to this. It could get expensive.

    --
    Laws are rules for the court, but merely a bottom bar to hit for life. Think beyond laws in your actions always.
    1. Re:Reaction? by wbr1 · · Score: 1

      The main expense may come from having to purchase hardware to accommodate for the performance loss inherent in the patch. If you are running a VM farm of some sort, and have provisioned for a certain amount of load or cycle availability for the VMs, a drop in performance could mean not meeting SLA for those VMS and a need for additional hardware to cover the load. This would be a budgetary burden to many.

      --
      Silence is a state of mime.
  15. Not Funny by Anonymous Coward · · Score: 0

    Google Project Zero

    Shouldn't that be Google Project Zero Dawn?

  16. Topic by Anonymous Coward · · Score: 0

    Shouldn't ever build the wrong thing.

  17. 486 by thegreatbob · · Score: 3, Funny

    Time to bust out my 486!

    --
    There is no XUL, only WebExtensions...
    1. Re:486 by Anonymous Coward · · Score: 0

      actually, I think you're better off with 386, as the 486 did have speculative execution.

    2. Re:486 by Anonymous Coward · · Score: 0

      Time to bust out my 6502 shirt.

    3. Re:486 by erice · · Score: 1

      Time to bust out my 486!

      Don't have to go back that far. Bonnelle and Saltflat (first and second generation) Atoms are strictly in-order. No speculative execution. Just move your server loads to clusters of 2nd generation eeepc's!

    4. Re: 486 by Anonymous Coward · · Score: 0

      Creimer affiliate spam mod down and report to Amazon.

    5. Re:486 by Anonymous Coward · · Score: 0

      But those Atoms are slower than a 486DX4. badum-tish

    6. Re:486 by Anonymous Coward · · Score: 0

      Well boy do I feel smug now as I write this comment on my trusty OLD Amiga with its 68k processor!! ;-)

      Take that Intell!!

    7. Re: 486 by Anonymous Coward · · Score: 0

      https://affiliate-program.amazon.com/home/contact

      That's the url for reporting it.

    8. Re:486 by TeknoHog · · Score: 1

      Don't have to go back that far. Bonnelle and Saltflat (first and second generation) Atoms are strictly in-order. No speculative execution. Just move your server loads to clusters of 2nd generation eeepc's!

      Yup, I continue to use my in-order Atom from about 2010. Not everything needs a ton of CPU power. It's a fanless Mini-DTX board. And before you ask, it's 64-bit, I did my homework.

      --
      Escher was the first MC and Giger invented the HR department.
    9. Re:486 by poofmeisterp · · Score: 1

      Time to bust out my 486!

      Let's see.. it's the 17th today. Has it finished booting yet? :)

      Had to. Just had to.

    10. Re:486 by thegreatbob · · Score: 1

      It's almost there! I think it's starting to draw the login prompt...

      --
      There is no XUL, only WebExtensions...
  18. Knowing back then what they know now... by Anonymous Coward · · Score: 0

    Shall we design a CPU with these potential security flaws in them?. Shall we add these features to our CPU's, maybe some powerful agencies with lots of government money in their pockets will like them!?

  19. Vulnerability comes down to race condition by JoeyRox · · Score: 4, Informative
    I read through Google's Meltdown paper (https://meltdownattack.com/meltdown.pdf). While there are several cumulative vulnerabilities that make this exploit possible, the most important of which is kernel address-space discovery via speculative data accesses which leave DCACHE lines in their wake, the root vulnerability of actually being able to read the contents of data comes down to an exception race condition. From the document:

    1 ; rcx = kernel address
    2 ; rbx = probe array
    3 retry:
    4 mov al, byte [rcx]
    5 shl rax, 0xc
    6 jz retry
    7 mov rbx, qword [rbx + rax]

    Listing 2: The core instruction sequence of Meltdown. An inaccessible kernel address is moved to a register, raising an exception. The subsequent instructions are already executed out of order before the exception is raised, leaking the content of the kernel address through the indirect memory access.
    ...
    When the uOPs finish their execution, they retire inorder, and, thus, their results are committed to the architectural state. During the retirement, any interrupts and exception that occurred during the execution of the instruction are handled. Thus, if the MOV instruction that loads the kernel address is retired, the exception is registered
    and the pipeline is flushed to eliminate all results of subsequent instructions which were executed out of order. However, there is a race condition between raising this exception and our attack step 2 which we describe below.

    And why AMD and ARM may not be vulnerable to Meltdown:

    6.4 Limitations on ARM and AMD
    We also tried to reproduce the Meltdown bug on several ARM and AMD CPUs. However, we did not manage to successfully leak kernel memory with the attack described in Section 5, neither on ARM nor on AMD. The reasons for this can be manifold. First of all, our implementation might simply be too slow and a more optimized version might succeed. For instance, a more shallow out-of-order execution pipeline could tip the race condition towards against the data leakage. Similarly, if the processor lacks certain features, e.g., no re-order buffer, our current implementation might not be able tol leak data. However, for both ARM and AMD, the toy example as described in Section 3 works reliably, indicating that out-of-order execution generally occurs and instructions past illegal memory accesses are also performed.

  20. Google says no such thing by nagora · · Score: 2

    Someone at Intel has spun BeepingComputer - Google said that nearly all CPUs MADE BY INTEL since 1995 are likely to be vulnerable. Way to rescue your stock price, man. Good work from msmash and /. for repeating the lie too.

    --
    "Encyclopedia" is to "Wikipedia" what "Library" is to "Some people at a bus stop"
    1. Re:Google says no such thing by Anonymous Coward · · Score: 0

      Yes, Intel have got a strong motive for muddying the waters here.

      Unless AMD are directly and blatantly lying about their processor design, using meltdown to access kernel memory is *not* possible because the relevant access check occurs *before* information is leaked.

      The big thing that Intel will try to obscure is that it is only their processors which need to be significantly slowed down to mitigate the more serious issue, and that any mitigations so far for the less-serious spectre have no significant performance impact.

      For any businesses about to buy Intel based boxes they should now re-evaluate their decision to see if AMD gives them a better price/performance point

      More specifically if you are about to buy Intel for any server with heavy network or disc access activity you really need to *STOP RIGHT NOW* and re-do your capacity planning (using the information from relevant benchmarks which are being rapidly produced. From what I've seen an I/O heavy application like a dataset could be hit by up to about 15% in a real-world but worst case scenario (thats for modern processors with PCID, older processors without PCID will be worse - but we can assume you're not buying them now).

    2. Re:Google says no such thing by Bing+Tsher+E · · Score: 1

      We's got an AMD dork eruption here. Batten down the hatches.

  21. Return Central by Anonymous Coward · · Score: 0

    So where are all the stories about how everyone who purchased a laptop or pc for Xmas will be returning them ASAP.

  22. Unpatchable bug granting access to any computer by CustomSolvers2 · · Score: 0

    Detailed description here. LOL.

    --
    Custom Solvers 2.0 = Alvaro Carballo Garcia = varocarbas.
  23. Fixed that for you! You're Welcome! by gerald.edward.butler · · Score: -1

    Perhaps we should entertain the possibility that the revelations of Edward Snowden scratch the fucking surface as to the deceptive power and control *that US corporations hold over the US government*.

    There, fixed that for you!

    1. Re:Fixed that for you! You're Welcome! by rogoshen1 · · Score: 1

      i think you really meant to say "...how thin the line is between the US government and multinationals that were once based in the US" ?

  24. That's what happens when you get in a hurry by Anonymous Coward · · Score: 0

    If I understand the write-ups, most or all of the bugs only happens during speculative-execution or similar "do it faster" scenarios.

    I wouldn't be surprised if GPUs and other non-CPU chips had similar vulnerabilities.

    A solution for future chips is to have a built-in "slow and safe" mode or even a separate plug-and-play-compatible chip that had speedups and for that matter all functions that hadn't undergone exhaustive testing disabled.

    Users who needed a higher guarantee of security in exchange for decreased performance could used the "slow and safe" approach.

    1. Re: That's what happens when you get in a hurry by Anonymous Coward · · Score: 0

      I have not seen any GPU having speculative execution. They execute branches in parallel with a totally different approach compared to the CPU and that causes performance degradation (called warp divergence). It doesn't seem like any GPU will implement speculative execution in the near future.

      There safe and slow chip you talked about already exists. It's called the Pentium 4.

    2. Re: That's what happens when you get in a hurry by Anonymous Coward · · Score: 0

      P4 is also affected. So are P3, P2 and PPro. You'd need a original Pentium or in-order Atom...

  25. Yeah, that would be funny! by gerald.edward.butler · · Score: -1

    Especially since Rust does not rely on runtime checks or tricks for its safety guarantees. It is verified "safe" by the compiler statically at compile time. If you weren't so interested in mocking "hipsters" and "millennials" and other bullshit like that and bothered educating yourself you wouldn't sound like such a douche-bag.

    1. Re:Yeah, that would be funny! by lgw · · Score: 1

      It is verified "safe" by the compiler statically at compile time.

      Static analysis is nice and all, but can only do so much. There are whole categories of problems that static analysis tools are blind to. For example: Spectre. Anything below the language layer, or any sufficiently clever runtime funny business won't be detected (Spectre is both).
       

      --
      Socialism: a lie told by totalitarians and believed by fools.
    2. Re:Yeah, that would be funny! by Lunix+Nutcase · · Score: 1

      Rust does have runtime checks. Where did you get this nonsense that it didn’t? How could a compiler do bounds checking for buffers allocated at runtime with an unknown-at-compile-time size?

    3. Re: Yeah, that would be funny! by Anonymous Coward · · Score: 0

      He's defending his pet language leave him alone.

      MongoDB is fast.

    4. Re:Yeah, that would be funny! by Lunix+Nutcase · · Score: 1

      It’s more simple than that. There’s no way a compiler could bounds check at compile-time a buffer allocated at runtime to read in data from an arbitrary-sized file. I’m pretty sure that would have a prerequisite of solving the halting problem.

    5. Re: Yeah, that would be funny! by Lunix+Nutcase · · Score: 1

      But he’s not even defending it in a way that makes sense. Not even the Rust developers claim there are no runtime checks.

      Subscripts start at zero, like in most programming languages, so the first name is names[0] and the second name is names[1]. The above example prints The second name is: Brian. If you try to use a subscript that is not in the array, you will get an error: array access is bounds-checked at run-time. Such errant access is the source of many bugs in other systems programming languages.

      Emphasis added.

      http://www.cs.brandeis.edu/~cs...

    6. Re:Yeah, that would be funny! by lgw · · Score: 1

      Sure it can, but you might not like it. If the static analysis doesn't find code that does the size check, the build fails. If it uses a file read API that doesn't accept a size bound, the build fails. You can do this for all the well-known vulnerabilities: if the tool can't prove the correct check exists, fail. It wouldn't be a fun environment to code in, but you could do it.

      --
      Socialism: a lie told by totalitarians and believed by fools.
    7. Re:Yeah, that would be funny! by Lunix+Nutcase · · Score: 1

      But that doesn’t happen and that’s why Rust has run-time bounds checking. There’s even multiple posts on the rust-lang mailing list about how to aboid the run-time checks. Gerald Butler, to be frank, was talking out of their ass.

    8. Re:Yeah, that would be funny! by lgw · · Score: 1

      Oh, yes, it's the obvious gap between Rust Hype and Rust. My only point was that a language could actually be pretty safe, but then it wouldn't get wide adoption, and it still wouldn't be perfect.

      --
      Socialism: a lie told by totalitarians and believed by fools.
    9. Re:Yeah, that would be funny! by Lunix+Nutcase · · Score: 1

      Sure. I think we both agree on that.

    10. Re:Yeah, that would be funny! by Anonymous Coward · · Score: 0

      Are you actually that retarded or do you play the part purely for fun?

  26. Security and Nation States by Anonymous Coward · · Score: 0

    Health records are being digitized and moved to the cloud.
    Local and state governments are moving mountains of data for easy access digitally.
    Federal government has plans to move to cloud providers.

    Nation states engage in espionage.
    Nation states engage in cyber attacks.

    What the mountain of citizen data being digitized and easily accessible mean? What recourse will be available for citizens if a government is "liable", both for lax security and for attacks? What of the banking systems (SWIFT)? Are nation states already at war (Israel, Saudi Arabia, Iran, Russia, China, Five Eyes). What of emerging state players (Catalonia)? It appears we are heading for a wary future. Privacy is a human necessity and right.

  27. Any word on how PCID helps mitigate? by SuperKendall · · Score: 1

    Reading through a variety of descriptions I understand the attack for Meltdown, but I'm seeing less of a discussion around how patches may work - in particular I read if your model of Intel processor supports PCID (Process-Context Identifiers) a fix may not impact performance as much, but I've not seen any description of why and would be interested to know how that helps.

    --
    "There is more worth loving than we have strength to love." - Brian Jay Stanley
  28. How does Javascript make illegal mem references? by Sloppy · · Score: 2

    One of the things I've seen flying around, is some people are saying this can be exploited in a web browser, thanks to Javascript JIT-compiling to machine code.

    I am pretty damn out of date on Javascript compilers, so I was hoping someone could explain how this is possible. Javascript doesn't have pointers. I'd think that if a Javascript programmer is capable of writing Javascript code that compiles in such a way that the programmer can create a pointer of their own making (perhaps pointing to kernel memory) and can cause code to dereference that pointer, we would all call that a severe and inexcusible compiler bug.

    I mean, even if there were no processor flaw at all, but the Javascript-compiled-to-x86 code could read arbitrary memory in its own browser process, that alone would be a severe web-user-killing nightmare. How is that not a compiler bug?

    Am I mistaken that a Javascript exploit is possible?

    --
    As copyright owner of this comment, I authorize everyone to defeat any technological measure which limits access to it.
  29. So how does one get infected? by Anonymous Coward · · Score: 0

    Non-tech person here. Can I get this simply by browsing the web, or does it need the user to run an executable?

    1. Re:So how does one get infected? by silverdirk · · Score: 1

      There is a researcher who knows how to feed your browser javascript that reads out the entire contents of your browser's memory. It might be even worse, but that's what one person has disclosed right now. We are at the mercy of browser manufacturers to mitigate this before North Korea learns how to do it.

      --
      Mark of the Coder fades from you. You perform Opening on World of Warcraft. Warcraft crits GPA for 4. GPA dies.
    2. Re:So how does one get infected? by Anonymous Coward · · Score: 0

      Well, that sucks. I do run Noscript, and I tend to not let my browser save passwords for anything really important. I hope it'll help.

  30. Re:How does Javascript make illegal mem references by CustomSolvers2 · · Score: 2

    Am I mistaken that a Javascript exploit is possible?

    The fact that a given programming language gives you more or less freedom regarding how to deal with the memory management aspects doesn't change the fact that the generated applications rely on memory. In any case all these bugs seem fairly theoretically and very difficult to be actually exploited. It seems more a matter of making sure that computers are 100% safe at their most basic level than actually avoiding imminent threats.

    --
    Custom Solvers 2.0 = Alvaro Carballo Garcia = varocarbas.
  31. arm32 versus AArch64 by emil · · Score: 3, Informative

    32-bit ARM may be safer, because speculative execution is much, much more difficult there.

    The program counter is a visible register that can be manipulated by any opcode - an explicit JUMP or BRANCH is not necessary. This makes branch prediction mostly impossible.

    Most opcodes are conditional. This dependency between adjacent instructions is also a huge obstacle for speculative execution.

    32-bit ARM is mostly in-order for these reasons.

    https://www.jwhitham.org/2016/02/risc-instruction-sets-i-have-known-and.html

    Design errors, like having r15 as the program counter or making every instruction conditional, are problems for CPU architects rather than programmers, and it's no surprise that they disappeared in the 64-bit version of the ARM architecture. They must have made it awfully hard to implement superscalar, out-of-order execution.

    1. Re:arm32 versus AArch64 by tlhIngan · · Score: 3, Informative

      32-bit ARM may be safer, because speculative execution is much, much more difficult there.

      The program counter is a visible register that can be manipulated by any opcode - an explicit JUMP or BRANCH is not necessary. This makes branch prediction mostly impossible.

      Most opcodes are conditional. This dependency between adjacent instructions is also a huge obstacle for speculative execution.

      32-bit ARM is mostly in-order for these reasons.

      :

      This attack is a side effect of out-of-order execution. This did not happen to ARM until the Cortex A8 line of processors (Cortex A7 was still in-order). Not to be confused with ARMv7/ARMv8, since Cortex A7 and A8 implement ARMv7.

      And yes, even in 64-bit ARM PC is a user-visible register - AArch32 and AArch64 are very similar to each other down to instruction coding, too. The only big thing AArch64 eliminates is conditional execution which ARM found with the Cortex A8 to interfere with superscalar execution. But just because it's harder to speculatively execute doesn't mean it's impossible. It just means you execute the instruction and then evaluate the condition later - if the condition turns out to be false, you retire the instruction without posting the effects to the architectural registers. If the instruction is true, you retire it normally. Either way, you consume the same time (an instruction not executed conditionally on ARM is considered a NOP and only wastes processor time. This fact alone makes it worthwhile to execute all conditional instructions and retire them when the end result of the condition is known - you're using up time anyhow).

      Also, I'm sure the Cortex A8 notes which instructions potentially could adjust the PC (the register field of every instruction is well defined, so it's trivial to examine it and determine if it's the PC. In fact, a JMP is syntactic sugar for a MOV, as is RET. They are internally MOV instructions (you'll note that every function ends with "mov pc,lr", which moves the link register (old PC before call) to the PC, thus returning.

      Modern thumb interworking though uses "blx" which is branch-to-link-and-exchange because you need to load both the LR and the old CPSR register (which controls the THUMB state), so you return back to the right mode and is the only way if you're mixing ARM and THUMB instructions together (aka interworking).

    2. Re:arm32 versus AArch64 by emil · · Score: 1

      Very interesting. Thank you for the information.

    3. Re:arm32 versus AArch64 by jrumney · · Score: 1

      This did not happen to ARM until the Cortex A8 line of processors (Cortex A7 was still in-order)

      Are you sure about this history? The Cortex A7 is a cut down A15 that was released well after the A8. A8 followed after the ARM11 chronologically and in terms of processor evolution. Or are you mixing the Cortex A series up with the architecture (ARMv7 = Cortex A8/A9/A5/A15/A7/A12/A17, ARMv8= 64 bit and Cortex A32)

  32. Itanium is immune! by Anonymous Coward · · Score: 0

    It's time for Itanium to rise again!

  33. So who do I short? by 140Mandak262Jamuna · · Score: 1

    Amazon cloud services, Google, Azure are players in the cloud where multiple users share the same unknown processor. Would they be affected? Would they have to stop provisioning virtual machines for different users on the same physical sever? Would it increase their costs and reduce profit margin? Or would it reduce their attractiveness and people would use less cloud services?

    --
    sed -e 's/Chuck Norris/Rajnikant/g' joke > fact
  34. Ryzen Meltdown fix Exclusion? by Anonymous Coward · · Score: 0

    Regarding Meltdown, specifically, since the known fix requires flushing the Translation Lookaside Buffer twice as often:
    Does anyone know if Microsoft will exclude AMD systems from the Privileged Address Space unmapping workaround? It seems silly to neuter AMD systems unnecessarily just to fix it on Intel systems.

  35. This by Anonymous Coward · · Score: 0

    But of course the useless editors insist on being useless and the fanbois score you down for daring to ask for what should be obvious.

  36. Re:How does Javascript make illegal mem references by silverdirk · · Score: 1

    Just read the Spectre paper.

    The attacker allocates an array and reads it to ensure that all processor cache has been overwritten. Then, they feed a crafted input to some service which they know has a certain pattern of machine instructions handling their input. That combination of machine instructions will touch specific rows of cache. Then the javascript reads back over their own array and times the access, seeing which rows of cache were evicted. As a result, they now know one byte of the target's memory. Then they repeat the attack to target the next byte.

    The paper says they actually did implement the Javascript attack against it's host browser. I think (though others say not) that it could target other processes on the computer as long as it knows the exact machine instructions of that service and is able to talk to that service (which javascript generally isn't)

    --
    Mark of the Coder fades from you. You perform Opening on World of Warcraft. Warcraft crits GPA for 4. GPA dies.
  37. Re:How does Javascript make illegal mem references by Anonymous Coward · · Score: 0

    The trick is that boundary checks are performed during runtime. When you try to access outside of array, JIT generated code will catch it and return error. But if bound check needs DRAM fetch, up to 100 ticks will be executed speculatively, keeping trace in cache (and jump prediction tables).

  38. Re:How does Javascript make illegal mem references by Anonymous Coward · · Score: 0

    Meltdown is trivial and in the wild, which is why everyone is hopping.

  39. Meltdown and spectre are not the same things by WaffleMonster · · Score: 1

    There seems to be a concerted PR effort to shine spotlight on everything rather than just Intel where it belongs.

    Meltdown is basically heartbleed. This is NOT a side-channel attack. It allows an attacker to trick the processor to flat out be handed the value of memory address the attacker should never be able to access. The only linkage between it and spectre is incidental exploitation of speculative execution.

    Spectre is exclusively a "side-channel" attack. To continue TLS analogy it's like using an AES cipher suite without AES blinding. Numerous side channels have existed in Intel and other processors. The use of branch predictors as a side channel specifically as a vector for compromising security has been known publically for at least a dozen years.

  40. Re:How does Javascript make illegal mem references by Anonymous Coward · · Score: 0

    I was wondering the same. Everything I've seen seems to involve a side channel attach which requires use of actual ASM compiled into your program. It's bad, don't get me wrong, but it appears that one would need to run code locally on the machine at a user level. I haven't seen anything that would make me think that a drive by attack through a web browser could actually be performed. This would more be in the world of trojans, worms and other more traditional pieces of malware. Not drive by attacks.

  41. Re:How does Javascript make illegal mem references by sl3xd · · Score: 1

    In any case all these bugs seem fairly theoretically and very difficult to be actually exploited.

    The Spectre paper documents a proof of concept in five lines of JavaScript code that works on Google's V8 JavaScript engine (ie. Google Chrome).

    That doesn't appear to be merely theoretical.

    --
    -- Sometimes you have to turn the lights off in order to see.
  42. Wach zionist slashdot SPIN for Intel by Anonymous Coward · · Score: 0

    The PROBLEM...
    All Intel CPUs, BY DESIGN, give user code ring-0 access. This is the greatest and worst flaw a modern CPU can have, but is essential to allow the NSA and GCHQ to craft perfect trojan code exploits.

    AMD CPUs do NOT allow user code ring-0 access by design. A fundamental hardware architecture DIFFERENCE between AMD and Intel. To 'patch' Intel's NSA back-door (partially), the kernel of all OSs must be patched is such a way, memory management and IO functions are slowed to an extreme degree, by constant state reset and flushing. An extreme solution to an extreme hardware flaw in Intel chips ONLY.

    A far lesser flaw exists in ARM cores, but the patch that fixes it is performance FREE is common ARM use cases.

    Zionist trolls are busy conflating this flaw with other bugs- because both Intel and AMD have thousands of CPU errata commonly fixed with trivial, perfomance free patches. Google, another NSA company (like Facebook) is assisting Intel by pushing SPECTRE- a theoretical vector of attack with only INTEL real code attack examples. Spectre hardly affects AMD, and where it does is trivially patched like all the other issues commonly found in Intel and AMD parts.

    MELTDOWN is the ONLY issue of significance, and that is wholly a disaster for any computer using Intel. And Intel can't even have a fixed design til late 2019 at the very EARLIEST.

  43. Side effects. by DrYak · · Score: 1

    Side effects are something that is to be expected.

    In case of spectre, speculative execution is happening as it shoudl, everything is having the correct behaviour.
    There's no *formally wrong* behaviour to be patched in the CPU or in microcode.
    There's nothing that should be patched in the CPU, the CPU works as intended, it just happens that this "as intended" produce a couple of side effects that where not noticed until recently.

    It's just that researcher have noticed "yet another thing that can be timed" and thus a new side-channel that can be used to leak information.
    The only novelty is it's built around a different CPU feature than other timing attacks.
    It's still your gandpa's classical timing attack, only wearing a new fancy hat.

    The main problem is that arbitrary externaly supplied code and sensitive data should never co-exist in the same process in the first place.
    It's just problems waiting to happen.
    (Seriously eBPF ? User supplied byte-code JITed in-kernel ? What could possibly go wrong ? there's a reason why that setting is non-standard)

    Affected browsers (lots of them !) have basically a flawed design (running JITed Javascript code in the same context as some sensitive information reside). It just happens the spectre was the exploit that happen to reveal the flaw. But basically, it was just a problem waiting to happen.

    IT NEEDS to be handled in the software anyway
    (even if the CPU could suddenly stop doing speculative execution, e.g.: you switch to an Atom processor, there could still be yet another different exploit 2 months down the line that finds another way for Javascript to access all the information that reside in the process. Remove the sensitive data out of the process and you've fixed the software forever, no matter what exploits come here... well as long as the CPU respects memory protection, which is an entirely different level of wrong. Meltdown's level of wrong).

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
    1. Re: Side effects. by Anonymous Coward · · Score: 0

      Meltdown has no fix and is the equivalent of being able to see through a window if you are standing.

      Specter is when someone in the guest bath can make a copy of your security cameras. Only Intel's x86/x64 is vulnerable to this, not AMD.

      Intel shills are conflating the two to make people think AMD isn't a better option because of this. Ryzen was already a better option and they don't want it snowballing.

  44. Almost All ARMs by Anonymous Coward · · Score: 0

    Processors with mainframe security in mind (SPARC, IBM S390, PowerPC, POWER) have been fine for a long time. ARM is kind of the unknown here impact wise.

  45. Spectre vulnerability vs. bad design by DrYak · · Score: 2

    If the defect is in the microcode and they patch it in software, isn't it still vulnerable?

    The defect that is happening, is that (by careful timing of cache) it's possible to see information to which the process has full access anyway.

    The stupidity of some browsers is to store sensitive information in the same process as where the remotely provided javascript is JITed and executed, relying on "well, we do array boundary checks before reading them, so we should be safe from buffer overflows" for security.

    Spectre works in a few corner cases because there are situation where software has full access to it's own data, but doesn't actually want to access any arbitrary data : mainly, it wants the Javascript to only read the data inside its array, and not outside were some sensitive information would be stored.

    Which would fix ?
    The blunder which gives access to already accessible data ?
    The stupid software which keeps sensitive data and arbitrary code within reach of each other.

    The first only works in a few key cases.
    The second is a problem waiting to happen. If it's not Spectre today, it might be a completely different exploit tomorrow.

    Doesn't seem like it would be difficult to undo or work around the software patch to access the original defective microcode.

    The quick'n'dirty software correction would be :
    - disabled JIT, so the arbirary code doesn't generate a thigh compact group of machine instruction that can all fit inside the CPU pipeline.
    That's going to be order of magnitude more difficult to circumvent, at the cost of performance hit specific to the formelly JIT-ed code.
    (But you still have a broken software that is going to get b0rken by the next coming exploit).

    The formally correct software correction would be:
    - keep the sensitive data and arbitrary code separate from each other. Thus even if a different exploit happens to your system, it would still not be able to access the sensitive data. You've fixed the problem forever.

    The microcode/CPU correction would be :
    - completely disable speculative execution, meaning a performance hit whenever there's a conditionnal jump in the code (basically everywhere).
    You computer now runs like shit, and you still have broken-by-design software sitting waiting for the next exploit.

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
    1. Re:Spectre vulnerability vs. bad design by Darinbob · · Score: 1

      I predict a boost in number of people using Noscript and similar plugins. Sometimes being paranoid is not a sign of being crazy, but a feature of being a realist.

    2. Re: Spectre vulnerability vs. bad design by Anonymous Coward · · Score: 0

      Until someone hacks NoScript

  46. Blame the OS Makers too. Self-inflicted wound. by mileshigh · · Score: 1

    Mapping kernel memory into userland is just an insecure software performance hack that was waiting to bite. It just did. Again! I'm referring to Meltdown--not Spectre--but that's a big reason for the immediacy of this problem.

    PTKI, the "workaround" to Meltdown, is actually a commonsense security hardening measure that OS makers should have aggressively rolled out long ago. That goes double for processes hosting dangerous processes like web browsers. And, PTKI heads off many threats we don't even know about yet.

    Instead,we've been wishfully tiptoeing around PTKI (e.g. kernel ASLR, etc.) hoping to avoid it. Yes, there's a performance hit but it's greatly mitigated by PCID (i.e. ~29% greater syscall overhead on Intel) which has been available since 2013. But, we've just been putting it off for another day.

    Now, at least on Windows and MacOS we're going to get stuck with a rush job implementation that will kill performance in many cases. Hopefully this will work out in time as future versions of OSs get optimized, e.g. bypass PTKI for certain low-risk, high syscall frequency processes like the cores of DB managers.

  47. Scale of the attacks. by DrYak · · Score: 3, Insightful

    Meltdown uses out-of-order execution and a side channel attack that is unique to Intel. Spectre uses speculative execution and is more generalized, with tested proof-of-concept attack code on AMD and ARM.

    On the other hand, Spectre only enables access to data to which the process had access to begin with. (Meh...)
    Only a very small subset of software can actually be usefully abused, mostly due to bad software design :

    - Google's demo relied on a non standard setting that turns on a JIT engine that runs user-provide arbitrary byte-code in-kernel (common, in-kernel ? What could possibly go wrong ! Seriously, there's a reason why this setting is non-standard).

    - There are browser with bad designs that manage to keep sensitive data in the same context as remotely-provided Javascript code.
    In other words, a problem waiting to happen. Spectre just happens to be the exploit which bit them now, but any other completely different exploit could have come in a couple of months and done similar damage.

    Yup, it's bad that speculative execution may lead to some side effect, but it's working as intended.
    It's the software which is stupid (or dangerous options turned on, as in the kernel) and should be fixed before another problems comes again.

    ---

    Whereas Meltdown is an entire different level of worrying.

    On Intel CPU, access rights are checked way to late, by that time speculative execution has had time to do stuff which can also be timed.
    Other CPU (like AMD's) work much more sanely, doing the check first and not progressing anything. It cost a tiny bit of performance, but is more formally correct and ends up protecting against such problems.

    That means that on Intel CPUs the whole set of guarantee that memory protection is supposed to give don't hold true any more.
    It's the whole memory protection scheme flying out of the window.

    On Intel CPUs memory protection has stoped working as it should.
    The software is correct on relying on memory protection for security, it's Intel's protection that suddenly doesn't work anymore.
    No matter if you write correct software.

    On any other CPU protection works as it should, and non-stupid software is safe.

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
    1. Re:Scale of the attacks. by Marxist+Hacker+42 · · Score: 1

      "On Intel CPUs memory protection has stopped working as it should."

      Working as it should, or as we wanted it to? It's actually still working as it SHOULD, but not as the documentation describes.

      I see no really good reason for software to rely upon hardware level memory protection for security. Correct software to me, does not rely on hardware level memory management, which changes from manufacturer to manufacturer.

      --
      SJW: a person who perceives an injustice, and while correcting it, commits a greater injustice.
  48. Re:How does Javascript make illegal mem references by CustomSolvers2 · · Score: 1
    Here you have a quote of the page 5 in the linked paper:

    Consider the case where the code in Listing 1 is part of a function (such as a kernel syscall or cryptographic library) that receives an unsigned integer x from an untrusted source.

    Please, tell me a real-life situation where receiving an "unsigned integer from an untrusted source" is common and/or doesn't provoke many other problems (e.g., given program most likely crashing with wrong values), but this is just the start. Let's continue reading...

    The process running the code has access to an array of unsigned bytes array1 of size array1 size, and a second byte array array2 of size 64KB.
    if (x y = array2[array1[x] * 256];
    The code fragment begins with a bounds check on x which is essential for security.
    [...]
    When the compiled code above runs, the processor begins by comparing the malicious value of x against array1 size. Reading array1 size results in a cache miss, and the processor faces a substantial delay until its value is available from DRAM. During this wait, the branch predictor assumes the if will be true, and the speculative execution logic adds x to the base address of array1 and requests the data at the resulting address from the memory subsystem. This read is a cache hit, and quickly returns the value of the secret byte k. The specu-lative execution logic then uses k to compute the address of array2[k * 256], then sends a request to read this address from memory (resulting in another cache miss). While the read from array2 is pending, the value of array1 size finally arrives from DRAM. The proces-sor realizes that its speculative execution was erroneous, and rewinds its register state. However, on actual proces-sors, the speculative read from array2 affects the cache state in an address-specific manner, where the address depends on k. etc.

    Have you got the idea? Basically, they expect that, under extremely specific conditions, failing to check the boundaries of an array provokes a malicious execution (rather than the way much more likely crash of the program). This is what I meant with theoretical: extremely difficult to happen unless under theoretical/prepared conditions and even much more difficult to provoke a truly malign output. I am not saying that they shouldn't fix it, just that exploiting problems of this kind is extremely difficult.

    --
    Custom Solvers 2.0 = Alvaro Carballo Garcia = varocarbas.
  49. Spectre is not a bug, but a weird characteric by DrYak · · Score: 1

    Spectre is not the same thing. Multiple processor bugs were revealed.

    Spectre is not a bug.
    It's not suddenly accessing something which should not be accessed in the first place. It's not breaking memory protection, only giving data that the process can already read.

    Speculative execution is still working as it should.
    It just happens to have a side effect that got noticed now, and got used in timing attacks. (Just like any other timing attack).

    But the CPU is still working as intended, it's not a bug.

    Only badly designed software that keeps that doesn't properly isolates sensitive data and remotely provided arbitrary code that can be abused (some browser, some non-standard Linux kernel settings that are non-standard for a reason).

    ---

    (This is completely different from Meltdown, where suddenly memory protection doesn't work any more. The process access things it was never supposed to access in the first place).

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
    1. Re:Spectre is not a bug, but a weird characteric by NicknameUnavailable · · Score: 1

      This is incorrect. It is a hardware architecture issue which cannot be patched with software. Spectre is here to stay until we replace all the chips.

    2. Re:Spectre is not a bug, but a weird characteric by bongey · · Score: 1

      Says the Intel shill. Intel processors Speculative execution is NOT working correctly because it can LEAK protected Kernel mode data.

  50. Re:How does Javascript make illegal mem references by CustomSolvers2 · · Score: 1

    I meant "if (x < array1_size) y = array2[array1[x] * 256];" rather than "if (x y = array2[array1[x] * 256];".

    --
    Custom Solvers 2.0 = Alvaro Carballo Garcia = varocarbas.
  51. I'm not even surprised-karma by Anonymous Coward · · Score: 0

    Well a lot of Intel fanboys were rubbing everyone's face in how fast their choices were so it's kind of karmic in the way their shortcut backfired.

  52. Re:How does Javascript make illegal mem references by CustomSolvers2 · · Score: 1

    Meltdown is trivial

    Seriously? Care to share a link or something? Spectre seems quite tricky, take a look at my comment down this thread.

    --
    Custom Solvers 2.0 = Alvaro Carballo Garcia = varocarbas.
  53. Spectre vs badly designed software by DrYak · · Score: 1

    On the other hand, Spectre only leaks information to which the process had access to begin with.
    The CPU is still working as intended.

    It's only badly designed software which as affected (keeping sensitive information in the same context where arbitrary code can be executed. ie.: Browsers that keep password in the same context as where the Javascript is executed, or a special non-standard linux kernel settings that enables an in-kernel JIT engine for the bytecode used by packet filtering - there's an obvious reason why this setting is non-standard !)

    But basically Spectre doesn't open new access to restricted data.

    Affected software should be fixed any way (i.e.: try to keep JITed arbitrary code away from sensitive data), because if not Spectre today, another different exploit coming this year could end up being just as bad. Sensitive data should just be kept away from arbitrary code execution, no matter what.

    ---

    Whereas with Meltdown it's suddenly memory protection not working anymore as intented on Intel CPUs (they do the access rights too late, way after other side effects had time to happen), it's the CPU which is doing things wrong.
    AMD isn't affected, because they did things formally correctly - mainly doing the access rights check at the beginning of the pipeline.

    It's not that trivial to fix "in the wild": because of meltdown you just can't rely on memory protection anymore (the kernel isn't sage from user-land software anymore), the only possible fix are performance killer (at end of each call, the kernel must flush itself out of the space accessible by the user-land process).

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
    1. Re: Spectre vs badly designed software by Anonymous Coward · · Score: 0

      Which is why the weakness of spectre is so insidious: How do you know if software is well designed?

      It took roughly two decades to figure out meltdown and spectre existed, even with amazing engineers who had intimate knowledge of the hardware.

      Saying that spectre is a problem for poorly designed software is really of no comfort at all.

  54. Spectre by DrYak · · Score: 2

    Technically, Spectre only reveals data to which the process had already access to begin with.

    In the Google demo, it works because all in-kernel code (here: JIT-ed bytecode) has access to in-kernel data.
    There's a reason why the option is non-standard.

    In the few affected browser, it works because said browsers were stupid enough to keep sensitive data (passwords ?) in the same process as where remotely provided Javascript code is JITed and executed.
    (I.e.: stupid design that should be fixed anyway. If not Spectre today, there's sure to be another exploitable flaw discovered before the end of this year which could also be leaking sensitive data. Always keep your sensitive data and arbitrary code execution segregated).

    But correctly designed software should be unaffected.

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
    1. Re:Spectre by JesseMcDonald · · Score: 1

      Technically, Spectre only reveals data to which the process had already access to begin with.

      The "process", perhaps, but not the attacker. To say that "correctly designed software should be unaffected" is disingenuous. Until this vulnerability was announced, that software was considered correctly designed. It did not permit arbitrary code execution; the inputs were sanitized and verified to be safe. The flaw is not the software design but rather the hardware, which ignored those security checks for the sake of speculative execution, then allowed the results—which should not have been observable by anyone, since according to the system architecture the code was never executed—to be exfiltrated through a side-channel.

      Do not make the mistake of assuming that this is limited to scripting languages, JIT engines, and VMs. That would be sufficiently catastrophic by itself, of course, but any program which processes input from untrusted sources (i.e. any program where security is a factor) is potentially vulnerable. The attacker doesn't need access to a general-purpose programming language, just the right sequence of perfectly normal and harmless-looking instructions. More direct control makes it easier to exploit the flaw, but that does not imply that other, more limited programs are immune.

      In the Google demo, it works because all in-kernel code (here: JIT-ed bytecode) has access to in-kernel data.

      JIT is not required, at least on Intel Haswell Xeon CPUs:

      During the course of our research, we developed the following proofs of concept (PoCs): ... 2. A PoC for variant 1 [Spectre] that, when running with normal user privileges under a modern Linux kernel with a distro-standard config, can perform arbitrary reads in a 4GiB range in kernel virtual memory on the Intel Haswell Xeon CPU. If the kernel's BPF JIT is enabled (non-default configuration), it also works on the AMD PRO CPU.

      This particular PoC exploit requires JIT to work on the AMD PRO. On the Intel Haswell Xeon, the eBPF bytecode interpreter was sufficient. With enough effort, determined attackers could uncover a vulnerable code sequence in a standard distro kernel which does not depend on eBPF at all.

      --
      "The state is that great fiction by which everyone tries to live at the expense of everyone else." - Bastiat
  55. Intentions by DrYak · · Score: 1

    Spectre cannot be considered intentional tampering.
    It's still speculative execution working as it should.
    Only now has someone though of a way to exploit its (normal) side-effects.

    But it only leaks data to which the process already had access to begin with.
    Meaning that only a very tiny sub-category of software are affected, mainly software which run arbitrary code in the same context where sensitive data is stored (which is a very bad design flaw).

    Google demo relies on a (for a reason) non-standard linux kernel settings, that allows user-provided arbitrary JIT-ed bytecode to be run in-kernel, that can then in turn leak in-kernel data.
    And there are a few affected browser, that keep sensitive data in the same process where remotely provided Javascript is JITed and executed.

    In other words : it's still a CPU working as it should, and only a tiny range of (badly designed) software affected : probably not intentionnal.

    ----

    Meltdown is much more horrible (it's basically memory protection not working as it should. CPU doesn't work any more as supposed).

    But given that Intel has done it for some tiny performance improvement (checking access rights late in the instruction pipeline is cheaper than checking it outright in the beginning as all other CPUs are doing), okkam razzor would tend to make us believe that Intel jumped at the opportunity to shave off a tiny bit of performance as they usually do, instead of some dark cloak conspiracy.

    I'm not saying that government-sponsored spying doesn't exist, just that there's absolutely zero need to force Intel to jump onto some performance shaving trick that ends up being dangerous.

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
  56. This is why homogenization is bad by u19925 · · Score: 1

    We threw away Dec Alpha, MIPS, Itanium and have almost abandoned Power and Sparc. If everyone on earth shares single gene, then it takes only one virus to wipe out large population.

    1. Re:This is why homogenization is bad by TeknoHog · · Score: 1

      Well, we still have AMD processors that do proper checking on their speculative fetch. Intel has valued speed over security, and this is what we get.

      --
      Escher was the first MC and Giger invented the HR department.
    2. Re:This is why homogenization is bad by sl3xd · · Score: 1

      MIPS isn't quite dead - and its grandson, RISC-V, is starting to get traction (with NVIDIA adopting it, among others), and has nacent support in the Linux Kernel.

      But what's one new architecture compared to the 3 or 4 that will have died in the same period of time?

      --
      -- Sometimes you have to turn the lights off in order to see.
  57. Spectre : Nope. by DrYak · · Score: 1

    Spectre breaks the isolation between different applications. It allows an attacker to trick error-free programs, which follow best practices, into leaking their secrets.

    No. Nope.
    nononono.
    not at all.

    Spectre relies on speculative execution starting to handle instruction past some software check (ie.: array boundary check and then array access) and some side-effect leaking information (e.g.: loading things into cache).
    You could only consider these programs as "following best practice" only by interpreting it as "do boundary check to avoid buffer over-runs". Nothing more.

    Still it's only leaking information to which the process HAD ACCESS to begin with.
    Which means that only a tiny subset of programs are susceptible.
    More precisely the subset of programs which are stupid enough to keep the sensitive data in the same context where arbitrary code get executed.

    i.e.: the Google Project Zero worked by turning on a special option in linux that allows user-provided (!) byte-code to get JIT-ed and executed in-kernel, which then in turn obviously has access to in-kernel data.

    i.e.: there are affected browsers which keep sensitive data in the same context where they JIT and execute remotely provided Javascript (something which has "what could possibly go wrong" written all over it).

    At least on Linux speculative execution cannot be used to access data *across* processes, because each process has its own address space.
    i.e.: There's no virtual memory address that you can point your CPU to that contain data coming from a different process (unless it was intentionally shared across processes).

    On the other hand, each process has the kernel mapped in its address space (though each process might get a different random mapping, thanks to things like KASLR), because it needs to call into it for system call (e.g.: call the filesystem to read a file).
    That kernel memory is shielded from userland interference by memory protection (the process isn't allowed to read/write in the kernel space).
    But due to the way Intel CPU specifically handle memory protection (in case of speculative execution, the access rights check is done too late, and some measurable side effects, such as bringing things into cache, might have happened already), on Intel CPU Meltdown manages to get around memory protection and leak kernel stuff into userland.

    In fact, the safety checks of said best practices actually increase the attack surface and may make applications more susceptible to Spectre.

    Given that Spectre is about things downstream form a safety check being in the pipeline before the check fails, you could say that in a stretch....

    Spectre is harder to exploit than Meltdown {..} However, it is possible to prevent specific known exploits based on Spectre through software patches

    Well given that Spectre is about leaking stuff to which the process has read-access anyway, it hard to exploit because it requires finding software with the right mix of bad design (mainly sensitive data and arbitrary code execution in the same process).
    On the other hand, it's possible to just NOT design software in such "what could possibly go wrong ?" way.

    but it is also harder to mitigate

    Well, given that it's just speculative execution working as it should...

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
    1. Re:Spectre : Nope. by complete+loony · · Score: 1

      Sigh, did anyone actually read the spectre paper;

      Exploiting Indirect Branches. Drawing from return oriented programming (ROP) [33], in this method the attacker chooses a gadget from the address space of the victim and influences the victim to execute the gadget speculatively. Unlike ROP, the attacker does not rely on a vulnerability in the victim code. Instead, the attacker trains the Branch Target Buffer (BTB) to mispredict a branch from an indirect branch instruction to the address of the gadget, resulting in a speculative execution of the gadget. ...

      The bit about execution beyond software checks is explaining a specific detail about memory side effects. The above section builds on that concept to show that you can induce these memory side effects by tricking the branch predictor to execute existing code in an unexpected way.

      --
      09F91102 no, 455FE104 nope, F190A1E8 uh-uh, 7A5F8A09 that's not it, C87294CE no. Ah! 452F6E403CDF10714E41DFAA257D313F.
  58. Spectre and Rust by DrYak · · Score: 1

    Yup exactly.

    Spectre is basically a big slap in the face of all the "rust-trolls" that come out screaming for array boundary checks whenever there's a buffer overflow happening.

    Speculative execution is going to start processing the instruction past the boundary check and some measurable things like loading pages into cache are going to happen anyway, even if the CPU decides to throw away any computation because it realises that the check fails and any subsequent writes dependent on it should not get executed.

    That's how its exploited with JavaScript, even if that language doesn't even have arbitrary pointers to begin with.

    But on the other hand, Spectre doesnt leak any data to which the process didn't have access to begin with.

    So it's only useful for a small subset of targets (e.g.: stupid browsers that keep sensitivie data in the same process as where remotely provided Javascript is JITed and executed), where the software counts exclusively on boundary checks to make sure nothing bad happens, but the user can send specially crafted code (Javascript in that example) that will use Spectre to deduce what data lies in the same process beyond the boundary.

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
  59. Runtime checks by DrYak · · Score: 1

    These runtime checks is exactly what Spectre is trying to circumvent :
    due to speculative execution, some instruction after the check might start to get processed, and by the time the check fails, even if the CPU throws the work away and doesn't actually write anything into memory, some measurable side effect could have happened already (like fetching a page into cache).

    So it could definitely be doable in Rust (it's even proven in JIT-ed Javascript).

    But it doesn't leak anything that the current process didn't already have access to (so actual real-world useful exploit are limited to badly designed software, or dangerous kernel options, that keep sensitive data in the same process as arbitrary code).

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
  60. NoScript by DrYak · · Score: 1

    Well given that even Mozilla didn't manage to break by switching from XUL to WebExtensions~~

    (obviously I'm joking)

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
  61. Looks like "drive by attacks" ARE possible by Sloppy · · Score: 2

    (BTW, thanks to the people who suggested I read the Spectre paper.)

    I haven't seen anything that would make me think that a drive by attack through a web browser could actually be performed.

    One of the things that makes Spectre so interesting, is that we're wrong!

    Long story short, is that though Javascript doesn't have pointers, it can have an array of bytes. And the compilers are amazing and apparently do a really great job of turning the Javascript into machine language.

    So the Javascript basically asks for somearray[i], where i is totally out of bounds but nevertheless does correspond to some memory location that would be used, if we weren't checking array bounds. Of course, array bounds are checked, but by the time they're checked, the conditional execution has already read and used somearray[i] to touch something else. Though somearray[i] is never directly exposed, its value can be later inferred by checking to see what memory page got loaded into the cache.

    Fuck. Now I see why everyone is freaking out.

    If I were in charge of the Internet (heh) I'd say let's just remove all of Javascript's ability to interface with the clock, so that you can't ever figure out what was in cache vs what wasn't. No, let's not kid ourselves: my imperial directive as God of the Internet would be that web browsers should no longer ever execute any code of any kind from web pages. (Gee, I could have told myself that 20 years ago, and I probably did but I eventually had to come to accept that Javascript on the web ain't going away, no matter how much we all hate it.) You just can't sandbox things good enough.

    Oh, fuckfuckfuck.

    --
    As copyright owner of this comment, I authorize everyone to defeat any technological measure which limits access to it.
    1. Re:Looks like "drive by attacks" ARE possible by drinkypoo · · Score: 1

      If I were in charge of the Internet (heh) I'd say let's just remove all of Javascript's ability to interface with the clock, so that you can't ever figure out what was in cache vs what wasn't.

      It's interesting you mention that, since increasing clock granularity is an effective solution to SPECTRE attacks via the browser, and it was already done by Pale Moon back in October of 2016 to mitigate the threat of "hardware-timing based attacks and fingerprinting". Between my AMD FX processor and my Pale Moon browser, I'm feeling relatively smug here.

      --
      "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"
    2. Re:Looks like "drive by attacks" ARE possible by Anonymous Coward · · Score: 0

      I do not hate javascript. I hate Java.

  62. Google will enter CPU hardware market by Anonymous Coward · · Score: 0

    Why else would they even bother to research, let alone publish this kind of inner workings of a processor?

  63. Re:How does Javascript make illegal mem references by markjhood2003 · · Score: 1
    It would not be possible if your Javascript code ran exactly as you intended it to run. But the crux of the issue, from the Spectre paper, is this:

    Software isolation techniques are extremely widely deployed under a variety of names, including sandboxing, process separation, containerization, memory safety, proof-carrying code. A fundamental security assumption underpinning all of these is that the CPU will faithfully execute software, including its safety checks. Speculative execution unfortunately violates this assumption in ways that allow adversaries to violate the secrecy (but not integrity) of memory and register contents.

    (Emphasis mine).

  64. Android, ChromeOS versions? by Anonymous Coward · · Score: 0

    So...if Google has known this for awhile, and they've patched their systems (Android, ChromeOS), which versions were patched and when?

    On Android, there are many people locked in on their versions of OS, whether it be KitKat, Lollipop, Marshmallow, Nougat. Some people run custom variants since they rooted their devices or their hardware manufacturer is defunct or no longer provides updates, using products like Cynogen and LineageOS. Most of them are rolled from the latest Google update, but I haven't seen a table or listing saying when (and if) Google updated the earlier versions, so people can track what they have or if they are running patched already (whether official or derived).

    Intel Atom Z processors are hit by Meltdown and most definitely are used in Android tablets. Even ARM was commonly used in Android devices as well, and some of those are affected by the Meltdown variant (that's supposedly impossibly to exploit, unlike the original; ARM seems to call that variant 3a, variant 3 (no letter) being Meltdown).

  65. Thios one is CPU specific by DrYak · · Score: 2

    Sigh, did anyone actually read the spectre paper;

    Exploiting Indirect Branches.

    The bit about execution beyond software checks is explaining a specific detail about memory side effects. The above section builds on that concept to show that you can induce these memory side effects by tricking the branch predictor to execute existing code in an unexpected way.

    Okay, to go into more details :
    there are two things that are call spectre, which are both based around speculative execution.

    The first one, which gets around software check, to which every single deeply-pipelined/out-of-order CPU that does speculative execution (lots of vendors, some as long back as mid 90s), and which is basically still "speculative execution working as intended", is the one I've described in my post.

    That the one to which every piece of software running on nearly any CPU (except perhaps older Intel Atoms, Intel Xeon Phis, and older ARM 32bits as those don't do speculative execution, because as a matter of fact they have way to short pipelines) is susceptible, but which in practice isn't very concerning because it basically targets software which has "please exploit me!" design flaws written all-over it.

    The second things which is called "spectre", also uses speculative execution, but is an extremely specific stuff that only targets specific CPUs :
    only specific Intel CPUs are concerned, only in extremely specific circumstances. AMD CPUs are not affected. And that's expected because each CPU uses an entirely different strategy to predict branches.

    Just like with Meltdown, it against boils down to Intel CPU trying to be way too much clever, trading security to shave a few performance points.
    It boils down to an address (here a jump target) to even being known at the time when instruction start to pour into the pipeline. Some CPUs may try to guesstimate where the execution would go next.
    The way some specific Intel CPU store their estimations means there's a risk of aliasing/confusion (CPU has learned that instruction A usually jumps to point B, but when the CPU sees instruction C it get things mixed up and think that there's a high chance it will also jump to point B and start speculatively executing there, even if that ends up not being the case and C actually jumps to a different point B).

    By knowing the specific make of affected Intel CPUs, and by knowing the exact way in which this aliasing and confusion happens in that specific Intel CPUs, and by allocating a shit ton of memory (so you end up with an address that can actually be confused/aliased with your target) and by the way knowing in advance the foreign address you're trageting (because, you know, ASLR gets in the way) and spending around half an hour doing stuff (according to the Google demo) in order to get the exact thing you need so that specific Intel CPU confuses the thing exactly the way you need, then you can have the CPU guess wrong and jumping speculatively to the completely random address you've asked it to jump to (until it notice it's wrong, throws nearly everything out - except the already prefetched cache - and jumps back to the actual correct execution).

    This is not something that affects every speculatively executing CPU in existence, this is not a CPU still working as it should (unlike the other exploit).

    This is some specific CPU (happens to be by Intel) that each take wild guesses - way too much wild guesses - and if you know exactly how this CPU takes its too wild guesses, you can abuse to make it guess wrong. No other CPU will be affect.

    Given the complexity of the taks, this is not something that you're going to see a lot in the wild and automated (not in drive-by Javascript attacks). This is something that is going to be specially crafted manually, for some very specific attacks (an attacker want to break the specific hyper visor in which it's currently staying).

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
  66. Two different things. by DrYak · · Score: 1

    Intel processors Speculative execution is NOT working correctly because it can LEAK protected Kernel mode data.

    There's two different things.

    The "executing past a conditional" stuff that every single CPU with speculative execution is susceptible to, is still speculative execution working as it should.
    It was well established that it might need to reading stuff outside bound from the first time it was introduced (back in mid 90s), it just happens that only now some researcher though a way to abuse this.

    And there's the Intel-specific attacks : Meltdown (and an obscure variant of speculative execution which is also called Spectre).

    Meltdown is Intel CPU not properly doing access rights checks (doing them too late in the pipeline at a time when the memory has been already accessed, and some measurable side effect like cache prefetch have happened) where any other CPU has the correct behavior (do access rights check before anything else, even if that means a bigger performance penalty).

    Because of that the fundamental protection provided by memory protection doesn't hold true anymore.

    That is Intel CPU being broken.

    And the Spectre variant is about abusing the way some specific Intel CPU trying to be too clever to predict where a yet-unkown jump might land and get things mixed up. CPU learns that usually instruction A will jump to point B. CPU sees a completely unrelated instruction C, but gets its things confused, and wrongly guess that it jump to B too.

    The general "all CPUs are affected" Spectre is still CPU working their speculative execution as expected and still processes accessing data that they already have access too.

    The Intel-specific stuff, Meltdown (and an extremely specific variant of Spectre), is Intel CPUs doing stuff that should never be happening to begin with, and is broken CPUs.

    --
    "Sufficiently advanced satire is indistinguishable from reality." - [Tips: 1DrYakQDKCQ6y52z6QbnkxHXAocMZJE61o ]
  67. Re:How does Javascript make illegal mem references by Anonymous Coward · · Score: 0

    Javascript doesn't have pointers.

    Yeh it does. Arrays are pointers. :) If you reference an array element, you are effectively doing array_base_address + size_of_array_element * desired_index. Yeah, sure the JIT compiler inserts a range check making sure desired index is within range and that would be enough security.. traditionally... but if you've poisoned the CPU's branch predictor cache and allowed your memory access code to speculatively execute...

    Have a read. Good luck, I don't quite understand it myself.

    Spectre is really about poisoning the branch predictor. It's a big deal; but I think only allows access to memory that the process would otherwise have access to. (Unlike Meltdown).

  68. SPARC is immune. by Anonymous Coward · · Score: 0

    SPARC is different from x86, ARM, POWER which all suffers from this bug.
    https://arstechnica.com/gadgets/2018/01/whats-behind-the-intel-design-flaw-forcing-numerous-patches/
    "While Intel systems are the ones known to have the defect, they may not be the only ones affected. Some platforms, such as SPARC and IBM's S390, are immune to the problem, as their processor memory management doesn't need the split address space and shared kernel page tables; operating systems on those platforms have always isolated their kernel page tables from user mode ones."