LSPrivilege README

项目的 README,来自 github.com/LSPosed/LSPrivilege。合并为一个 markdown 文件:README.md。

LSPrivilege

中文

LSPrivilege is a modular Android kernel privilege-escalation app for gaining temporary root on supported kernels and loading root managers such as KernelSU or APatch. It is designed to support multiple exploit backends rather than targeting a single vulnerability (currently shipping CVE-2026-43499, with additional backends planned).

Use the app

  1. Install a root manager APK from KernelSU, SukiSU Ultra, BakaSU/ReSukiSU, KowSU, or APatch.
  2. Install the LSPrivilege APK and open it.
  3. Check that your kernel is supported, then tap Run.

Support requires an exact uname -r match. Check the supported devices for your kernel build.

If Shizuku is enabled, start it with ADB before running LSPrivilege. Tap LSPrivilege's status card to grant access.

Any root manager that ships libksud.so or libapd.so provides ksud/apd for module loading. The built-in list (KernelSU, SukiSU Ultra, ReSukiSU, BakaSU, KowSU, APatch) is auto-detected, and other managers can be picked in Settings → Root manager. Without ksud/apd, W1/W2 still grant uid 0 but no module is loaded.

Add a kernel profile

You can import a profile without rebuilding the app:

Extractor output is an unverified candidate. The app checks missing or invalid fields before execution. Generating a profile does not prove device support. See the porting guide for validation and built-in registration.

See the MediaTek guide for image-based address recovery and the rooted-device fallback.

Command-line tools

Run the native binary with an exported profile

Requires the Android NDK, make, Gradle, and ADB. An adb shell run skips the app's seccomp bypass stage.

make -C src lsprivilege
./gradlew exportKernelProfiles
adb push build/native/lsprivilege /data/local/tmp/lsprivilege
adb push "build/kernel-profiles/<release>.bin" /data/local/tmp/profile.bin
adb shell chmod 755 /data/local/tmp/lsprivilege
adb shell /data/local/tmp/lsprivilege --load-prebuilt-profile /data/local/tmp/profile.bin
Build and run the offset extractor

Requires Rust. The extractor accepts a boot image, a full OTA ZIP, or an HTTP(S) URL.

(cd tools/extract_rs && cargo build --release)
build/extract/release/lsprivilege-extract boot.img --xbl-config xbl_config.img --format conf --out profile.conf
build/extract/release/lsprivilege-extract OTA.zip --format conf --out profile.conf

Import profile.conf in the app. Omit --xbl-config if you do not have that image. The extractor rejects a patched remove_waiter() with exit code 6.

Reference

Credits and license

Licensed under Apache License 2.0. Based on:

LSPrivilege (LSPosed/LSPrivilege)

正在搜索数据库…

这是什么?GhostLock 是一个一键式 Android 应用,运行 CVE-2026-43499 内核漏洞利用,在匹配的易受攻击内核上授予 uid 0(root),之后可选加载 KernelSU 风格的模块。
这是 root 漏洞利用应用,还是像 Magisk 那样的 root 管理器?它是一个独立的漏洞利用执行应用,不是 root 管理器:它驱动的是 CVE-2026-43499 漏洞本身,之后只会交接给 KernelSU、ReSukiSU 或 KowSU 来加载模块;没有其中之一时,它仍会授予 uid 0,但不会加载任何东西。
怎么运行这个漏洞利用?打开 GhostLock 应用并点击 Run;它会自动匹配一个内置的内核配置文件,并为你的内核执行正确的利用路径。
我需要先安装 KernelSU 或 Shizuku 吗?漏洞利用本身不需要任何 root 管理器,但之后加载模块需要 KernelSU、ReSukiSU 或 KowSU 的 ksud 组件;标记为 'Shizuku required' 的步骤则改为通过 ADB 启动的 shell UserService 来运行。
它在任何 Android 内核上都能用吗?不能。GhostLock 用精确的 'uname -r' 对照内置配置文件检查设备内核,遇到不认识或已修补的内核会拒绝运行,因此某次运行成功绝不保证在未经测试的设备上也能支持。
CVE-2026-43499 到底是什么?它是一个内核 futex 原语缺陷,被用作该漏洞利用的后端,影响包括 5.15、6.1 和 6.6/6.12 在内的一系列 Linux 内核分支,每个分支都通过略有不同的竞态来利用。
我可以为内置列表之外的内核添加支持吗?可以——tools/extractrs 工具能从 boot.img、完整的 OTA ZIP 或其 URL 推导出所需的偏移量,并生成可导入应用内的 .conf 配置文件,无需重新构建 GhostLock。
这个漏洞利用的竞态在不同内核上具体是怎么工作的?因内核系列而异:6.6/6.12 内核让 select() 与一个扰乱等待者优先级的线程进行竞态;6.1 内核通过一个打洞页面驱动 getsockopt(TCPZEROCOPYRECEIVE);5.15 内核则改用多播等待者。
如果在已修补的内核上尝试会怎样?偏移提取器会先反汇编内核的 removewaiter() 函数,如果发现修复已存在就以退出码 6 退出,因此在提取任何利用偏移量之前,已修补的内核就会被拒绝。
作者
LSPosed
大小
61.1 MB
星标
3.3K
更新
提交Nov 18
时长
3个月
提交 · 90 天