Skip to content
Back to skills

Kb Linux Priv

BSecurity

Linux/Windows privesc: kernel, sudo, SUID, tokens, service abuse

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 29, 2026
securitygoshellbash

Security analysis

B75/100
  • criticalAccesses sensitive system or user directories

Pro scans all 12 files and shows the line behind each finding

Scanned November 29, 2026

npx -y skills add blackfoxxx/kestrel --skill kb-linux-priv --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Kb Linux Priv?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Kb Linux Priv
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/blackfoxxx-kb-linux-priv/badge)](https://www.skillsdirectory.com/skills/blackfoxxx-kb-linux-priv)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Files in this skill

  • SKILL.md3.4 KB
  • references/cve-2021-3156-baron-samedit.md1.5 KB
  • references/cve-2021-3493-ubuntu-overlayfs.md1.3 KB
  • references/cve-2021-4034-pwnkit.md1.8 KB
  • references/cve-2022-0185-fs-context-overflow.md1.8 KB
  • references/cve-2022-0847-dirtypipe.md1.8 KB
  • references/cve-2023-0386-overlayfs.md1.5 KB
  • references/cve-2023-22809-sudo-edit.md1.5 KB
  • references/cve-2023-2640-gameoverlay.md1.8 KB
  • references/cve-2023-32233-nftables.md1.3 KB
  • references/cve-2024-0582-io-uring-uaf.md1.4 KB
  • references/cve-2024-1086-nftables.md1.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.