Skip to content

DEF CON 34 talks are here: 354 talks, summarized and searchable.

Browse DEF CON 34

Linux Kernel Exploitation for Beginners

Kevin Massey

Red TeamTalks38 minExpertOpen on YouTube ↗

Where

Talks
RVAsec 14

Duration

38 min

Walks through a kernel CTF challenge, from initial recon and source review to heap leaks and kernel ROP.

Summary

The talk aims to lower the barrier to Linux kernel exploitation by using kernel-focused capture-the-flag challenges as an entry point. It explains why the kernel is an attractive target, given its privileged context and large attack surface, and why CTF challenges are easier to start with: a predictable memory state, a prebuilt kernel image, a root filesystem, and source code for the vulnerability.

The speaker then walks through a challenge's layout. This covers unpacking the initramfs, reading the init scripts and the kernel module, and reviewing a simple module that exposes allocate, free, read and write commands with user-controlled sizes that are never checked. That gives an out-of-bounds heap read and write. A proof of concept leaks neighbouring objects, and the speaker shows how to change the environment for debugging, such as disabling KASLR and kernel pointer restriction and using GEF's kernel extensions to inspect slab caches. The TTY struct is presented as a useful target because it provides a magic value and kernel and heap pointers.

The talk covers leaking heap and kernel pointers, then using fixed offsets from a stable kernel leak to locate functions. It explains SMEP and SMAP and how kernel ROP chains reuse existing code snippets to get around them. The planned live demo did not happen, and the session ran out of time before the ROP chain was built. Practitioners can take away that small CTF modules are a practical way to learn kernel heap behaviour and mitigation bypasses.

Related talks

Main Stage·44 min

  • DEF CON
  • Red Team
  • Date: Aug 2026
  • Location: Las Vegas

Vladimir Tokarev

Shows three ways to write attacker-chosen return addresses into Linux shadow stacks, undermining Intel CET and ARM GCS backward-edge protection.

exploitationlinuxkernel+2