Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Kb Linux Priv?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/blackfoxxx-kb-linux-priv)
---
name: kb-linux-priv
description: "Linux/Windows privesc: kernel, sudo, SUID, tokens, service abuse"
metadata:
tags: "privesc, linux, windows, sudo, suid, capability, token, service, potato"
category: "exploit"
---
# Linux Local Privilege Escalation (11 entries)
> Entries are compiled from public sources (see "References" at the end); the `exploit steps` are unverified hypotheses. Before writing a report, verify against the target version yourself and set `verified` to true.
Standard actions after obtaining a low-privilege shell (`www-data`, `nobody`, root inside a container):
```bash
uname -a; cat /etc/os-release; id; sudo -l 2>/dev/null; find / -perm -4000 -type f 2>/dev/null
dpkg -l | grep -E 'sudo|policykit|glibc' 2>/dev/null || rpm -qa | grep -E 'sudo|polkit|glibc'
```
**Check kernel and glibc/sudo/polkit versions first**, then match against entries; don't start by compiling an unfamiliar kernel exploit — crashing the box is easier than escalating privileges.
## Entries
| File | Vulnerability | Severity | Entry point |
|---|---|---|---|
| [cve-2021-3156-baron-samedit.md](references/cve-2021-3156-baron-samedit.md) | Baron Samedit (sudo heap overflow privilege escalation) | high | - |
| [cve-2021-3493-ubuntu-overlayfs.md](references/cve-2021-3493-ubuntu-overlayfs.md) | Ubuntu overlayfs local privilege escalation (2021) | high | userns + overlayfs copying setuid attributes |
| [cve-2021-4034-pwnkit.md](references/cve-2021-4034-pwnkit.md) | PwnKit (polkit pkexec local privilege escalation) | high | - |
| [cve-2022-0185-fs-context-overflow.md](references/cve-2022-0185-fs-context-overflow.md) | fs_context heap overflow privilege escalation (legacy_parse_param) | high | unshare -Ur + crafted oversized legacy mount parameters |
| [cve-2022-0847-dirtypipe.md](references/cve-2022-0847-dirtypipe.md) | Dirty Pipe (page cache overwrite privilege escalation) | high | - |
| [cve-2023-0386-overlayfs.md](references/cve-2023-0386-overlayfs.md) | overlayfs copy-up permission bypass privilege escalation | high | - |
| [cve-2023-22809-sudo-edit.md](references/cve-2023-22809-sudo-edit.md) | sudoedit environment variable injection privilege escalation (EDITOR containing --) | high | EDITOR='vim -- /etc/sudoers' |
| [cve-2023-2640-gameoverlay.md](references/cve-2023-2640-gameoverlay.md) | Ubuntu overlayfs privilege escalation (GameOver(lay)) | high | unshare + overlayfs xattr copy bypass |
| [cve-2023-32233-nftables.md](references/cve-2023-32233-nftables.md) | nf_tables use-after-free privilege escalation (2023) | high | unshare + batched nft rules triggering UAF |
| [cve-2024-0582-io-uring-uaf.md](references/cve-2024-0582-io-uring-uaf.md) | Linux io_uring local privilege escalation (CVE-2024-0582) | high | Fixed file registration then freed pages → remap and overwrite |
| [cve-2024-1086-nftables.md](references/cve-2024-1086-nftables.md) | nf_tables use-after-free privilege escalation | high | - |
## How to use this page
1. In a container, first confirm privileges: `capsh --print`, `cat /proc/self/status | grep Cap`. If `CAP_SYS_ADMIN` is present, prioritize the `cgroup`/`overlayfs`/`mount` routes; no need to hit a kernel UAF.
2. Kernel exploits can panic; first validate on a lab machine with the same kernel, then decide whether to run against production.
3. After successful privilege escalation, first establish a reproducible credential (`sudo` user, `authorized_keys`), then clean up exploit files.