Researchers Demonstrate Qualcomm Boot ROM Exploit via Sahara USB Protocol

· 52:07 · Watch on YouTube ↗

Summary

Researchers demonstrate a Qualcomm boot ROM flaw that uses repeated Sahara USB commands to gain privileged code execution and root a Pixel 3. They describe exploit development and mitigations in newer chipsets.

Key points

  • A Sahara state-machine reset command can repeatedly add stack frames without returning, eventually overwriting other data in limited boot ROM memory.
  • On the SDM 845, the researchers used certificate parsing to overwrite a cryptographic function pointer and gain control of execution.
  • Their exploit used a return-oriented programming chain to disable memory protections and load a larger payload over USB.
  • A live demonstration used emergency download mode on a Pixel 3 and modified the boot process to obtain root access.
  • The researchers said production Snapdragon 865 devices generally received a fuse-based mitigation, while a later chipset fixed the flaw in ROM.
  • Newer chipsets use a separate trust management engine for authentication, making application boot ROM execution alone insufficient to control the entire boot process.

Article Details

Topics
  • [01:06] Qualcomm boot ROM architecture and secure boot
  • [07:54] USB emergency download mode and the Sahara protocol
  • [12:28] Sahara reset-command recursion and stack exhaustion
  • [15:36] Exploiting the SDM 845 boot ROM and developing an emulator
  • [21:15] Certificate parsing and cryptographic function-pointer overwrite
  • [29:54] Return-oriented execution and payload loading
  • [37:49] Maintaining control through boot stages and rooting a Pixel 3
  • [47:36] Chipset mitigations and newer boot authentication architecture