
Kernel Exploitation
This is a comprehensive playbook for exploiting Linux kernel vulnerabilities to escalate privileges, covering the full chain from QEMU setup through clean return to userspace. It walks through UAF, OOB, and race condition exploitation with concrete techniques like commit_creds ROP chains, modprobe_path overwrites, and seq_operations hijacking. The material addresses the key confusion point between userspace and kernel exploitation: SMEP/SMAP restrictions mean you can't just jump to user code anymore, so you need kernel ROP gadgets and proper KPTI trampolines to return cleanly. Best suited for CTF kernel challenges and security research where you're actually debugging with GDB attached to QEMU. The cross-references to heap and ROP fundamentals are helpful since kernel exploitation reuses those concepts in a different context.
- skills.sh installs
- 3.8K
- GitHub stars
- 2.6K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add yaklang/hack-skills --skill kernel-exploitation --agent claude-codeInstalls into .claude/skills of the current project.
Files
SKILL: Linux Kernel Exploitation — Expert Attack Playbook
AI LOAD INSTRUCTION: Expert kernel exploitation techniques. Covers environment setup (QEMU), vulnerability classes, privilege escalation targets, kernel ROP, ret2usr, stack pivoting, and cross-cache attacks. Distilled from ctf-wiki kernel-mode sections and real-world kernel CVEs. Base models often confuse user-mode and kernel-mode exploitation constraints, especially regarding SMEP/SMAP/KPTI.
0. RELATED ROUTING
- binary-protection-bypass — userspace protections (NX, ASLR) also apply in kernel context
- stack-overflow-and-rop — kernel ROP reuses many userspace ROP concepts
- heap-exploitation — kernel SLUB is conceptually related to userspace heap
- linux-privilege-escalation — non-exploit kernel privesc techniques
Advanced References
Sponsors
Details
- Repository
- github.com/yaklang/hack-skills
- Category
- Git & Pull Requests
- First seen
- Jun 3, 2026
More from yaklang/hack-skills
All 102- Race Condition3.8K
- Xxe Xml External Entity3.8K
- Deserialization Insecure3.8K
- Request Smuggling3.8K
- File Access Vuln3.8K
- Format String Exploitation3.8K
- Http Parameter Pollution3.8K
- Csp Bypass Advanced3.8K
- Browser Exploitation V83.8K
- Open Redirect3.8K
- Symbolic Execution Tools3.8K
- Crlf Injection3.8K
- Insecure Source Code Management3.8K
- Mobile Ssl Pinning Bypass3.8K
- Http Host Header Attacks3.8K
- Web Cache Deception3.8K
- Subdomain Takeover3.8K
- Dependency Confusion3.8K
- Expression Language Injection3.8K
- Csv Formula Injection3.8K
- Active Directory Acl Abuse3.8K
- Linux Privilege Escalation3.8K
- Clickjacking3.8K
- Active Directory Kerberos Attacks3.8K