Kernel code that reads user memory twice, or forgets to lock, has a race window. Usually that window is nanoseconds wide; the trick is to make it as long as you like by making the kernel fault on a user page you control (userfaultfd, or FUSE where unprivileged userfaultfd is disabled).
What you will learn
- Double fetch / TOCTOU bugs and brute-force racing with threads and CPU pinning
- userfaultfd: registering a region, stalling
copy_from_user/copy_to_user, swapping objects mid-copy - FUSE and other ways to stall the kernel when userfaultfd is unavailable
- Turning a race into a UAF or double free, then reusing modules 04-07
- Races inside core kernel code (fault handling) rather than drivers
Prerequisites
Modules 04-07.
References
Challenges
30-Day Scoreboard:
This scoreboard reflects solves for challenges in this module after the module launched in this dojo.
| Rank | Hacker | Badges | Score |