Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
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.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-31431-live-process-code-injection — Proof-of-concept for CVE-2026-31431 demonstrating live process code injection via page cache, achieving arbitrary code execution in a running process without root. | Kitploit
Tools/GitHubGitHub/kvakirsanov/cve-2026-31431-live-process-code-injection
Exploit FrameworksVulnerability AnalysisExploitationBinary Exploitation
GitHubkvakirsanov/cve-2026-31431-live-process-code-injection

CVE-2026-31431-live-process-code-injection

Proof-of-concept for CVE-2026-31431 demonstrating live process code injection via page cache, achieving arbitrary code execution in a running process without root.

View Repository
23 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-31431 (Copy Fail) — Live Process Code Injection PoC

Demonstrates arbitrary code execution in a running process via page cache.

by @secinfosex

What it does:

  1. Compiles a test binary: check() { return 42; } in an infinite loop
  2. Launches the process
  3. Waits for "check() = 42" output
  4. Replaces check() with getpid() shellcode via Copy Fail page cache write
  5. Waits for "check() = " output
  6. Compares PID from output with actual process PID
  7. Restores page cache (posix_fadvise DONTNEED)

Success: check() returns the real PID — a syscall executed by the kernel in the process context. Arbitrary code execution confirmed.

Requirements:

  • Unpatched kernel with algif_aead module available
  • gcc
  • Root not required (but AF_ALG socket access needed)

Usage: python3 copy_fail_inject_poc.py

Download Tool