Re:IOHIDeous OS X Local Kernel Vulnerability
by Siguza on Monday January 01, 2018 @12:48AM
(#16044893)
It's actually neither TOCTOU nor double fetch, it's not checking anything at all, it's just write-then-fetch using shared (untrusted) memory to store trusted information. Sure similar in nature, but not really fitting any common name...
Re:IOHIDeous OS X Local Kernel Vulnerability
by blinkingled on Monday January 01, 2018 @01:08AM
(#16044934)
I see - I will give it a full read little later - I like your writing style based on what I've glanced over so far!
I haven't completed reading this one thoroughly but one example like this is kernel performing access checks on user requests asking it to perform some action - user space would ask for something it is permitted to do at first, kernel would read it and proceed to perform access check. User space meanwhile writes something different to the original memory area that specified the action - this time something privileged - kernel comes back successfully performing the access check for the older action and now executes the privileged action from the overwrite.
j00ru/project zero used modified Bochs (BochsPWN) to detect double memory fetch patterns to find similar vulnerabilities in the Windows kernel.