rio128128/copy-fail-CVE-2026-31431
PoC files
2 filesFile viewing is interactive and short-lived. Downloads are password-protected ZIP archives using password eip.
Analysis
Technical assessment
A 732-byte Python script that exploits CVE-2026-31431 in the Linux kernel's AF_ALG/authencesn to perform a controlled 4-byte write into the page cache of a setuid binary (/usr/bin/su), achieving local privilege escalation to root.
Backdoor review
No backdoor observed in reviewed code
The repository contains a README describing CVE-2026-31431 and a Python exploit script. The script uses standard library calls to interact with AF_ALG sockets and splice to corrupt the page cache of /usr/bin/su, then executes the modified binary. No concealed backdoor, unrelated payload, or operator-directed harm beyond the described exploit is observed.
Classification basis and observed behavior
Classification basis
The artifact copy_fail_exp.py contains executable Python code that performs the full exploit chain: socket setup, crafted sendmsg, splice of target file, recv to trigger the vulnerability, and execution of the corrupted binary to gain root. The README.md describes it as an exploit and confirms it was used to root multiple distributions.
copy_fail_exp.py:1-10README.md:99-128Requirements
- Unprivileged local user access
README.md:5 - Python 3.10+ with os.splice support
README.md:30 - Target setuid binary (/usr/bin/su) must be readable
README.md:101
Observed behavior
- Opens an AF_ALG socket and binds to authencesn(hmac(sha256),cbc(aes))
copy_fail_exp.py:5 - Sends crafted AAD containing shellcode bytes via sendmsg()
copy_fail_exp.py:5 - Uses splice() to feed page cache pages of /usr/bin/su into the AF_ALG socket
copy_fail_exp.py:5 - Triggers recv() to cause authencesn to write shellcode bytes into the page cache
copy_fail_exp.py:6-7 - Executes the corrupted /usr/bin/su to gain root shell
copy_fail_exp.py:10
Behaviors behind the backdoor verdict
Observables
- Exploit Target
- /usr/bin/suThe script targets a setuid-root binary for privilege escalation, consistent with the described vulnerability.
copy_fail_exp.py:8 - Payload
- zlib-compressed shellcode embedded in the scriptThe script decompresses and writes this payload into the target binary's page cache to achieve code execution.
copy_fail_exp.py:8-9
What the analysis did not establish
- The compressed payload in copy_fail_exp.py is opaque; its exact behavior is not analyzed beyond its role in the described exploit.
- Only the two text files in the repository were reviewed; no other artifacts exist in the provided evidence.
This review is limited to the supplied PoC code and context. It does not assert that the code works or is safe to execute.