# lucyoa/kernel-exploits architecture

> Architecture diagram of the GitHub repository lucyoa/kernel-exploits, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-05). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/lucyoa/kernel-exploits
- Repository: https://github.com/lucyoa/kernel-exploits

## Overview

This repository is a catalog of independent Linux kernel exploit and vulnerability-demonstration programs, not a shared application. The user-facing workflow is to select a standalone program for a documented kernel range and run it against that system; depending on the program, the intended outcome includes privilege escalation or kernel-memory disclosure. The programs use different vulnerable kernel interfaces and have no demonstrated shared runtime layers. The graph groups entries by broad technique; unsampled entries are included where the README documents them, but their internal call flows are not inferred.

Main entry points: [`krad3/krad3.c`](https://github.com/lucyoa/kernel-exploits/blob/master/krad3/krad3.c) (k-rad3 exploit), [`timeoutpwn/timeoutpwn64.c`](https://github.com/lucyoa/kernel-exploits/blob/master/timeoutpwn/timeoutpwn64.c) (Timeout exploit), [`msr/msr.c`](https://github.com/lucyoa/kernel-exploits/blob/master/msr/msr.c) (MSR exploit), [`rawmodepty/rawmodePTY.c`](https://github.com/lucyoa/kernel-exploits/blob/master/rawmodepty/rawmodePTY.c) (PTY exploit)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_legacy["Legacy kernel exploits"]
  node_krad["k-rad3 exploit<br/>[krad3.c]"]
  node_timeout["Timeout exploit<br/>[timeoutpwn64.c]"]
  node_msr["MSR exploit<br/>[msr.c]"]
  node_rawpty["PTY exploit<br/>[rawmodePTY.c]"]
  node_ftrex["Ftrex exploit<br/>[ftrex.c]"]
  node_h00ly["h00lyshit exploit<br/>[h00lyshit.c]"]
  node_exitnotify["Exit notify<br/>[exit_notify.sh]"]
  node_udev["udev exploit<br/>[udev.sh]"]
end

subgraph group_network["Network exploits"]
  node_canbcm["CAN BCM<br/>[can_bcm.c]"]
  node_fullnelson["Econet exploit<br/>[full-nelson.c]"]
  node_fullnelson64["Econet x64<br/>[full-nelson64.c]"]
  node_halfnelson["Econet stack exploit<br/>[half-nelson3.c]"]
  node_rds["RDS exploit<br/>[rds.c]"]
  node_rds64["RDS x64<br/>[rds64.c]"]
  node_udp["UDP sendmsg"]
end

subgraph group_memory["Memory and filesystem"]
  node_elflbl["ELF uselib race<br/>[elflbl.c]"]
  node_pipe["Pipe exploit<br/>[pipe.c_32bit.c]"]
  node_mremap["mremap PTE exploit<br/>[mremap_pte.c]"]
  node_overlay32["OverlayFS x86<br/>[ofs_32.c]"]
  node_overlay64["OverlayFS x64<br/>[ofs_64.c]"]
  node_memo32["memodipper<br/>[memodipper.c]"]
  node_memo64["memodipper x64<br/>[memodipper64.c]"]
  node_reiserfs["ReiserFS exploit<br/>[reiserfs.py]"]
  node_vmsplice1["vmsplice exploit<br/>[vmsplice1.c]"]
  node_vmsplice2["vmsplice variant<br/>[vmsplice2.c]"]
end

subgraph group_privilege["Privilege escalation"]
  node_asl["ACPI custom method"]
  node_caps["Capabilities exploit<br/>[caps_to_root.c]"]
  node_video4linux["Video4Linux exploit<br/>[video4linux.c]"]
  node_ppkey["pp_key exploit<br/>[pp_key_64.c]"]
  node_perf32["Perf swevent<br/>[perf_swevent.c]"]
  node_perf64["Perf swevent x64<br/>[perf_swevent64.c]"]
  node_ptrace["ptrace kmod<br/>[ptrace_kmod2-64.c]"]
end

subgraph group_disclosure["Kernel disclosure"]
  node_pkt["pktcdvd disclosure<br/>[pktcdvd.c]"]
end

node_user(("Local user"))

node_user -.->|"runs"| node_asl
node_user -.->|"runs"| node_canbcm
node_user -.->|"runs"| node_caps
node_user -.->|"runs"| node_elflbl
node_user -.->|"runs"| node_fullnelson
node_user -.->|"runs"| node_fullnelson64
node_user -.->|"runs"| node_halfnelson
node_user -.->|"runs"| node_krad
node_user -.->|"runs"| node_pipe
node_user -.->|"runs"| node_pkt
node_user -.->|"runs"| node_rds
node_user -.->|"runs"| node_rds64
node_user -.->|"runs"| node_video4linux
node_user -.->|"runs"| node_mremap
node_user -.->|"runs"| node_ppkey
node_user -.->|"runs"| node_overlay32
node_user -.->|"runs"| node_overlay64
node_user -.->|"runs"| node_timeout
node_user -.->|"runs"| node_perf32
node_user -.->|"runs"| node_perf64
node_user -.->|"runs"| node_msr
node_user -.->|"runs"| node_memo32
node_user -.->|"runs"| node_memo64
node_user -.->|"runs"| node_ptrace
node_user -.->|"runs"| node_rawpty
node_user -.->|"runs"| node_reiserfs
node_user -.->|"runs"| node_udp
node_user -.->|"runs"| node_vmsplice1
node_user -.->|"runs"| node_vmsplice2
node_user -.->|"runs"| node_ftrex
node_user -.->|"runs"| node_h00ly
node_user -.->|"runs"| node_exitnotify
node_user -.->|"runs"| node_udev

click node_asl "https://github.com/lucyoa/kernel-exploits/blob/master/american-sign-language/american-sign-language.c"
click node_canbcm "https://github.com/lucyoa/kernel-exploits/blob/master/can_bcm/can_bcm.c"
click node_caps "https://github.com/lucyoa/kernel-exploits/blob/master/caps_to_root/caps_to_root.c"
click node_elflbl "https://github.com/lucyoa/kernel-exploits/blob/master/elflbl/elflbl.c"
click node_fullnelson "https://github.com/lucyoa/kernel-exploits/blob/master/full-nelson/full-nelson.c"
click node_fullnelson64 "https://github.com/lucyoa/kernel-exploits/blob/master/full-nelson/full-nelson64.c"
click node_halfnelson "https://github.com/lucyoa/kernel-exploits/blob/master/half-nelson/half-nelson3.c"
click node_krad "https://github.com/lucyoa/kernel-exploits/blob/master/krad3/krad3.c"
click node_pipe "https://github.com/lucyoa/kernel-exploits/blob/master/pipe.c_32bit/pipe.c_32bit.c"
click node_pkt "https://github.com/lucyoa/kernel-exploits/blob/master/pktcdvd/pktcdvd.c"
click node_rds "https://github.com/lucyoa/kernel-exploits/blob/master/rds/rds.c"
click node_rds64 "https://github.com/lucyoa/kernel-exploits/blob/master/rds/rds64.c"
click node_video4linux "https://github.com/lucyoa/kernel-exploits/blob/master/video4linux/video4linux.c"
click node_mremap "https://github.com/lucyoa/kernel-exploits/blob/master/mremap_pte/mremap_pte.c"
click node_ppkey "https://github.com/lucyoa/kernel-exploits/blob/master/pp_key/pp_key_64.c"
click node_overlay32 "https://github.com/lucyoa/kernel-exploits/blob/master/overlayfs/ofs_32.c"
click node_overlay64 "https://github.com/lucyoa/kernel-exploits/blob/master/overlayfs/ofs_64.c"
click node_timeout "https://github.com/lucyoa/kernel-exploits/blob/master/timeoutpwn/timeoutpwn64.c"
click node_perf32 "https://github.com/lucyoa/kernel-exploits/blob/master/perf_swevent/perf_swevent.c"
click node_perf64 "https://github.com/lucyoa/kernel-exploits/blob/master/perf_swevent/perf_swevent64.c"
click node_msr "https://github.com/lucyoa/kernel-exploits/blob/master/msr/msr.c"
click node_memo32 "https://github.com/lucyoa/kernel-exploits/blob/master/memodipper/memodipper.c"
click node_memo64 "https://github.com/lucyoa/kernel-exploits/blob/master/memodipper/memodipper64.c"
click node_ptrace "https://github.com/lucyoa/kernel-exploits/blob/master/ptrace_kmod2/ptrace_kmod2-64.c"
click node_rawpty "https://github.com/lucyoa/kernel-exploits/blob/master/rawmodepty/rawmodePTY.c"
click node_reiserfs "https://github.com/lucyoa/kernel-exploits/blob/master/reiserfs/reiserfs.py"
click node_udp "https://github.com/lucyoa/kernel-exploits/blob/master/udp_sendmsg_32bit/udp_sendmsg_32bit.c"
click node_vmsplice1 "https://github.com/lucyoa/kernel-exploits/blob/master/vmsplice1/vmsplice1.c"
click node_vmsplice2 "https://github.com/lucyoa/kernel-exploits/blob/master/vmsplice2/vmsplice2.c"
click node_ftrex "https://github.com/lucyoa/kernel-exploits/blob/master/ftrex/ftrex.c"
click node_h00ly "https://github.com/lucyoa/kernel-exploits/blob/master/h00lyshit/h00lyshit.c"
click node_exitnotify "https://github.com/lucyoa/kernel-exploits/blob/master/exit_notify/exit_notify.sh"
click node_udev "https://github.com/lucyoa/kernel-exploits/blob/master/udev/udev.sh"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_krad,node_timeout,node_msr,node_rawpty,node_ftrex,node_h00ly,node_exitnotify,node_udev,node_user toneBlue
class node_canbcm,node_fullnelson,node_fullnelson64,node_halfnelson,node_rds,node_rds64,node_udp toneAmber
class node_elflbl,node_pipe,node_mremap,node_overlay32,node_overlay64,node_memo32,node_memo64,node_reiserfs,node_vmsplice1,node_vmsplice2 toneMint
class node_asl,node_caps,node_video4linux,node_ppkey,node_perf32,node_perf64,node_ptrace toneRose
class node_pkt toneIndigo
```

## Components

### Legacy kernel exploits

- [k-rad3 exploit](https://github.com/lucyoa/kernel-exploits/blob/master/krad3/krad3.c): `krad3/krad3.c`
- [Timeout exploit](https://github.com/lucyoa/kernel-exploits/blob/master/timeoutpwn/timeoutpwn64.c): `timeoutpwn/timeoutpwn64.c`
- [MSR exploit](https://github.com/lucyoa/kernel-exploits/blob/master/msr/msr.c): `msr/msr.c`
- [PTY exploit](https://github.com/lucyoa/kernel-exploits/blob/master/rawmodepty/rawmodePTY.c): `rawmodepty/rawmodePTY.c`
- [Ftrex exploit](https://github.com/lucyoa/kernel-exploits/blob/master/ftrex/ftrex.c): `ftrex/ftrex.c`
- [h00lyshit exploit](https://github.com/lucyoa/kernel-exploits/blob/master/h00lyshit/h00lyshit.c): `h00lyshit/h00lyshit.c`
- [Exit notify](https://github.com/lucyoa/kernel-exploits/blob/master/exit_notify/exit_notify.sh): `exit_notify/exit_notify.sh`
- [udev exploit](https://github.com/lucyoa/kernel-exploits/blob/master/udev/udev.sh): `udev/udev.sh`

### Network exploits

- [CAN BCM](https://github.com/lucyoa/kernel-exploits/blob/master/can_bcm/can_bcm.c): `can_bcm/can_bcm.c`
- [Econet exploit](https://github.com/lucyoa/kernel-exploits/blob/master/full-nelson/full-nelson.c): `full-nelson/full-nelson.c`
- [Econet x64](https://github.com/lucyoa/kernel-exploits/blob/master/full-nelson/full-nelson64.c): `full-nelson/full-nelson64.c`
- [Econet stack exploit](https://github.com/lucyoa/kernel-exploits/blob/master/half-nelson/half-nelson3.c): `half-nelson/half-nelson3.c`
- [RDS exploit](https://github.com/lucyoa/kernel-exploits/blob/master/rds/rds.c): `rds/rds.c`
- [RDS x64](https://github.com/lucyoa/kernel-exploits/blob/master/rds/rds64.c): `rds/rds64.c`
- [UDP sendmsg](https://github.com/lucyoa/kernel-exploits/blob/master/udp_sendmsg_32bit/udp_sendmsg_32bit.c): `udp_sendmsg_32bit/udp_sendmsg_32bit.c`

### Memory and filesystem

- [ELF uselib race](https://github.com/lucyoa/kernel-exploits/blob/master/elflbl/elflbl.c): `elflbl/elflbl.c`
- [Pipe exploit](https://github.com/lucyoa/kernel-exploits/blob/master/pipe.c_32bit/pipe.c_32bit.c): `pipe.c_32bit/pipe.c_32bit.c`
- [mremap PTE exploit](https://github.com/lucyoa/kernel-exploits/blob/master/mremap_pte/mremap_pte.c): `mremap_pte/mremap_pte.c`
- [OverlayFS x86](https://github.com/lucyoa/kernel-exploits/blob/master/overlayfs/ofs_32.c): `overlayfs/ofs_32.c`
- [OverlayFS x64](https://github.com/lucyoa/kernel-exploits/blob/master/overlayfs/ofs_64.c): `overlayfs/ofs_64.c`
- [memodipper](https://github.com/lucyoa/kernel-exploits/blob/master/memodipper/memodipper.c): `memodipper/memodipper.c`
- [memodipper x64](https://github.com/lucyoa/kernel-exploits/blob/master/memodipper/memodipper64.c): `memodipper/memodipper64.c`
- [ReiserFS exploit](https://github.com/lucyoa/kernel-exploits/blob/master/reiserfs/reiserfs.py): `reiserfs/reiserfs.py`
- [vmsplice exploit](https://github.com/lucyoa/kernel-exploits/blob/master/vmsplice1/vmsplice1.c): `vmsplice1/vmsplice1.c`
- [vmsplice variant](https://github.com/lucyoa/kernel-exploits/blob/master/vmsplice2/vmsplice2.c): `vmsplice2/vmsplice2.c`

### Privilege escalation

- [ACPI custom method](https://github.com/lucyoa/kernel-exploits/blob/master/american-sign-language/american-sign-language.c): `american-sign-language/american-sign-language.c`
- [Capabilities exploit](https://github.com/lucyoa/kernel-exploits/blob/master/caps_to_root/caps_to_root.c): `caps_to_root/caps_to_root.c`
- [Video4Linux exploit](https://github.com/lucyoa/kernel-exploits/blob/master/video4linux/video4linux.c): `video4linux/video4linux.c`
- [pp_key exploit](https://github.com/lucyoa/kernel-exploits/blob/master/pp_key/pp_key_64.c): `pp_key/pp_key_64.c`
- [Perf swevent](https://github.com/lucyoa/kernel-exploits/blob/master/perf_swevent/perf_swevent.c): `perf_swevent/perf_swevent.c`
- [Perf swevent x64](https://github.com/lucyoa/kernel-exploits/blob/master/perf_swevent/perf_swevent64.c): `perf_swevent/perf_swevent64.c`
- [ptrace kmod](https://github.com/lucyoa/kernel-exploits/blob/master/ptrace_kmod2/ptrace_kmod2-64.c): `ptrace_kmod2/ptrace_kmod2-64.c`

### Kernel disclosure

- [pktcdvd disclosure](https://github.com/lucyoa/kernel-exploits/blob/master/pktcdvd/pktcdvd.c): `pktcdvd/pktcdvd.c`

### Other components

- **Local user**

## Connections

- Local user → ACPI custom method: runs
- Local user → CAN BCM: runs
- Local user → Capabilities exploit: runs
- Local user → ELF uselib race: runs
- Local user → Econet exploit: runs
- Local user → Econet x64: runs
- Local user → Econet stack exploit: runs
- Local user → k-rad3 exploit: runs
- Local user → Pipe exploit: runs
- Local user → pktcdvd disclosure: runs
- Local user → RDS exploit: runs
- Local user → RDS x64: runs
- Local user → Video4Linux exploit: runs
- Local user → mremap PTE exploit: runs
- Local user → pp_key exploit: runs
- Local user → OverlayFS x86: runs
- Local user → OverlayFS x64: runs
- Local user → Timeout exploit: runs
- Local user → Perf swevent: runs
- Local user → Perf swevent x64: runs
- Local user → MSR exploit: runs
- Local user → memodipper: runs
- Local user → memodipper x64: runs
- Local user → ptrace kmod: runs
- Local user → PTY exploit: runs
- Local user → ReiserFS exploit: runs
- Local user → UDP sendmsg: runs
- Local user → vmsplice exploit: runs
- Local user → vmsplice variant: runs
- Local user → Ftrex exploit: runs
- Local user → h00lyshit exploit: runs
- Local user → Exit notify: runs
- Local user → udev exploit: runs
