
Proof-of-concept exploit for CVE-2026-31431, a privilege escalation vulnerability in Linux kernels, tested on multiple distributions. For educational and research purposes only.
This repository contains a Proof of Concept (PoC) for the Copy Fail (CVE-2026-31431) vulnerability.
⚠️ Disclaimer:
This project is for educational and research purposes only.
Do NOT use this on systems you do not own or do not have permission to test.
Follow the steps below to run the PoC:
# Clone the repository
git clone https://github.com/ravindercodes/copy-fail-CVE-2026-31431
# Navigate to the project directory
cd copy-fail-CVE-2026-31431
# Run the exploit script
python3 copy_fail_exp.py
# Switch to root (if successful)
su
| Distro | Version |
|---|
| Ubuntu 24.04 LTS | 6.17.0-1007-aws |
| Amazon Linux 2023 | 6.18.8-9.213.amzn2023 |
| RHEL 10.1 | 6.12.0-124.45.1.el10_1 |
| SUSE 16 | 6.12.0-160000.9-default |