
Local privilege escalation exploit targeting a Linux kernel io_uring AF_VSOCK reference-count bug, using page-cache manipulation to overwrite /usr/bin/su and obtain a root shell. Intended for authorized security research and testing.
HackSpeak 分发镜像。本仓库为 MaherAzzouzi/vsockdrop 的分发镜像,代码与上游一致;上游未附 LICENSE,镜像按分发惯例采用 MIT License,Copyright (c) 2026 HackSpeak,源码版权归原作者 MaherAzzouzi。
⚠️ 包含完整本地提权(LPE)exploit——会修改
/usr/bin/su的 page-cache(CoW 文件系统上可能持久化到磁盘);仅供安全研究、漏洞验证与授权测试使用,只能在你自己拥有或明确授权的隔离环境中运行,勿对未授权系统使用。
VsockDrop(CVE-2026-53365) 是 Linux 内核 io_uring 零拷贝发送路径(AF_VSOCK)的引用计数处理不当漏洞,可导致无特权本地提权(LPE)。
io_uring 使用 SKBFL_MANAGED_FRAG_REFS 但 vsock 路径未遵守该标志 → __skb_frag_unref() 对 managed page 调用 put_page() → 每次发送一次额外的 put_page,直接递减 pin 计数;SEND_ZC,将 refcount = 1 + 1024 耗尽至 0 → 仍 pinned 的 page 被释放到 PCP freelist;pread /usr/bin/su 第 0 页,从 LIFO freelist 拿回刚释放的 PFN → 该 page 同时被 io_uring fixed buffer 与 su page-cache 别名;write_fixed/read_fixed 改写 su page 中的 PT_INTERP 字符串为攻击者 loader 路径;exec("/usr/bin/su")(setuid-root)→ 内核映射攻击者 loader 为解释器 → 以 root 凭据进入 → root shell。make
./exploit
⚠️ 危险操作:exploit 会修改 /usr/bin/su 在 page-cache 中的内容;在 CoW 文件系统(如 Btrfs、ZFS)上,该修改可能持久化到磁盘。只在可销毁的隔离环境运行。