Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacyΒ© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-46300_Fragnesia β€” Linux kernel local privilege escalation exploit with automated prerequisite audit for CVE-2026-46300, validating patch status, XFRM ESP-in-TCP configuration, and user namespaces before compiling and running the exploit. | Kitploit
Tools/GitHubGitHub/kentox493/cve-2026-46300_fragnesia
Privilege EscalationVulnerability AnalysisExploitationPenetration TestingRed TeamingBinary Exploitation
GitHubkentox493/cve-2026-46300_fragnesia

CVE-2026-46300_Fragnesia

Linux kernel local privilege escalation exploit with automated prerequisite audit for CVE-2026-46300, validating patch status, XFRM ESP-in-TCP configuration, and user namespaces before compiling and running the exploit.

Most Popular

View all β†’

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools β†’
Share
View Repository
292 months agoNot yet reviewed

🧨 Fragnesia β€” CVE-2026-46300

Linux Kernel LPE Audit & Exploit Toolkit Β· Page-Cache / XFRM ESP-in-TCP (espintcp) Regression

C Shell License Platform

Interactive audit β†’ LPE prerequisite detection β†’ Automated exploit execution (after confirmation)


⚠️ Ethical & Legal Warning This tool is intended solely for legitimate and authorized security testing β€” contracted pentests, lab/CTF environments, or your own assets. Unauthorized use on systems without the owner's permission is a criminal offense (UU ITE, Computer Fraud and Abuse Act, etc.). The user bears full responsibility.


πŸ“– Vulnerability Summary

CVE-2026-46300 is a Local Privilege Escalation (LPE) vulnerability in the Linux kernel caused by a regression in skb_try_coalesce() that leads to page-cache corruption, exploited through the XFRM ESP-in-TCP (espintcp) subsystem.

ItemDetail
CVECVE-2026-46300
TypeLocal Privilege Escalation (LPE)
ComponentLinux kernel β€” page-cache + XFRM ESP-in-TCP (espintcp)
Root Causeskb_try_coalesce() regression β†’ memory/page-cache corruption
Prerequisites3 conditions must be met (see audit table)
ImpactNon-privileged user β†’ root

This repository contains 2 components:

FileFunction
fragnesia.shAudit scanner β€” checks the 3 prerequisites, then offers exploit execution if the target is vulnerable
fragnesia.cLPE exploit β€” exploit source code compiled & run by the script

πŸ— Workflow

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   fragnesia.sh        β”‚
β”‚   Audit: 3 checks     β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
           β–Ό
   CHECKS_TRIGGERED > 0 ?
   β”Œβ”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”
   β”‚ Yes          β”‚ No β†’ Done (target safe)
   β–Ό              β”‚
   Is fragnesia.c present?
   β”Œβ”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”
   β”‚ Yes          β”‚ No β†’ instructions, done
   β–Ό              β”‚
   User confirmation [y/N]
   β”Œβ”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”
   β”‚ Yes          β”‚ No β†’ aborted, done
   β–Ό              β”‚
   gcc -O2 -w fragnesia.c -o exp
   β”‚
   β–Ό
   ./exp   ← run exploit

βš™οΈ System Requirements

Operator (host where the script is run):

  • Linux (bash) β€” tested on Kali / Ubuntu / Debian
  • gcc for compiling the exploit
  • Shell access (local/SSH) to the target

Target (to be potentially vulnerable):

  • Kernel affected by CVE-2026-46300 (without the skb_try_coalesce() patch)
  • CONFIG_XFRM_ESPINTCP / CONFIG_INET_ESPINTCP enabled (=y/m)
  • Unprivileged user namespace enabled (kernel.unprivileged_userns_clone=1)
  • Local access as a non-root user (for LPE validation)

πŸ“₯ Installation

# 1. Clone
git clone https://github.com/Kentox493/CVE-2026-46300_Fragnesia.git
cd CVE-2026-46300_Fragnesia

# 2. Make sure the script is executable
chmod +x fragnesia.sh

# 3. (Optional) Toolchain if not already available
sudo apt update && sudo apt install -y build-essential
# or (RHEL/Fedora)
sudo dnf groupinstall "Development Tools"

πŸš€ Usage

./fragnesia.sh

fragnesia.c and fragnesia.sh must be in the same directory, because the script searches for the exploit relatively.

