News for hackers. Stuff that matters.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by manicdee on Tuesday February 27, 2018 @06:46PM (#16479270)
How do you prevent shaders being used to gain elevated privileges?
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by __s on Tuesday February 27, 2018 @07:12PM (#16479452)
...?? By not having buggy drivers?
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by psykotic on Tuesday February 27, 2018 @11:35PM (#16480704)
Modern discrete GPUs also have IOMMUs and per-context page tables. It's a large attack surface which has received relatively little attention from hackers so far compared to CPUs, but there are hardware-level security features in place.
Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by kllrnohj on Wednesday February 28, 2018 @12:03AM (#16480792)
It's a really small attack surface. Other than the tiny, basic mini CPUs what's even on the GPU? There's no OS to speak of, no privileged processes to poke at, etc...

Other than the framebuffer there's not even any data of worth on the GPU.

The attack of note that's been mitigated is DoS attacks through webgl, but GPU preemption is a thing now which largely solves the infinite loop in a shader to lock up the machine.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by fulafel on Thursday March 01, 2018 @12:41AM (#16489936)
Sorry but you are really on the wrong track on every point. Attack surface (the drivers are the GPU OS, though hardware bugs do play a part too), GPU memory sensitivity, WebGL history (it's been much worse, not DoS only etc).

(And re the MMU features upthread, it's just a building block. Just like CPU having a MMU doesn't make your OS magically secure)

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by kllrnohj on Friday March 02, 2018 @07:17PM (#16506951)
You seem to have entirely lost the context. We're talking what you can attack from code running on the GPU (aka, from a compute shader), which does not include the drivers since that's not running on the GPU.

If you want to attack the shader compiler go for it, but since that lives in your own process anyway so you could skip that step and go straight to attacking whatever it is you wanted to attack.

> WebGL history (it's been much worse, not DoS only etc).

Such as? All I'm finding are DoS attacks. But regardless WebGL's problems were more due to WebGL and its designs than in vulnerabilities in the drivers or GPUs.

Re:Vulkan is coming to macOS and iOS, but no thanks to Apple by fulafel on Monday March 12, 2018 @03:34PM (#16570744)
The context was "How do you prevent shaders being used to gain elevated privileges?" and those go through the whole stack.

Regarding WebGL vulnerabilities, you can use your favourite search engine to look up vulnerabilities, here are some first hits for RCE bugs: https://www.cvedetails.com/cve/CVE-2012-3968/ https://bugs.chromium.org/p/chromium/issues/detail?id=740603 https://nvd.nist.gov/vuln/detail/CVE-2017-5128