M
Mali Pagecache Root
Open SourceAutonomous root exploit for Tcl Android TV using CVE-2022-22706
๐ณ Self-Hostable๐ No Sign-upโก Editorial Signal: 76/100โ
52 Stars
git clone https://gitlab.com/c4psu13/mali-pagecache-root.gitMali Pagecache Root is an autonomous privilege escalation exploit targeting ARM Mali GPU pagecache vulnerabilities (CVE-2022-22706) on Tcl Android TVs. It automates kernel exploitation to achieve root access on specific smart TV hardware without manual intervention.
Automates the kernel compromise lifecycle via CVE-2022-22706 without requiring external host interaction.
Leverages pagecache flaws specific to ARM Mali GPU drivers to achieve arbitrary kernel read/write.
Bypasses vendor-locked restrictions on Tcl Android TV operating systems.
Security research and vulnerability analysis of ARM Mali driver flaws on embedded Android
Gaining root shell access on Tcl Android TVs to remove bloatware or customize system partitions
Testing local privilege escalation defenses on smart TV operating systems
Security researchers, firmware reverse engineers, and advanced Android hackers targeting embedded smart TV platforms.
Mali Pagecache Root is engineered to eliminate critical operational friction in security & pentesting. From an architectural standpoint, the system adopts a local-first, self-contained deployment posture, ensuring streamlined onboarding and minimal setup overhead.
Because the underlying code is fully open-source, engineering teams can audit security implementations, inspect telemetry vectors, and extend functionality via custom fork without risk of sudden vendor deprecation.
Mali Pagecache Root is an autonomous local privilege escalation (LPE) exploit chain engineered to achieve kernel-level root execution on ARM-based smart TV platforms, specifically weaponizing CVE-2022-22706 against Tcl Android TVs powered by Realtek RTD1319 SoCs and ARM Mali-G31 GPUs. The vulnerability originates in the Mali kernel base driver (kbase), where improper physical page tracking during GPU memory allocation permits unprivileged user space processes to map read-only file-backed pages into GPU memory via the KBASE_IOCTL_MEM_IMPORT ioctl call. The exploit targets the shared system pagecache of libc.so, specifically locating the memory page containing the __cxa_atexit runtime cleanup routine. By issuing GPU write commands, the exploit overwrites executable code inside the pagecache without triggering write-protection faults, completely bypassing on-disk read-only mount restrictions and Android dm-verity kernel integrity protections. When system daemons or user processes subsequently invoke __cxa_atexit, execution redirects to staged shellcode. The shellcode interacts with vendor-specific physical memory interfaces (/dev/rtkmem) to disable SELinux enforcement (selinux_state.enforcing = 0) and overwrite process credentials (cred structure pointers to init_cred), cleanly elevating the caller context to UID 0 root privilege without requiring interactive host debugging intervention.
Developer and security researcher ergonomics in Mali Pagecache Root prioritize autonomous execution, self-contained dependencies, and deterministic weaponization. The exploit is implemented in modular C and compiled via the Android NDK using aarch64-linux-android-clang with static linking. Deployment to the target device is executed through standard Android Debug Bridge commands (adb push mali-root /data/local/tmp/ && adb shell chmod +x /data/local/tmp/mali-root). Execution requires no complex arguments or external runtime dependencies; running /data/local/tmp/mali-root launches the autonomous exploit sequence. The CLI surface emits detailed ANSI-colored diagnostic telemetry, logging virtual memory offsets, target physical memory addresses, pagecache import ioctl return statuses, shellcode injection offsets, and SELinux enforcement state transitions in real time. Upon successfully escalating privileges, the binary either immediately spawns an interactive root shell (/system/bin/sh) or binds an unauthenticated root telnet daemon to a configurable local network port. The codebase includes clear build manifests and test harnesses, allowing security researchers to verify Mali GPU memory mapping behavior, validate pagecache dirty-state flags, and evaluate kernel hardening mitigations in laboratory settings with granular step-by-step diagnostic feedback. Researchers can customize exploit payload stages via modular compiler flags, enabling selective testing of pagecache corruption mechanisms without executing persistent system modifications.
Mali Pagecache Root is published as open-source security research on GitLab under permissive research licensing, providing security engineers, firmware auditors, and hardware hackers with unrestricted access to inspect the exploit mechanics without commercial licensing costs. In terms of Total Cost of Ownership and tooling ROI, the utility provides immense value to hardware reverse-engineering labs. It allows security auditors and device owners to gain tethered root access on locked smart TV firmware without purchasing expensive proprietary hardware debuggers (such as JTAG adapters), specialized eMMC chip-off desoldering stations, or commercial forensic penetration testing suites that cost thousands of dollars annually. However, the operational risk and instability costs are substantial. Because the exploit directly manipulates shared pagecache memory in core system shared libraries (libc.so), any misalignment in function offsets or timing race conditions will trigger immediate kernel panics, SIGSEGV crashes across critical Android services (zygote, system_server), or potential device bootloops if system partitions are modified carelessly. The tool contains zero tracking scripts, requires no cloud infrastructure, and performs no unauthorized remote telemetry exfiltration, ensuring strict operational secrecy in research labs. Consequently, hardware hacking teams must maintain offline system partition backups before initiating exploit cycles on irreplaceable hardware targets.
Mali Pagecache Root is definitively not a general-purpose consumer software product; it is an offensive security proof-of-concept intended strictly for authorized hardware research, vulnerability validation, firmware auditing, and forensic analysis on laboratory devices. It proves exceptionally effective for device owners seeking to liberate locked Tcl Android TVs from proprietary bloatware, disable telemetry, or audit embedded smart TV operating systems. However, deploying this exploit in a production environment or on mission-critical appliances is strongly contraindicated due to the high risk of memory corruption, kernel panics, and unrecoverable firmware bricking. Furthermore, the exploit is ineffective against modern patched Android devices: systems running ARM Mali driver version r38p0 or later, Linux kernels backported with CVE-2022-22706 patches, or operating systems that restrict /dev/mali0 access via tight SELinux ioctl whitelists will reject the memory import operation. Device manufacturers and embedded Linux engineers should treat this codebase as a critical security audit benchmark, ensuring that kernel trees apply vendor patches and that unprivileged applications are strictly blocked from accessing raw physical memory character devices like /dev/rtkmem across enterprise fleets. Integrating automated runtime memory integrity checkers into consumer firmware provides robust defense-in-depth against unauthorized GPU memory-import privilege escalation attempts.
Mali Pagecache Root is 100% free and open-source under an open software license. There are no mandatory monthly subscription fees to access the source code or run it locally.
Unlike standard commercial rooting apps, this tool provides direct, transparent exploit code leveraging a specific kernel CVE for educational and research purposes.
Yes. Mali Pagecache Root is designed for self-hosting via Docker or direct server deployment. Running on your own infrastructure allows you to maintain direct control over your local compute, database storage, and operational environment.
No account creation or credit card is required to evaluate Mali Pagecache Root. You can immediately access core features or run it locally without onboarding friction.
You can launch or test Mali Pagecache Root quickly using the following command: git clone https://gitlab.com/c4psu13/mali-pagecache-root.git Visit the official portal at https://gitlab.com/c4psu13/mali-pagecache-root for documentation and guides.
ToolsRadar maintains strict editorial independence. This review of Mali Pagecache Root was conducted using our standardized 5-pillar evaluation framework (Setup, Code Auditability, Maintenance Vitality, Cost Advantage, and Community Signal). We do not accept paid placements to inflate benchmark scores.
Maintainers of Mali Pagecache Root and community advocates can display this real-time verification badge in your GitHub README, official documentation, or landing page.
[](https://lordorange.top/tool/mali-pagecache-root)<a href="https://lordorange.top/tool/mali-pagecache-root" target="_blank"><img src="https://lordorange.top/badge/mali-pagecache-root.svg" alt="Featured on ToolsRadar" /></a>Compare other trending developer tools and open-source projects in this space.
Cross-referenced architectural playbooks and category rankings featuring Mali Pagecache Root.
High-signal, production-tested utilities with transparent codebases and active communities.
Take back data ownership by replacing expensive monthly cloud subscriptions with self-hosted software.
The definitive guide to escaping SaaS subscription sprawl with Coolify, Traefik, Tailscale, and automated S3 backup pipelines.
Replace sluggish 1970s Unix utilities with blisteringly fast, memory-safe Rust and Go modern CLI powerhouses.