GhostLock
About 630 wordsAbout 2 min
GhostLock covers CVE-2026-43499. It loads a kernel module using an exact-match profile, then hands root to a KernelSU-family manager.
Entry: Manual escalation → More actions → GhostLock.
Preflight
Selecting the menu item runs a preflight whose result decides whether the run starts:
| Field | Meaning |
|---|---|
adbConnected | Whether the wireless debugging session is usable |
shellUid | Current shell uid; 2000 is expected |
seccomp | Shell seccomp value; must be 0 |
release | Device kernel release |
profileRelease | Release declared by the matched profile |
profileMatched | Exact match or not |
route | Race route used by this run |
binaryPresent | Whether libghostlock.so ships in the package |
ksudPath | Where ksud comes from |
profileError | Profile encoding error |
When a hard requirement fails, the terminal reports the reason and the run does not start:
| Case | Terminal output |
|---|---|
| Not connected | Wireless debugging is not connected; pair in settings |
| Binary missing | libghostlock.so is missing; reinstall the app |
| No profile hit | No profile for this release; no approximate match |
| Non-zero seccomp | The shell has a seccomp filter this chain cannot clear |
| Profile mismatch | The selected profile declares kernel A while the device is B; it will not be applied |
Confirmation
| Field | Value |
|---|---|
| Manager | Currently selected manager |
| Kernel | Device release |
| Kernel profile | Yes / no |
| Route | Route name |
| Seccomp | Raw value |
| ksud | Provided by the package or by the selected manager |
Extra toggle:
| Toggle | Effect |
|---|---|
| Safe mode | Writes disable markers to modules under /data/adb/modules before running, reducing boot risk from modules incompatible with the target kernel |
Risk note: SELinux is set to permissive during the run and may stay permissive after a failure. A reboot restores it. The primary action is Start.
Execution
The terminal prints module loading, handoff, and verification. On success it writes:
Kernel module loaded; KernelSU has taken over
After success the app automatically runs one handoff to the selected manager so the shell side (uid 2000) also obtains root. That output continues in the same terminal.
Final classifications
| Conclusion | Meaning |
|---|---|
| Kernel module loaded; KernelSU has taken over | Full success |
| KernelSU already took over this boot; skipping | Already rooted this boot |
| Temporary root obtained but the KernelSU module is not loaded yet | module load pending |
| The temporary root child still carries a seccomp filter; KernelSU cannot load | W3 did not clear seccomp |
| KernelSU module load failed; see the ksud output above | ksud attempted and failed |
| Disabling SELinux failed; see the output above | W1 failed |
| Writing credentials failed; see the output above | W2 failed |
| Clearing seccomp failed; see the output above | W3 failed |
| The profile and device kernel differ; the native side exited | Release mismatch |
| The race entered a dirty state; the native side stopped the process | Race failure |
| Timed out waiting for a final signal; local reading stopped and the device side may still be running | Local timeout or cancel |
| The native side did not accept the run: reason code | alreadyRunning / noAdb / notShell / seccompFiltered / missingBinary / noProfile / profileInvalid |
| No recognizable final marker; see the output above | Evidence without a conclusion |
Exit codes: 0 completed, 1 failed, 255 native pr_error, 70 dirty race.
Kernel profiles
- Built-in profiles ship with the app, are read-only, searchable, and expand 30 entries per batch.
- Custom profiles are generated from
boot.imgor an OTA package and stored in the app's private directory. - The active source is chosen through the three-step wizard in the GhostLock tab of Kernel Profiles.
- A profile whose release differs from the device is not applied; the terminal prints both releases.
Stop and timeout
A stop button appears while running. It ends local reading and the terminal records that the device side may still be executing. Device-side processes ignore that button.