• JaddedFauceet@lemmy.world
    link
    fedilink
    English
    arrow-up
    15
    ·
    1 day ago

    FLOP abuses the LVP in a way that allows the attacker to run functions with the wrong argument—for instance, a memory pointer rather than an integer.

    is this a vulnerability in the software? So patching this won’t require disabling speculative execution?

  • narc0tic_bird@lemm.ee
    link
    fedilink
    English
    arrow-up
    65
    ·
    2 days ago

    Speculative execution seems to be the source of a lot of security flaws in many different CPUs. CPU manufacturers seem to be so focused on winning the performance race that security aware architecture design takes the backseat.

    Also, it’s more and more clear that it’s a bad idea that websites can just execute arbitrary code. The JS APIs are way too powerful and complex nowadays. Maybe websites and apps should’ve stayed separate concepts instead of merging into “web apps”.

    I also wonder if it’d be possible to design a CPU so vulnerabilities like these are fixable instead of just “mitigable”. Similar to how you can reprogram an FPGA. I have no clue how chip design works though, but please feel free to reply if you know more about this.

    • Xatolos@reddthat.com
      link
      fedilink
      English
      arrow-up
      70
      arrow-down
      4
      ·
      2 days ago

      Very. It’s unpatchable. It’s taking advantage of a speculative execution flaw, which is baked into the CPU microcode. This is the Apple M-chip version of Spectre/Meltdown that happened on x86 CPUs a few years ago.

      The best Apple can do is attempt to add some code to the OS to help prevent this issue, but if Spectre was any example, it’ll cause a hit to the CPU performance.

      • narc0tic_bird@lemm.ee
        link
        fedilink
        English
        arrow-up
        31
        arrow-down
        3
        ·
        2 days ago

        The researchers published a list of mitigations they believe will address the vulnerabilities allowing both the FLOP and SLAP attacks. They said that Apple officials have indicated privately to them that they plan to release patches.

        So this’ll likely be mitigated soon, and while you’re probably right about the performance hit (which will likely be minor), I don’t think (most) Apple users need to be very worried about this.

    • john89
      link
      fedilink
      English
      arrow-up
      28
      arrow-down
      3
      ·
      edit-2
      2 days ago

      The main issue with these vulnerabilities is a loss in performance when the microcode patch gets applied.

      On a more philosophical note, it’s also a trend to release insecure products to tout performance metrics. Intel did it. Now it’s apple’s turn.

      Don’t trust corporations, ever.

    • aeronmelon@lemmy.world
      link
      fedilink
      English
      arrow-up
      32
      ·
      2 days ago

      This is a real problem, and Apple can’t patch it out of the hardware. The only thing they can do is write software to run in advance of hardware execution to “randomize” when and where memory is written to and read from. That will slightly decrease the performance of these chips. The “older” chips from 2021 would see the worst performance reduction. M3 users probably won’t even be able to tell.

      The attack vector is a web browser. Even a completely updated safari is vulnerable, but Chrome is seemingly easier to exploit (the way browsers store website data in memory is the key). An encrypted browser won’t change anything because the attack is reading the unencrypted data being displayed to the user.

      It takes several minutes for a compromised website to perform the attack. So basic sense practices apply. If you think a website is unsafe, don’t open it. If you think something is happening, closing the suspicious sites immediately might stop the attack before any damage is done. I don’t know how easy it would be to compromise a trusted site, but it’s been done in the past.

      Apple could potentially patch Safari to do things that make it harder for the attack to work correctly, and you can bet they’re already retooling the next generation of processors to get rid of this exploit. They did the same thing when an unpatchable exploit was found in the M1 series, M2s have a stopgap measure, and M3s were redrawn to make it an nonissue.

      • john89
        link
        fedilink
        English
        arrow-up
        9
        arrow-down
        13
        ·
        2 days ago

        If you think a website is unsafe, don’t open it.

        Ahh yes, back to the dark ages of the internet where just clicking the wrong link can completely compromise your system.

        Thanks crapple and its useful idiots.

        • boonhet@lemm.ee
          link
          fedilink
          English
          arrow-up
          5
          ·
          22 hours ago

          I mean, Intel did it first and I do believe AMD and Qualcomm also followed suit.

          • john89
            link
            fedilink
            English
            arrow-up
            1
            ·
            edit-2
            11 hours ago

            Yes, and Apple decided to do the same thing knowing the risks.

            “Intel did it!” is not a panacea for apple; it makes things worse for them.

            • boonhet@lemm.ee
              link
              fedilink
              English
              arrow-up
              1
              ·
              edit-2
              6 hours ago

              You can’t compete without doing it. Do you think Intel and AMD stopped doing it? Hell nah, people will find new exploits in a few years, I’m certain.

              If you don’t do speculative execution, you’ll be left in the dust unfortunately.

              If anything, this shows that there should be separate lines of CPUs for handling classified data and such, that don’t do it. But it would likely be prohibitively expensive to implement a separate product line.

          • john89
            link
            fedilink
            English
            arrow-up
            1
            ·
            11 hours ago

            Yes, I realize that.

            You do realize that this kind of attack happened after spectre and meltdown? Apple knew of the risks, but decided to ignore them.

  • Thistlewick@lemmynsfw.com
    link
    fedilink
    English
    arrow-up
    29
    ·
    2 days ago

    FYI

    “ They also said they don’t know if browsers such as Firefox are affected because they weren’t tested in the research.”

    Seems you should be fine if you follow the usual protocols though: don’t open suspicious links, check urls, that sort of thing. I expect a frantic phone call from my mother-in-law who has an iPhone 8 any minute now…

    • Nightwatch Admin@feddit.nl
      link
      fedilink
      English
      arrow-up
      16
      ·
      2 days ago

      Run an adblocker. Seriously, ads are nothing but other websites in the same browser - exactly the kind of thing that is the basis of this problem.

    • MorphiusFaydal@lemmy.world
      link
      fedilink
      English
      arrow-up
      32
      arrow-down
      3
      ·
      2 days ago

      Then you probably don’t know about Spectre and Meltdown from a few years ago. Same family of problem on x86-64 (so Intel and AMD chips).

      • trolololol@lemmy.world
        link
        fedilink
        English
        arrow-up
        4
        arrow-down
        15
        ·
        2 days ago

        Wasn’t it that those bugs were public knowledge by the time M1 was starting to sell? I guess recalls or delays to revenue are not acceptable.

        Trophy for Apple being the first one to bring these speculative execution side channel attacks to Arm, because I’ve never heard of other cases. Ifi missed that please share enough details that I can find a white paper about it, because I don’t read those kind of news from media.

        • CommanderCloon@lemmy.ml
          link
          fedilink
          English
          arrow-up
          1
          ·
          13 hours ago

          Side channel attacks are as old as computing, and the specific CPU variants exploiting speculative execution have not simply occurred on 2018 hardware and stopped since; pretty much all CPU architecture is susceptible to some form of speculative execution exploit, Apple simply is not an exception to the rule, and I think it’s unfair to call them out as somehow incompetent for making the same mistake as literally everyone

          https://www.vusec.net/projects/ghostrace/

          • trolololol@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            ·
            6 hours ago

            That’s a cool article, I had a quick read and will go back to it later.

            Inter-Process Interrupt seems to be very cool, but the fact you have to start it exactly when a pointer in the kernel is created makes it a big hit and miss, and the fact one cpu is frozen during the process may make it easy to detect she counter.

            I can and will call Apple many things such as unusually greedy, the new Microsoft that got big decade ago and have to buy companies to have new successful products, marketing brainwashing, cult and more. But not incompetent when it comes to M1.

            M1 laptops performance is not due to what most people believe, and all the side channel attacks unique to it I’ve heard from, come from speculative memory address loads. It’s pushing speculation in directions neither Intel nor AMD or Arm chips did before, and they’re released in a time where side channel attacks are starting to be very l well understood.

            I’m sure there was an engineer saying this was a bad idea, over ruled by a manager under the pressure of CFO to make it happen. So I blame this on greed.

        • Nightwatch Admin@feddit.nl
          link
          fedilink
          English
          arrow-up
          11
          arrow-down
          1
          ·
          2 days ago

          That you’ve never heard of it does not mean it doesn’t exist. You - or anyone else - just never heard of it.

          • trolololol@lemmy.world
            link
            fedilink
            English
            arrow-up
            2
            arrow-down
            3
            ·
            1 day ago

            Yep sure that’s the definition of a 0 day vulnerability, it was always there and suddenly someone found out.

            What I’m saying is that I have a special interest in this topic and never heard of this problem for Arm before, and if some has more awareness than me I’d like to hear more from trusted sources.

  • extremeboredom@lemmy.world
    link
    fedilink
    English
    arrow-up
    24
    arrow-down
    30
    ·
    2 days ago

    But-but I was told Apple’s security was the very best! That’s why they charge so much for everything they make, right? … Right?