Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2019-2215-HuaweiP20Lite — Exploit for CVE-2019-2215 (bad binder) for Huawei P20 Lite | Kitploit
Tools/GitHubGitHub/willboka/cve-2019-2215-huaweip20lite
Android SecurityPrivilege EscalationExploitationLearning & EducationBinary Exploitation
GitHubwillboka/cve-2019-2215-huaweip20lite

CVE-2019-2215-HuaweiP20Lite

Exploit for CVE-2019-2215 (bad binder) for Huawei P20 Lite

View Repository
Share
52462 years agoNot yet reviewed

Port CVE-2019-2215 (bad binder) to Huawei P20lite (Android 8.0.0)

Description

This project is an exploit for CVE-2019-2215 on Huawei P20lite in version Android 8.0.0. Kernel is in version 4.4.23.

This vulnerability is probably the most documented one (tutorials, real port on physical phone) on this topic and I have a vulnerable phone so this is a good starting point for learning Android kernel exploitation.

Warning: The exploit makes all SELinux types permissive so it might allow other apps to bypass SELinux.

Install

Clone the repo first :

git clone https://github.com/willboka/CVE-2019-2215-HuaweiP20Lite.git
cd CVE-2019-2215-HuaweiP20Lite

Clone setools-android in the folder CVE-2019-2215-HuaweiP20Lite and compile libsepol (libsepol.a). Use the following command to do that :

make libsepol

It is required to bypass SELinux.

Build the project using the command :

make # or do: NDK_PROJECT_PATH=. ndk-build NDK_APPLICATION_MK=./Application.mk

Binary is in folder libs/arm64-v8a.

Build and push in /data/local/tmp using :

make push

Usage

Launch the binary cve-2019-2215 from CLI (tested with Termux and ADB) :

/data/local/tmp/cve-2019-2215 # from adb

Reboot to reset SELinux policies.

Demo

Exploit demo - mp4

Links

Links I used to learn about exploiting this vulnerability.

Test on virtual devices

  • Project Zero bad binder explanation: Explanation of the vulnerability plus how to make it a arbitrary read / write primitive in the PoC.
  • Android Kernel Exploitation: Explains more in depth the vulnerability and setup for the vulnerability and there are added-value on debugging (GDB scripts, use of sanitizer).
  • Tailoring CVE-2019-2215 to Achieve Root: Method about bypassing Linux Kernel security features.

Dev on real device

  • s8_2019_2215_poc: Real case of porting the exploit - I use the avc cache bypass from this one but unfortunately I could not use the same technique to get symbol entries as I experience kernel crashes when reading some kernel pages. Instead I guess Kaslr offset from the first Kaslr affected symbol in the leaked task_struct (fair_sched_class).
  • cve2019-2215-3.18: This exploit is actually the closest as the offset of wait field in binder_struct is 0xa8 in this case (0x98 in his case).
Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    916
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    558
  • 3

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    370
  • 4

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    360
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    317
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    289

Explore all tools

Browse our collection of tools

View all tools →