← Back to Home

LINUX FAIL

Copy Fail — CVE-2026-31431 — Mitigation Guide

Copy Fail CVE-2026-31431

1. What Is This

CVE-2026-31431, known as Copy Fail, is a privilege escalation vulnerability present in the Linux kernel since 2017, affecting practically every distribution. A normal user can become root in under a second with nothing more than a Python script. No password. No special privileges.

If you just want to fix it without reading, go to the script.

2. Are You Vulnerable?

Download the check script from the official CVE site (link in the video description) and run it as a normal user:

python3 copy_fail_check.py

If your prompt changes from $ to # — you are vulnerable.
If it stays as user — you are already patched.

3. Update Your Kernel

If your distribution has released a patched kernel, update it and reboot. Then run the check again.

4. Manual Mitigation

If your distribution has not released a patched kernel yet, disable the vulnerable module. Two commands.

Block it persistently:

echo "install algif_aead /bin/false" | sudo tee /etc/modprobe.d/disable-algif_aead.conf

Remove it from the running kernel immediately:

sudo rmmod algif_aead

Run the check script again. If you see this, you are protected:

Traceback (most recent call last):
  File "youtux.py", line 9, in <module>
    while i<len(e):c(f,i,e[i:i+4]);i+=4
  File "youtux.py", line 5, in c
    a=s.socket(38,5,0);a.bind(...)
FileNotFoundError: [Errno 2] No such file or directory

When your distro eventually releases the patched kernel, revert with:

sudo rm /etc/modprobe.d/disable-algif_aead.conf
sudo reboot

5. Script

The script checks if you are vulnerable, applies the mitigation if needed, and optionally reboots. Works on any distribution.

Download:

download copy_fail_mitigate.sh

Run:

chmod +x copy_fail_mitigate.sh
sudo ./copy_fail_mitigate.sh

With automatic reboot:

sudo ./copy_fail_mitigate.sh --reboot

To revert once your kernel is patched:

sudo ./copy_fail_mitigate.sh --revert

Comments