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
Copy-Fail---CVE-2026-31431 — Script Python pour verifier si un systeme Linux est vulnerable a la faille CVE-2026-31431 (Copy Fail), une elevation de privileges locale dans le noyau Linux. | Kitploit
Tools/GitHubGitHub/mrmixies/copy-fail---cve-2026-31431
Privilege EscalationVulnerability ScannersVulnerability AnalysisExploitationPenetration Testing
GitHubmrmixies/copy-fail---cve-2026-31431

Copy-Fail---CVE-2026-31431

Script Python pour verifier si un systeme Linux est vulnerable a la faille CVE-2026-31431 (Copy Fail), une elevation de privileges locale dans le noyau Linux.

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
24 months agoNot yet reviewed

CVE-2026-31431 - Copy Fail - Detection Script

Python script to check whether a Linux system is vulnerable to the CVE-2026-31431 (Copy Fail) flaw, a local privilege escalation in the Linux kernel.

The flaw in brief

Since 2017 (commit 72548b093ee3), the kernel's algif_aead cryptographic module has handled in-place operations incorrectly. Via splice(), an unprivileged user can corrupt the page cache of a setuid binary and obtain root privileges without touching the disk.

  • CVSS: 7.8 (High)
  • Affected versions: Linux kernel 4.13 to 6.18.21 / 6.19.11
  • Fixed versions: 6.18.22+, 6.19.12+, 7.0+

What the script checks

#Check
1Kernel version (vulnerable range)
2algif_aead module loaded or loadable
3AF_ALG SOCK_SEQPACKET socket accessible without privileges
4os.splice() available (direct Python exploit)
5Setuid binaries readable by all (sudo, passwd...)
6Active protections (SELinux, AppArmor, modprobe blacklist)

Usage

root@kitploit:~
python3 check_cve_2026_31431.py

No external dependencies. Works without root.

Detection only

This script only analyzes the system. It does not exploit the flaw, does not load any module, and writes nothing to disk.

Workaround (if no update is possible)

root@kitploit:~
echo 'install algif_aead /bin/false' | sudo tee /etc/modprobe.d/algif_aead-block.conf

This workaround does not work on RHEL distributions (module built into the kernel).

Download Tool