0:00
–:––
React at 0:00
Black Hat USA 2025

Uncovering 'NASty' 5G Baseband Vulnerabilities through Dependency-Aware Fuzzing

Ali Ranjbar, The Pennsylvania State University; Tianchang Yang, The Pennsylvania State University; Kai Tu, The Pennsylvania State University; Saaman Khalilollahi, The Pennsylvania State University; Kanika Gupta, The Pennsylvania State University; Syed Rafiul Hussain, The Pennsylvania State UniversityMobile

When and where

Day
Thu 7 Aug 2025
Time
11:20 to 12:00 PDT
Room
Mandalay Bay H, Level 2
Track
Mobile

Speakers

  • Ali RanjbarThe Pennsylvania State University

    Ali Ranjbar is a PhD candidate at Penn State University. He specializes in reverse engineering and vulnerability discovery in embedded systems. His research focuses on baseband binary analysis, fuzzing, and uncovering security flaws in cellular infrastructure.

  • Tianchang YangThe Pennsylvania State University

    Tianchang Yang is a PhD candidate at Pennsylvania State University. His research focuses on mobile network security, with an emphasis on analyzing and testing 5G and Open RAN systems to identify vulnerabilities and improve network resilience. His work combines program analysis, fuzzing, and machine learning techniques to detect software bugs and logical flaws, enhancing the robustness of complex network systems.

  • Kai TuThe Pennsylvania State University

    Kai Tu is a PhD student at Pennsylvania State University. He is experienced in analyzing cellular network protocols, with a research focus on 4G/5G commercial baseband chipsets, RAN systems, and O-RAN architectures for security vulnerabilities.

  • Saaman KhalilollahiThe Pennsylvania State University

    Saaman Khalilollahi is a former MS student in Computer Science who worked with the SyNSec group at Penn State University. His research focused on cellular baseband security as explored through symbolic execution. He currently works as a Systems Engineer in Cleveland, Ohio.

  • Kanika GuptaThe Pennsylvania State University

    Kanika Gupta is a Master's student in Computer Science at Pennsylvania State University and is currently working with the SyNSec Lab. Her research interests include network and software security.

  • Syed Rafiul HussainThe Pennsylvania State University

    Syed Rafiul Hussain is an Assistant Professor in the Department of Computer Science and Engineering at Pennsylvania State University. His research interests broadly lie in network and systems security. Prior to joining Penn State, he completed his Ph.D. at Purdue University in the fall of 2018 and has since been recognized with the NSF CAREER Award and the DARPA Young Faculty Award in 2022. His research impacts the design of 4G and 5G standards and is featured by the FCC and over 100 media outlets.

Abstract

While baseband modems are the unseen engines of cellular communication, their proprietary nature, closed-source development, and reliance on memory-unsafe C/C++ form a massive attack surface with minimal visibility. Prior work has shown that GSM and LTE basebands (e.g., Samsung's Shannon) can be fuzzed, but only with extensive manual annotation and harnessing. These approaches fall short on modern 5G systems, where complex state dependencies and evolving firmware architectures make manual harnessing time-consuming and unscalable for reaching deep execution states. In this talk, we delve into the reverse engineering and emulation of Samsung and Pixel 5G basebands, with a focus on Non-Access Stratum (NAS) messaging. We unpack the increased complexity and challenges introduced in the evolution from 4G to 5G, including shifts in CPU architecture, the move from C to C++, and a redesigned inter-task communication model. To tackle these challenges, we present a stateful fuzzing framework that runs directly on emulated baseband firmware. At the heart of our system is an iterative symbolic analysis technique that progressively uncovers state variables and their preconditions to reach different execution paths, enabling fuzzing to target deep, state-dependent paths while mitigating the path explosion problem. Applying our framework to real-world devices (including Google Pixel and Samsung Galaxy models), we uncovered 7 previously unknown vulnerabilities. So far, 5 CVEs have been assigned, with several rated high or critical by vendors. We'll walk through our findings, demonstrate real-world exploits such as SMS and malicious network-triggered crashes, and show how automation can supercharge reverse engineering to expose deep flaws that prior efforts missed. If you're into baseband internals, firmware fuzzing, or breaking wireless systems for the greater good, this talk is for you.

What you'll get from it

Fuzzing a phone's baseband used to take heavy manual harnessing, which struggles with 5G. Ali Ranjbar, Syed Rafiul Hussain and their colleagues explain what changed in Samsung and Pixel 5G basebands, including a new CPU architecture, a move from C to C++ and redesigned inter-task messaging. Their fuzzer runs on emulated firmware and uses iterative symbolic analysis to find the state needed to reach deep code in Non-Access Stratum (NAS) handling. It found 7 new vulnerabilities, with 5 CVEs so far, and they show crashes triggered by SMS and by a malicious network.

Did you find what you came for?