System V message queues (msgsnd/msgrcv) let an unprivileged user allocate objects of almost any size with controlled contents. That makes struct msg_msg the go-to spray object, and corrupting its header (m_ts, next) turns it into an out-of-bounds read, an arbitrary read, and with a stalled copy an arbitrary write.
What you will learn
- msg_msg / msg_msgseg layout and which caches they land in
- Using MSG_COPY to read without freeing; corrupting
m_tsfor OOB reads - Forging
nextfor arbitrary read; combining with userfaultfd/FUSE for arbitrary write - Walking
task_structlists from an arbitrary read to find your own cred - Exploiting when modprobe_path is unavailable (STATIC_USERMODEHELPER) and under FG-KASLR
Prerequisites
Modules 04-05. Module 08 (userfaultfd) helps for the hardest challenges here.
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 |