live

Temp-root persistence patterns (race-based kernelsploits)

How to make a per-boot kernel exploit (e.g. CVE-2026-43499 / GhostLock class) into a usable root environment, plus the gotchas.

The handoff daemon pattern

Exploit → UMH (usermode-helper) root daemon → local socket with peer-UID auth → client execs root shells. The persistence trick is a compile-time flag:

c // su daemon serve loop if (stop_after_late_load || (is_one_shot_shell && !SU_PERSIST_ONE_SHOT)) daemon_request_shutdown(daemon_pid, status); ````` - Default builds kill the daemon when the one-shot handoff shell exits. -#define SU_PERSIST_ONE_SHOT 1keeps it alive → **root on tap until reboot**:helper <cmd>` from any shell with the allowed peer UID.

Timing wisdom (empirical)

Kernel-context shell quirks

Automation shape

reboot → settle ~30 s → wake/stayon → one shot → check uid=0 → miss ⇒ reboot — a small loop script makes the device effectively "root on boot" as long as the PC is plugged in. On-device single-shot scripts exist too; anything that survives reboots needs an unlocked bootloader (by definition, not available here).