timwr/CVE-2019-2215

Crashing on EPOLL_CTL_DEL

Zoir opened this issue · 5 comments

Zoir commented

If a device crashes on doing EPOLL_CTL_DEL does that mean that the device is not vulnerable?

I was wondering the same thing, if I wait systemui crashes, and then the device locks up.

Ok so it looks like we need these device specific values for each device:

https://github.com/timwr/CVE-2019-2215/blob/master/poc.c#L201

Zoir commented

I don't think that is the issue because those values are only used after the EPOLL_CTL_DEL. I could be mistaken though.

someone help me on it does this works on virtual device or emulator on pixel2 ?
give me email or something

timwr commented

I've pushed some code that does a quick hexdump on vulnerable devices (instead of rebooting/locking them up).
We need offsets (or the ability to dynamically lookup the correct offsets) in order to get root.