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
Blackberry-Key2-Research β€” BlackBerry KEY2 (BBF100-6) bootloader unlock (CVE-2021-1931), unlock-tool RE, recon, and LineageOS research | Kitploit
Tools/GitHubGitHub/stanw47/blackberry-key2-research
Android SecurityExploitationMobile App PentestingReverse EngineeringMobile SecurityHardware SecurityBinary AnalysisPapers & ResearchFirmware AnalysisBinary Exploitation
GitHub
2Oct 5, 2026Not yet reviewed
Share
stanw47/blackberry-key2-research

Blackberry-Key2-Research

BlackBerry KEY2 (BBF100-6) bootloader unlock (CVE-2021-1931), unlock-tool RE, recon, and LineageOS research

View Repository

BlackBerry KEY2 (BBF100-6) β€” Research

Reverse-engineering, unlock, and LineageOS research for the BlackBerry KEY2 (BBF100-6, India/APAC dual-SIM) β€” the UEFI/ABL sibling of the KEYone, and the device where the unpatched CVE-2021-1931 fastboot overflow still yields a bootloader unlock.

Part of the Blackberry-Research collection Β· Williamson Security Solutions


Disclaimer

Research aid, not a flashing guide. Unlocking a bootloader and flashing firmware can permanently brick a device, and unlocks wipe userdata. Third-party tool binaries are not redistributed β€” hashes/provenance are recorded instead. For educational / defensive research on a device the author owns. At your own risk.


Device Details

FieldValue
ModelBlackBerry KEY2 BBF100-6
Codenamebbf100 / athena
SoCQualcomm SDM660 (Snapdragon 660)
OS / softwareAndroid 8.1 (stock) to LineageOS 22.2
Current buildLineageOS 22.2 (Android 15), kernel 4.4.302
Previous buildsstock ABN088 (Android 8.1.0, kernel 4.4.78), patch 2018-12-01, PRD-63828-031
Carrier / unlockIndia/APAC variant; dual-SIM; ro.oem_unlock_supported=true; UNLOCKED
SIMdual-SIM

A/B partition layout

Unlike the KEYone (A-only), the KEY2 is A/B and the bootloader is slotted:

abl_a -> p37   abl_b -> p49   xbl_a -> p27   xbl_b -> p39   tz_a -> p28   tz_b -> p40
boot -> p23 (not slotted)   recovery -> p57   recoverysig -> p58
vbmeta -> p19   system -> p73   vendor -> p74   oem -> p75
userdata -> p77   misc -> p54   frp -> p56   nvuser -> p67   perm -> p66

BlackBerry's A/B implementation is inconsistent enough that the unlock requires flashing the stock autoloader twice (both slots). Raw capture: recon/key2_byname.txt.


Current Status

The KEY2 is unlocked and running LineageOS 22.2 (Android 15) with dual-SIM working. Unlock was achieved via the unpatched Qualcomm CVE-2021-1931 in the UEFI ABL fastboot parser (the kibo payload), which flips the device from PRODUCT to FACTORY mode. The remaining work is ROM polish/stability.


Completed

  • Bootloader unlock via CVE-2021-1931 (kibo / BlackBerryBootUnlock.exe).
  • Full unlock-tool RE β€” .NET CLI tool over libusb; exact command sequence, patch table, and payload provenance.
  • Autoloader analysis β€” ACQ160 package, A/B slot flow, BBRYBlob signatures.
  • LineageOS port β€” community build (kernel 4.4), dual-SIM working.

Achieved

  • Boot mode PRODUCT FACTORY persisted to RPMB β€” a permanent, reboot-surviving unlock.
  • Running LineageOS 22.2 (Android 15) on retail hardware.
  • Payload provenance proven by SHA-256 β€” autoloader extraction == kibo acq160.exe == Windows tool 160.bin.

In Progress

  • ROM stability: SELinux + encryption completeness, keyboard-touchpad jitter (disable via Quick Settings), some Play-Integrity-sensitive apps.

Failed

  • Stock OS while unlocked β€” BlackBerry's stock build refuses to boot in FACTORY mode, so a modified boot image is required after unlock.
  • Official LineageOS β€” never happened (no clean GPL kernel source for the KEY2); only unofficial/community builds exist.

Future Plans

  1. Polish the LineageOS 22.2 port (stability/encryption).
  2. Track newer community Android builds.

Community Activity

The most successful device in this collection.

  • Christopher Wade (Pen Test Partners) found and exploited CVE-2021-1931.
  • BotchedRPR (Igor) authored kibo; the current LineageOS 22.2 build for KEY2 (athena) is maintained by zzach (zapaca) (previously BotchedRPR); krab-ubica led the bootloader-unlock research; npjohnson contributed Nokia SDM660 blobs.
  • FumoEnterprises hosts recovery/ROM images; tim-ecoder maintains lineageos_blackberry_athena; ronnz98 publishes /e/OS builds.
  • FakeShell/CVE-2021-1931-BBRY-KEY2 is a public proof-of-concept.
  • postmarketOS has a blackberry-key2-generic port (mainline/U-Boot).
  • Known issues on 22.2: SELinux and encryption disabled, keyboard-touchpad jitter, some camera/flash quirks.
  • Hubs: XDA, Reddit r/blackberry, the BlackBerry Android Hideout Discord, and the community wiki.

