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-Check — CVE-2026-31431 Copy Fail Linux kernel vulnerability detection script | Kitploit
Tools/GitHubGitHub/tangjie1/cve-2026-31431-check
Privilege EscalationVulnerability ScannersContainer SecurityVulnerability AnalysisExploitationForensicsPenetration TestingIncident ResponseLog Analysis
GitHubtangjie1/cve-2026-31431-check

CVE-2026-31431-Check

CVE-2026-31431 Copy Fail Linux kernel vulnerability detection script

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

CVE-2026-31431 (Copy Fail) Vulnerability Check Script

License Shell Support

Vulnerability Overview

CVE-2026-31431 (Copy Fail) is a Linux kernel local privilege escalation vulnerability that exploits AF_ALG sockets (address family 38) combined with the splice() zero-copy system call to bypass file write permissions and tamper with the page cache, enabling modification of SUID binaries without write permission and subsequently gaining root privileges.

Attack Chain

root@kitploit:~
socket(AF_ALG, SOCK_SEQPACKET, 0)        # Create AF_ALG socket
  -> bind(authesn(hmac(sha256),cbc(aes)))   # Bind AEAD encryption template
    -> sendmsg(AEAD operation)                        # Trigger kernel crypto path
      -> splice(-> target file)                      # Zero-copy write, bypassing permission checks
        -> Tamper with SUID files like /usr/bin/su          # Escalate to root

Affected Kernel Versions

Script Features

  • Vulnerability Detection: Kernel version check + algif_aead four-state analysis + mitigation checks
  • Intrusion Investigation: SUID page cache comparison + module load history + Shell history scan + system file integrity + log audit + container detection
  • Remediation Recommendations: Three defense methods (modprobe.d / initcall_blacklist / kernel upgrade), with distribution-specific commands
  • Incident Response: Automatically outputs a complete emergency response procedure when intrusion indicators are found

Quick Start

root@kitploit:~
# Download the script
wget https://raw.githubusercontent.com/tangjie1/CVE-2026-31431-Check/main/cve-2026-31431-check.sh

# Grant execute permission and run (requires root)
chmod +x cve-2026-31431-check.sh
sudo ./cve-2026-31431-check.sh

# Non-interactive mode (for automation/CI)
sudo ./cve-2026-31431-check.sh --non-interactive

Check Item Description

Part 1: Vulnerability Detection [1/3]

Part 2: Intrusion Investigation [2/3]

Part 3: Remediation Recommendations [3/3]

Supported Systems

Ubuntu / Debian / Kali / CentOS / RHEL / Rocky / AlmaLinux / Fedora / openSUSE / Arch Linux / Alpine Linux

License

MIT License

Disclaimer

This tool is intended for security research and authorized penetration testing only. Users must ensure compliance with local laws and regulations and use it only on target systems for which they have obtained explicit authorization. The developer assumes no responsibility for any consequences of unauthorized use.

Download Tool
Kernel BranchAffected RangeFixed Version
mainline / 6.19.x< 6.19.12>= 6.19.12
6.18.x (stable)< 6.18.22>= 6.18.22
6.12.x (LTS)< 6.12.23>= 6.12.23
6.6.x (LTS)< 6.6.87>= 6.6.87
6.1.x (LTS)< 6.1.130>= 6.1.130
4.14 ~ < 7.0All affectedUpgrade to a secure version
< 4.14Not affected-
>= 7.0Fix included-
IDCheck ItemDescription
[1.0]Affected version range tableShows affected/fixed version comparison for each branch
[1.1]Kernel versionCompared against known affected ranges and fixed baselines
[1.2]algif_aead module statusFour states: built-in / loaded / present but loadable on demand / absent
[1.3]authencesn crypto templateWhether available in /proc/crypto
[1.4]Mitigationsinitcall_blacklist + modprobe.d blacklist
[1.5]Comprehensive assessmentMulti-factor cross-check yielding safe/medium/high/critical conclusion
IDCheck ItemDescription
[2.1]SUID page cache detectiondd direct I/O vs cached hash comparison
[2.2]Module load historydmesg + lsmod load duration
[2.3]Shell history scanKeyword matching across all users' .bash_history
[2.4]System file detectionUID=0 anomalous users / passwd & SUID modification times
[2.5]Temporary directory scanSuspicious files in /tmp /var/tmp /dev/shm within the last 24h
[2.6]System log auditsu failure records + sudo vulnerability keywords
[2.7]Container escape detectionDocker environment + seccomp + /proc/1/root
MethodPrincipleReboot RequiredApplicable Scenario
Method 1modprobe.d blacklist + rmmodNoCONFIG=m (module mode)
Method 2initcall_blacklist kernel parameterYesCONFIG=y (built-in mode) or defense in depth
Method 3Upgrade kernel to a secure versionYesPermanent fix (recommended)