
Python PoC for CVE-2026-81000, a Linux kernel local privilege escalation via TUN/OVS out-of-bounds write and pipe_buffer flag manipulation to gain root.
[!WARNING] The PoC is provided solely to help defenders, maintainers, and authorized security teams validate patches, mitigations, detections, and exposure on systems they own or are explicitly authorized to test.
You are solely responsible for ensuring that your use of this material is lawful, authorized, controlled, and conducted in an isolated test environment.
[!WARNING] This PoC is destructive. It modifies
/etc/pam.d/suwithout any rollback. A misplaced overwrite can corrupt unrelated kernel memory and hang/crash the machine.Run only in a disposable VM/throwaway host.
The PoC:
/etc/pam.d/suPIPE_BUF_FLAG_CAN_MERGE in a nearby pipe_buffer, andpam_permit.so through the pipe, finishing off with su - root.The PoC assumes and targets x86-64 to keep things simple. In theory, the bug should not be arch-specific.
Enumerating exhaustively for completeness:
6.19.10-300.fc44.x86_64, or Ubuntu 24.04.4 with
6.17.0-40-generic (you can try removing these checks, but other
distros/kernel versions may require per-target customization/grooming)/etc/pam.d/su containing
pam_rootok.so, and the pam_rootok.so and pam_permit.so PAM modulesCAP_NET_ADMIN inside that
namespace/dev/net/tun, plus TUN, Open vSwitch datapath, netkit, and
VXLAN kernel supportip, unshare, true, and su, plus
and the loaded profile on Ubuntu if direct is
deniedBoth targets were tested with 29 vCPUs at 4 GB and 32 GB RAM, with the latter more reliable. Other CPU/memory combos may need more grooming and may redirect the overwrite into unrelated memory.
Run it as an unprivileged user with a passwd entry.
python3 tunderflow_root_repro.py
aa-exectrinityunshare -Urn