BlackBerry KEY2 (BBF100-6) bootloader unlock (CVE-2021-1931), unlock-tool RE, recon, and LineageOS 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
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.
| Field | Value |
|---|---|
| Model | BlackBerry KEY2 BBF100-6 |
| Codename | bbf100 / athena |
| SoC | Qualcomm SDM660 (Snapdragon 660) |
| OS / software | Android 8.1 (stock) to LineageOS 22.2 |
| Current build | LineageOS 22.2 (Android 15), kernel 4.4.302 |
| Previous builds | stock ABN088 (Android 8.1.0, kernel 4.4.78), patch 2018-12-01, PRD-63828-031 |
| Carrier / unlock | India/APAC variant; dual-SIM; ro.oem_unlock_supported=true; UNLOCKED |
| SIM | dual-SIM |
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.
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.
kibo / BlackBerryBootUnlock.exe).PRODUCT FACTORY persisted to RPMB — a permanent,
reboot-surviving unlock.acq160.exe == Windows tool 160.bin.The most successful device in this collection.
lineageos_blackberry_athena; ronnz98 publishes /e/OS builds.blackberry-key2-generic port (mainline/U-Boot).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):
0x11bae0 (~1.16 MB).flash: command to allow flashing certain
partitions while locked — that custom path is where validation is missing.abl.elf) with
9 instructions patched — execution continues seamlessly but now runs
attacker-modified code.0xffff so factory mode never expires, and replace the
bootmode getvar handler with a call to switch_bootmode(1, 0) + reboot.getvar:all triggers the patched handler: boot mode 1
(FACTORY) is persisted to RPMB, then the device reboots — unlocked,
across reboots.MODE: PRODUCT FACTORY. Stock OS refuses to boot while unlocked ->
flash the modded acq160-mfi-boot.img, then recovery + ROM.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.
| File | SHA-256 |
|---|---|
BlackBerryBootUnlock.exe (v1.1) | 374293c54518406b4145a2bc7a1a9c91b3e39109fdf629d059d1ed1b73c455f4 |
data/160.bin (ACQ160 ABL payload) | 2d270254389b00576d2430468fd79752020c45fc3f5dd0dd16eff9108fd37cce |
data/575.bin (ACT575 ABL payload) | ef9b30171df44710c5325cc7d5b5226a6f15cfe334fbde308b23e03616687a18 |
kibo unlock (Linux) or the Windows tool (progress sticks at 75%).MODE: on the bootloader screen changes PRODUCT FACTORY.acq160-mfi-boot.img, then recovery + ROM.
Framework de test de sécurité automatisé pour applications mobiles Android, iOS et Windows. Effectue une analyse statique et dynamique, une détection de malwares et des tests de sécurité des API avec intégration CI/CD.

Outil en ligne de commande et avec interface graphique pour décompiler les fichiers Android Dex et APK en code source Java lisible, avec décodage des ressources, désambiguïsation, et capacités de débogage Smali.

Un outil de rétro-ingénierie pour les fichiers APK Android