Interactive flow

  1. The script runs 3 automated audit checks.

  2. If there is an indication of vulnerability (CHECKS_TRIGGERED > 0), a prompt appears:

    [?] Target detected as vulnerable (2/3). Proceed with compilation & exploit execution? [y/N]:
    
  3. Type y β†’ the script automatically compiles + runs the exploit.

  4. Type anything other than y / press Enter β†’ execution is cancelled, audit ends.

Manual bypass (without audit)

gcc -O2 -w fragnesia.c -o exp
./exp

πŸ” Audit Check Details

Step 1 β€” Host & Kernel Verification

Verify hostname + running kernel, then check the distro's kernel package changelog (apt-get changelog / rpm -q --changelog) for the presence of the CVE-2026-46300 patch.

ResultMeaning
VULNNo patch in the distro changelog
SAFECVE-2026-46300 patch detected

Step 2 β€” Kernel Subsystems Configuration (XFRM / ESP)

Check the ESP-in-TCP flag in /boot/config-$(uname -r) or /proc/config.gz. Fallback: detect XFRM/IPsec modules via /lib/modules/ or lsmod.

ResultMeaning
VULNCONFIG_XFRM_ESPINTCP / CONFIG_INET_ESPINTCP enabled (=y/m)
SAFESubsystem disabled / not built

Step 3 β€” User Namespace Isolation Prerequisite

Check kernel.unprivileged_userns_clone (fallback: /proc/sys/user/max_user_namespaces).

ResultMeaning
VULNUserns enabled β†’ non-privileged user can get CAP_NET_ADMIN
SAFEUserns disabled β†’ mitigation active
UNCERTAINCannot be determined β†’ manual review required

Final Score Interpretation

ScoreVerdict
3/3 VULNπŸŸ₯ CRITICAL β€” full attack chain satisfied
1–2/3 VULN🟨 MEDIUM / PARTIALLY EXPOSED β€” partial mitigation
0/3 VULN🟩 SECURE β€” patched / components disabled

πŸ’£ Exploit Execution Phase

This phase is only active when CHECKS_TRIGGERED > 0. What the script runs:

# 1. Verify that fragnesia.c exists
# 2. User confirmation (default: NO / N)
# 3. Compile the exploit:
gcc -O2 -w fragnesia.c -o exp

# 4. Execute:
./exp

Compilation flag notes:

  • -O2 β€” level 2 optimization (crucial for race/timing-based exploits to be stable)
  • -w β€” suppress warnings (exploit source code is usually full of int-conversion and similar warnings)

Script's built-in error handling:

ConditionHandling
fragnesia.c missingInstruction message, no crash
gcc not installedMessage with toolchain install command
Compilation failedExploit is not executed, compiler error is displayed
Exit code of ./exp β‰  0Reported as a failure

πŸ“Έ Example Output

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  FRAGNESIA (CVE-2026-46300) - HOST VULNERABILITY AUDIT TOOL      β”‚
β”‚  Linux Kernel Page-Cache / XFRM espintcp Regression Inspector    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

β”Œβ”€β”€[STEP 1] Host & Kernel Verification
β”‚  [i] INFO        β”‚ Hostname      : webserver-01
β”‚  [i] INFO        β”‚ Active Kernel : 6.8.0-45-generic
β”‚  [!] VULNERABLE  β”‚ Patch Changelog -> No security patch found for CVE-2026-46300
└──

β”Œβ”€β”€[STEP 2] Kernel Subsystems Configuration (XFRM / ESP)
β”‚  [!] VULNERABLE  β”‚ ESP-in-TCP Flag -> CONFIG_XFRM_ESPINTCP / CONFIG_INET_ESPINTCP active (=y/m)
└──

β”Œβ”€β”€[STEP 3] User Namespace Isolation Prerequisite
β”‚  [!] VULNERABLE  β”‚ User Namespaces -> Enabled (Allows unprivileged user to gain CAP_NET_ADMIN)
└──

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                       EXECUTIVE AUDIT SUMMARY                    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
[!] AUDIT RESULT: CRITICAL - TARGET IS HIGHLY VULNERABLE
    All attack chain prerequisites (Kernel patch, ESP subsystem, and Userns) are satisfied.

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚           OPTIONAL: FRAGNESIA EXPLOIT EXECUTION (LPE)            β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

[i] fragnesia.c found (18,432 bytes).

[?] Target detected as vulnerable (3/3). Proceed with compilation & exploit execution? [y/N]: y
Download Tool