Unlock deep-dive (CVE-2021-1931)

The vulnerability

Qualcomm advisory (July 2021): "Possible buffer overflow due to improper validation of buffer length while processing fast boot commands" β€” CWE-120, fixed in SoCVersion 2021-07-05. Christopher Wade's "Breaking Mobile Bootloaders" (QPSS 2022) found and exploited it on an SDM660 BlackBerry (the KEY2):

  • The ABL (Android BootLoader, a UEFI application) receives fastboot data into a fixed buffer without validating the length. Sending ~1.4 MB (1 MB padding + a 429,108-byte payload) over the USB bulk endpoint overflows it; the minimum overflow size measured was 0x11bae0 (~1.16 MB).
  • BlackBerry had modified the flash: command to allow flashing certain partitions while locked β€” that custom path is where validation is missing.
  • The overflow target is the ABL's own code in RAM.

The payload

  1. Send ~1 MB of zeros as padding, then a byte-exact copy of the stock ACQ160 ABL PE (extracted from the official autoloader, LZMA-inside-abl.elf) with 9 instructions patched β€” execution continues seamlessly but now runs attacker-modified code.
  2. The patches: defuse BbryWipeLib, set the "Boots Remaining" expiry counter to 0xffff so factory mode never expires, and replace the bootmode getvar handler with a call to switch_bootmode(1, 0) + reboot.
  3. Sending getvar:all triggers the patched handler: boot mode 1 (FACTORY) is persisted to RPMB, then the device reboots β€” unlocked, across reboots.
  4. Result: MODE: PRODUCT FACTORY. Stock OS refuses to boot while unlocked -> flash the modded acq160-mfi-boot.img, then recovery + ROM.

Tool reverse engineering

The Windows tool is a .NET/C++-CLI assembly over libusb-1.0.dll; its fastboot surface is getvar:bb_bc_version, getvar:all, getvar:bootmode, reboot-bootloader. It selects a payload by bootloader version (ACQ160 -> 160.bin, ACT575 575.bin), patches a hardcoded table of byte offsets (the signature-check patch), then sends the 429,108-byte buffer β€” the overflow. Success = bootmode changes PRODUCT FACTORY. Progress sticks at 75% (normal).

Full analysis: notes/07-key2-unlock-tool-re.md; decompiled IL: exploit/key2-unlock/il.txt.

Tool binary provenance (not redistributed)

FileSHA-256
BlackBerryBootUnlock.exe (v1.1)374293c54518406b4145a2bc7a1a9c91b3e39109fdf629d059d1ed1b73c455f4
data/160.bin (ACQ160 ABL payload)2d270254389b00576d2430468fd79752020c45fc3f5dd0dd16eff9108fd37cce
data/575.bin (ACT575 ABL payload)ef9b30171df44710c5325cc7d5b5226a6f15cfe334fbde308b23e03616687a18

Procedure (summary)

  1. Remove all Google accounts (they block the fastboot endpoint).
  2. Flash stock ACQ160 autoloader twice (both A/B slots).
  3. Unlock: kibo unlock (Linux) or the Windows tool (progress sticks at 75%).
  4. MODE: on the bootloader screen changes PRODUCT FACTORY.
  5. Flash the modded acq160-mfi-boot.img, then recovery + ROM.
  6. Unlock + custom recovery wipes userdata β€” back up first.

LineageOS

Download Tool

Related Tools

  • Mobile-Security-Framework-MobSF

    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.

  • jadx

    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.

  • Apktool

    A tool for reverse engineering Android apk files

Most Popular

View all β†’

Discover the most used tools by our community.

  • 1

    Callisto

    jetp1ane/callisto

    Automated binary vulnerability analysis tool that decompiles executables via Ghidra, scans pseudo-C code with Semgrep, and validates findings using GPT-3.5-Turbo to reduce false positives.

    796
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    One-tap Android kernel exploit app for CVE-2026-43499, providing privilege escalation via kernel module loading, with offset extraction and on-device analysis tools.

    735
  • 3

    IMSIcatcher

    28zaaky/imsicatcher

    IMSI Catcher platform that deploys a rogue GSM cell to intercept SMS, inject messages and track mobile devices

    721
  • 4

    opencti

    opencti-platform/opencti

    Open Cyber Threat Intelligence Platform

    535
  • 5

    ARTEX

    baarai/artex

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

    424
  • 6

    DFRoot

    a2333c/dfroot

    Android root tool for Samsung Galaxy S25 Ultra (SM-S938B) that chains DirtyFrag CVE-2026-43284 and CVE-2026-43499 to gain root automatically at boot via KernelSU.

    419

Explore all tools

Browse our collection of tools

View all tools β†’