Skip to content
KitploitKITPLOIT
도구블로그
제출
도구블로그
제출

해킹, 침투 테스트 및 사이버 보안 도구를 당신의 보안 무기고에!

Kitploit은 해킹, 사이버 보안 및 침투 테스트 도구 디렉토리입니다. 최신 프로젝트 업데이트를 발견하여 취약점을 찾고, 시스템을 분석하고, 테스트를 자동화하고, 보안을 강화하세요.

··피드·문의·개인정보·© 2026 Kitploit

도구 디렉토리

카테고리

모든 카테고리 보기
Loading categories
copy-fail-python — Zero-dependency Python PoC for CVE-2026-31431, Linux kernel LPE via AF_ALG/splice page-cache corruption. | Kitploit
도구/GitHubGitHub/1m1ssher/copy-fail-python
Privilege EscalationVulnerability AnalysisExploitationLearning & EducationBinary Exploitation
GitHub1m1ssher/copy-fail-python

copy-fail-python

Zero-dependency Python PoC for CVE-2026-31431, Linux kernel LPE via AF_ALG/splice page-cache corruption.

저장소 보기
16일 전아직 검토되지 않음

인기

모두 보기 →

커뮤니티에서 가장 많이 사용되는 도구를 찾아보세요.

모든 도구 탐색

도구 컬렉션을 둘러보세요

모든 도구 보기 →
공유
요청한 언어로 콘텐츠를 사용할 수 없습니다. 영어 버전을 표시합니다.

copy-fail-python

A compact, zero-dependency Python proof-of-concept for Copy Fail (CVE-2026-31431), a Linux kernel local privilege escalation through AF_ALG and splice() that corrupts the page cache of a readable file such as /usr/bin/su.

This is a port of the Theori PoC with two practical changes: the splice() syscall is invoked via ctypes instead of C, making it run on Python 3.7+ with nothing to compile, and the payload spawns a /bin/bash root shell rather than /bin/sh.

Affected Kernels

Check yours with uname -r. The exploit targets roughly kernels 4.9 through 6.18; patched distro kernels may be unaffected even within those ranges.

Usage

Nothing to install: the exploit uses only the Python standard library. You need read access to the target binary (readable SUID binaries are the usual target) and a vulnerable kernel.

root@kitploit:~
python3 copy_fail_exp.py /usr/bin/su

Expected output on a vulnerable host:

root@kitploit:~
[*] target: /usr/bin/su
[*] AF_ALG socket opened
[*] splicing page cache of target...
[*] page cache corrupted
[*] spawning root shell...
# whoami
root

Real output varies by kernel and timing. If the shell doesn't appear, re-run it; timing-dependent cache corruption sometimes needs a second attempt.

Requirements

RequirementWhy

References

  • Theori PoC and writeup
  • CVE-2026-31431, NVD

Disclaimer

Authorized testing and education only. Do not run this on systems you do not own or have explicit permission to test.

도구 다운로드
BranchAffected versions
4.94.9.x
4.14–4.19All stable point releases
5.4–5.15All stable point releases
6.16.1.x
6.66.6.x
6.126.12.x (upstream-fixed range)
Python 3.7+ctypes splice implementation
Readable target binaryCache page to corrupt (e.g., /usr/bin/su)
Vulnerable kernelSee the affected-versions table above
Local user accountThis is a local privilege escalation