Author Topic: Apples's M1 has an issue too: PACMAN  (Read 1725 times)

0 Members and 1 Guest are viewing this topic.

Offline madiresTopic starter

  • Super Contributor
  • ***
  • Posts: 8138
  • Country: de
  • A qualified hobbyist ;)
Apples's M1 has an issue too: PACMAN
« on: June 11, 2022, 02:59:34 pm »
A new vulerability was found in Apples's M1. Possibly other ARM based CPUs are also affected:
- MIT researchers uncover ‘unpatchable’ flaw in Apple M1 chips (https://techcrunch.com/2022/06/10/apple-m1-unpatchable-flaw/)
- New 'PacMan' flaw in Apple Silicon is an echo of Spectre and Meltdown (https://appleinsider.com/articles/22/06/10/new-pacman-flaw-in-apple-silicon-is-an-echo-of-spectre-and-meltdown)
- PACMAN Attacking ARM Pointer Authentication with Speculative Execution (https://pacmanattack.com/)

 

Offline ataradov

  • Super Contributor
  • ***
  • Posts: 11726
  • Country: us
    • Personal site
Re: Apples's M1 has an issue too: PACMAN
« Reply #1 on: June 11, 2022, 06:01:23 pm »
I'm not sure it actually matters, especially on a single user computers.

Meltdown and Spectre made a lot of noise, and are generally neat exploits, yet there is no evidence of them actually being used in a wild. And shared server applications where it could potentially matter hardened against them with various software measures.

I personally would pick performance over this type of security for the hardware I use.
Alex
 
The following users thanked this post: edavid, james_s, Jacon

Offline madiresTopic starter

  • Super Contributor
  • ***
  • Posts: 8138
  • Country: de
  • A qualified hobbyist ;)
Re: Apples's M1 has an issue too: PACMAN
« Reply #2 on: June 11, 2022, 06:22:43 pm »
Yep, most users aren't really affected by this security issue. But it's good to know about this new attack.
 

Offline SiliconWizard

  • Super Contributor
  • ***
  • Posts: 15312
  • Country: fr
Re: Apples's M1 has an issue too: PACMAN
« Reply #3 on: June 11, 2022, 08:15:52 pm »
True.

Now, most of the security issues found on modern processors are due to speculative execution one way or another.
While it's hard to just do without it (that would harm their achievable performance significantly), it seems even harder to get it fully secure.
I'm not even sure if it is at all possible.
 

Offline james_s

  • Super Contributor
  • ***
  • Posts: 21611
  • Country: us
Re: Apples's M1 has an issue too: PACMAN
« Reply #4 on: June 11, 2022, 08:34:04 pm »
I tend not to worry about this sort of thing. By far the most vulnerable attack vector in personal computers is the user. It absolutely dwarfs all of the various exploits.
 
The following users thanked this post: Halcyon

Online magic

  • Super Contributor
  • ***
  • Posts: 7196
  • Country: pl
Re: Apples's M1 has an issue too: PACMAN
« Reply #5 on: June 11, 2022, 10:37:32 pm »
Now, most of the security issues found on modern processors are due to speculative execution one way or another.
While it's hard to just do without it (that would harm their achievable performance significantly), it seems even harder to get it fully secure.
I'm not even sure if it is at all possible.
The leaks of information produced in speculative execution occur by means of caches (like L1, or TLB in this case).

I imagine one potential mitigation strategy could be overprovisioning said caches and giving them checkpointing support, so that a speculative path that fails can undo all changes it has made to the cache. Speculative cache fills must be prohibited from evicting valid data and blocked until either the speculation is resolved or suitable cache line is freed/invalidated by somebody else.

The mechanism may not perform very well on caches with low associativity, like typical L1 ::)

Intel already support a remotely related mechanism which they call transactional synchronization extension. You can explicitly speculatively execute a piece of code and bail out of it if something goes wrong (it will also fail automatically if other core accesses the same memory at the same time). All memory changes are reverted. Cache state is not preserved, but the underlying implementation is often believed to work by means of creating a small "parallel reality" inside your local L1 and using the coherence protocol to detect inter-core data hazards.

Notably, it was disabled on several early implementations because of bugs. I suppose there is a lesson here about the difficulty of maintaining multiple alternate cache states in a multicore environment. Single core should be much easier.
« Last Edit: June 11, 2022, 10:53:28 pm by magic »
 

Offline SiliconWizard

  • Super Contributor
  • ***
  • Posts: 15312
  • Country: fr
Re: Apples's M1 has an issue too: PACMAN
« Reply #6 on: June 12, 2022, 06:16:26 pm »
As a side thought, as this kind of exploits IMO is much more problematic security-wise for servers than for personal computers, I think that might be a good idea to design CPUs made for servers with much simplified execution units (so very simple, or no speculative execution at all), thus with worse single-core performance per MHz, but with simpler cores with a lot less potential for exploits, and the possibility of putting more cores on the same die.

Implement the fancy (but almost impossible to get 100% secure) stuff for CPUs aimed at workstations and gaming systems.
 

Online magic

  • Super Contributor
  • ***
  • Posts: 7196
  • Country: pl
Re: Apples's M1 has an issue too: PACMAN
« Reply #7 on: June 12, 2022, 07:20:49 pm »
Workstations and gaming is one thing, but most consumer computers are spyphones and they need as much security as VPS farms do - all that "trusted computing", DRM, payments, etc. ;)
 

Offline ejeffrey

  • Super Contributor
  • ***
  • Posts: 3889
  • Country: us
Re: Apples's M1 has an issue too: PACMAN
« Reply #8 on: June 17, 2022, 08:44:27 pm »
And shared server applications where it could potentially matter

However, pretty much any computer is shared because of JavaScript.  But this can be made mostly irrelevant for personal computers by hardening the browser JavaScript engine.
 

Online Kleinstein

  • Super Contributor
  • ***
  • Posts: 14755
  • Country: de
Re: Apples's M1 has an issue too: PACMAN
« Reply #9 on: June 17, 2022, 09:40:15 pm »
Security relevant code is usually used only for a very small fraction of the time / code. Things could improve a lot, if the CPU could turn of features like cache and speculative execution for selected code / times.

The PC architecture is anyway not really suitable for a secure system - root kits / viruses that get effective at boot time before the main OS make the system weak. Ideally the security relevant parts would rund a separate CPU / memory from the main - user code. However this would requite a complete rethinking of the achitecture (e.g. sperate terminal and file system parts, possibly without an easy way to update / modify those).

As long as normal Windows / linux code is running those side channel vulnerabilites are more like a minor problem.
 

Offline ejeffrey

  • Super Contributor
  • ***
  • Posts: 3889
  • Country: us
Re: Apples's M1 has an issue too: PACMAN
« Reply #10 on: July 21, 2022, 04:01:40 am »
Side channel attacks on the secure code execution are one thing and disabling caches and branch prediction might help with that but that isn't what the issue with what most people call speculative execution bugs.  That's where malicious code executing is able to read the memory or other state of the victim code even when it isn't executing.  To solve this you would have to turn off those features whenever executing any potentially malicious code.  That basically means everything. 
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf