CSE 598 - Spring 2025

Kernel Exploitation

You've taken your first steps into kernel exploitation with Kernel Security.

Are you ready to kick your knowledge up a notch to understand how real-world Linux kernel exploitation is done?

This module will provide you with the guide that you need to become an expert in Linux kernel exploitation.

Note 1: this is a kernel exploitation module, and requires you to run vm connect to drop into the virtual machine where the challenge is running. You can get logs using vm logs and (in Practice Mode) debug the kernel using vm debug.

Note 2: for technical reasons, we had to disable virtualization on this module. The VM will be slow --- consider doing heavy tasks like compiling in the normal workspace (e.g., in a terminal where you have not done vm connect).

8 challenges

Slab Allocators

Kernel Heap Protections

Exploiting the Kernel

Recommended Reading

CHALLENGE 01

Level-1

— solves

get a hang of how Linux kernel heap works with no protection-ish, have fun!

CHALLENGE 02

Level-2

— solves

time to try some "real-tm" kernel exploitation (randomized freelist) with no "win" functions!

CHALLENGE 03

Level-3

— solves

well, real-world kernels have this weird KASLR thingy

CHALLENGE 04

Level-4

— solves

how do you exploit the kernel with no function pointers?

CHALLENGE 05

Level-5

— solves

alright, can you pwn it with "HARDENED" freelist?

CHALLENGE 06

Level-6

— solves

now, we are working on "real" linux kernel heap!

CHALLENGE 07

Level-7

— solves

msg the kernel for the win!

CHALLENGE 08

Level-8

— solves

no more USERCOPY, what now?