logo

pbctf 2021 Nightclub Writeup: More Fun with Linux Kernel Heap Notes!

ID: 2d83c114-e33b-57a1-b02d-08cf622f2802

STIX ID: report--2d83c114-e33b-57a1-b02d-08cf622f2802

Feed Name: Will's Root

Threat Score
60/100

Date Published: 2021-10-11

Date Updated: 2026-04-19

Author: Unknown

...
...

This writeup details exploitation of the "NightClub" Linux kernel module from pbctf 2021. The authors analyze a kmalloc-128 note structure with a null-byte poison and limited OOB/overflow primitives, describe heap grooming to create a UAF, replace freed chunks with msg_msg objects across kmalloc-128 and kmalloc-96 slabs, obtain kernel pointer leaks, and finally hijack modprobe_path via freelist poisoning to achieve root remote code execution. The report discusses kernel hardening present (SMEP/SMAP/KASLR), slab behaviors, mitigation hurdles encountered, and the step-by-step exploit/poisoning methodology used to complete the challenge.

Your team is not currently subscribed to this feed. You must subscribe to it in order to see this post.