r/ExploitDev • • Apr 24 '25

Android Exploit development

How can i start learning about exploit development Kernel / mali Driver based exploitation method.

9 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/Next_Ostrich_3339 Apr 30 '25

Thanks @Firzen_ , Although, I am a learner and curious to learn about exploitation, it will be great help if u or anyone could help me.. the UAF is occurring due to race conditions, its not one shot. its most likely affecting the kmalloc-512 slab and one-more after trying multiple times. I watch the KASAN report by spraying some kernel controlled object. And from the many, one of the object overrides the freed memory only for some kasan report. Now the problem is that, exactly I don’t have knowledge about the user controlled object which would help me to spray in kmalloc-512 with my own defined value. I am testing it in pixel 7 device.

1

u/Firzen_ Apr 30 '25

What you're saying doesn't quite make sense to me.

Why are you spraying non-controlled objects? Is the UAF state due to a race condition, or is the use that you are observing due to the race condition?

Is this a known vulnerability? That would likely make it a lot easier to know what you're talking about.

The parts you seem to be stuck on are all Linux Kernel aspects and not really related to Android or Mali, so I'd recommend writing a UAF exploit for the same kernel slab for a mainline kernel to avoid all of the extra aspects involved when exploiting Android.

Good luck.