GGSEC Research · Whitepaper · July 2026

Baseband Security Research

GSM/LTE Modem Firmware Analysis · Remote Code Execution via Radio Interface · Baseband Bootkits · Silent Persistence Below the OS

Author: Maciej Gojny Organization: GG Advanced IT Security Web: ggsec.de Classification: TLP:WHITE – Public
01

Why Baseband Security Matters

The cellular baseband processor is a dedicated computing subsystem responsible for GSM, UMTS, LTE and 5G NR communication. Modern baseband processors execute proprietary firmware and real-time operating systems such as ThreadX, Nucleus RTOS or vendor-specific implementations.

Unlike application-level software, the baseband directly processes data received from untrusted radio networks. As a result, vulnerabilities in protocol parsing, memory management or inter-processor communication mechanisms may expose devices to attacks originating from the cellular infrastructure itself.

Successful compromise of modem firmware may provide an attacker with privileged access to the cellular subsystem. Depending on chipset architecture, isolation mechanisms and firmware design, such compromise could potentially facilitate attacks against higher privilege domains, including the application processor.

It is important to note that exploitation impact varies significantly across vendors and hardware generations. Modern chipsets increasingly implement secure boot, memory protection, firmware signing and hardware isolation mechanisms which reduce the likelihood of persistent compromise.

Key Security Observation: Baseband firmware represents one of the most privileged and least transparent components in modern connected devices. Security visibility into modem internals remains limited compared to traditional operating system environments.

1.1 Baseband Architecture Overview

Typical smartphone architecture consists of multiple independent execution domains:

Application Processor (Android / Linux / iOS) │ Shared Memory Interfaces │ Baseband Processor │ Protocol Stack (L1 / L2 / RRC / NAS) │ RF Front-End │ Cellular Network

Communication between the application processor and modem is commonly implemented through shared memory, mailbox mechanisms, DMA channels or vendor-specific IPC frameworks. Examples include:

  • Qualcomm – QMI, QRTR, Shared Memory Driver (SMD)
  • MediaTek – CCCI (Cross-Core Communication Interface)
  • Samsung Exynos – SIPC and vendor-specific IPC layers

These interfaces represent important attack surfaces and have historically been associated with privilege-escalation vulnerabilities.

02

Modem Firmware Analysis Workflow

PhaseActivitiesOutputs
Static REExtract firmware from EDL/fastboot/bootloader dumps; identify RTOS structures; locate dangerous functions (memcpy, sprintf, strcpy); map L1/L2/L3 message handlersRTOS task list; dangerous function inventory; message handler map
Dynamic analysisGDB stub via JTAG/Lauterbach; USRP B210 + OsmocomBB; fuzz RRC Connection Request / Paging / SI messages; monitor ramdumps & QCRIL crash logsCrash triage; PC control PoC; fuzzing corpus
# Ghidra script for baseband parsing (Python / Jython)
def find_vuln_memcpy():
    for func in currentProgram.getListing().getFunctions(True):
        if "memcpy" in func.getName():
            check_user_controlled_len(func)

def check_user_controlled_len(func):
    """Trace length parameter back to user-controlled radio input."""
    refs = getReferencesTo(func.getEntryPoint())
    for ref in refs:
        caller = getFunctionContaining(ref.getFromAddress())
        if caller:
            print("[!] memcpy in: %s @ %s" % (caller.getName(), ref.getFromAddress()))
03

Real-World Vulnerability Classes

Bug classLocation in stackExample
Classic stack overflowRRC/NAS message decodingCell Channel Description IE → memcpy(small_stack_buf, attacker_len)
Heap overflowSIB storage / neighbor list cacheInteger underflow in length field → heap spray
Use-after-freeL2 timer callbacksRace condition during handover
Type confusionVtable dispatch in RRCForced re-interpretation of message union
Missing CFI / stack cookiesEntire baseband RTOSStraightforward ROP on Cortex-R
Most baseband firmware lacks modern mitigations (ASLR, CFI, stack canaries). A single memory corruption in radio message processing leads to reliable code execution.
04

Case Study: Broadcast RCE on GSM Baseband

Attack vector: Crafted System Information Type 1 broadcast, manipulating the Neighbour Cell Description IE. The modem processes the neighbor list using a vulnerable memcpy() where the length field originates from the attacker-controlled message.

4.1 Vulnerable Code Pattern

/* Illustrative pattern — NOT extracted from a specific device.      */
/* Constructed to show a common baseband length-handling bug class.  */
/* Hypothetical L3 message parser, Cortex-R class target.            */

void parse_neighbor_list(uint8_t *buffer, uint8_t len_field)
{
    uint8_t  local_buffer[128];          /* fixed stack allocation      */
    int8_t   len = (int8_t)len_field;    /* BUG: signed interpretation  */

    if (len > (int8_t)sizeof(local_buffer))  /* signed compare          */
        return;                          /* 0xFF -> -1, passes the check */

    memcpy(local_buffer, buffer, (size_t)len); /* -1 -> huge size_t     */
}

/* Root cause: the length field is compared as a SIGNED value, so an
   attacker-supplied 0xFF becomes -1 and slips past the size guard.
   The subsequent cast to size_t in memcpy produces a very large copy
   length. The fix is an unsigned comparison against the protocol-
   defined maximum for the IE before any copy. This is one of several
   common length-handling bug classes in baseband parsers; it is shown
   here to illustrate the class, not to describe any single CVE.       */

4.2 Attack Chain

StepActionTechnical detail
1Rogue BTS setupUSRP B210 + OsmocomBB / Osmo-BTS broadcasting fake BCCH on target ARFCN
2Message craftingLength field set to 0xFF; a signed-comparison bug lets it bypass the size guard, producing an oversized memcpy into a 128-byte stack buffer
3Stack layout controlOverflow overwrites saved LR register (Cortex-R has no hardware stack cookie by default on older RTOSes)
4ROP pivotReturn to gadget chain in baseband RTOS image (fixed load address – no ASLR); redirect to shellcode stub
5PersistencePatch RTOS task scheduler in RAM or redirect IPC handler to attacker-controlled routine

4.3 5G NR Attack Surface Note

Modern 5G SA (Standalone) deployments introduce new attack surfaces not present in GSM/LTE. Key differences relevant to baseband security research include:

  • Malformed SUCI handling: 5G NR conceals the SUPI as the SUCI; implementation flaws in SUCI deconcealment at the network side, or in UE handling of related messages, may expose the decoder to malformed ASN.1 input
  • False base station detection: 5G introduces some anti-IMSI-catcher mechanisms (NAS integrity from initial attach), but baseband firmware handling of null-integrity NAS messages remains a research target
  • NR RRC complexity: 3GPP TS 38.331 NR RRC is significantly larger than LTE RRC (TS 36.331), increasing parser attack surface

Older chipsets operating in 5G NSA (Non-Standalone) mode retain the full LTE/GSM baseband stack as fallback — all GSM/LTE vulnerabilities remain applicable in NSA deployments.

Mitigation: Strict IE length validation against 3GPP-defined maximums before any memcpy; hardware MPU regions per RTOS task; stack protection (-fstack-protector-strong); CFI on Cortex-R where RTOS permits.
05

Tooling & Open-Source Ecosystem

CategoryToolPurpose
Firmware extractionQComViewer / QXDMMemory read & DIAG interface
Firmware extractionEDL python clientRaw partition dumps (Qualcomm)
Firmware extractionmtkclientMediaTek bootrom & firmware extraction
Reversing & fuzzingGhidra + baseband loadersCortex-R context analysis
Reversing & fuzzingr2baseband pluginradare2 baseband analysis
Reversing & fuzzingOsmocomBB + USRP B210GSM fuzzing

GGSEC research tooling: Internal frameworks for baseband analysis are maintained but not publicly released. Contact research@ggsec.de for academic collaboration inquiries.

06

Selected Public Disclosures & Research Context

The following table summarizes publicly documented baseband vulnerabilities reported by various research organizations. Readers should verify current CVE status via MITRE/NVD databases.

DateVendor / ComponentVulnerability descriptionStatus
2023-03Samsung Exynos modemInternet-to-baseband RCE, zero-click, requires only the victim's phone number (CVE-2023-24033). Discovered by Google Project Zero.Patched (Mar 2023)
2023-03Samsung Exynos modemThree further internet-to-baseband RCE issues in SDP parsing (CVE-2023-26496 / 26497 / 26498)Patched (Mar 2023)
2024-08MediaTek modemMemory corruption via a missing bounds check in Modem (CVE-2024-20082)Patched

📄 Advisory inquiries & coordinated disclosure contact: research@ggsec.de

Note: Organizations should verify CVE entries directly with MITRE/NVD before operational use. GGSEC does not maintain private advisories beyond standard coordinated disclosure timelines.
07

Mitigation & Hardening Strategies

For device vendorsFor enterprise / defenders
Compile with stack cookies (-fstack-protector-strong)Use hardware root of trust to attest baseband firmware version where supported
Enforce control-flow integrity (CFI) where RTOS supports itMonitor baseband crash dumps and DIAG logs (if accessible)
Isolate radio message parsers using MPU/TrustZoneSegment cellular modules in IoT/OT devices via network isolation
Fuzz before signing firmwareRequire SBOM for baseband firmware as procurement condition
08

Hardware-in-the-Loop Fuzzing Pipeline

[USRP B210] → (GSM/LTE radio) → [Target modem] → (JTAG/UART) → [Crash monitor / ramdump collector] Fuzzing orchestrator: custom Python + GR-GSM / srsRAN Mutation engine: AFL++-style with protocol-aware templates (RRC, NAS, L1) Crash triage: automatic PC / fault address extraction from ramdumps

Internal GGSEC research uses this pipeline for modem firmware assessment. Academic collaboration inquiries are welcome via research@ggsec.de under appropriate data sharing agreements.

09

Hardware Root of Trust for Baseband

Modern baseband processors increasingly include a dedicated secure element or TEE. However, most deployed GSM/4G modems lack this. In principle, a hardware root of trust could measure baseband firmware into platform PCRs at boot, enabling remote attestation of baseband integrity. No such standardized measurement exists in deployed devices today; the approach remains a research direction rather than an available control.

Challenge: No standard for baseband PCR measurement (vendor-specific). Several industry working groups are exploring attestation frameworks for modem firmware.
10

Supply Chain & Baseband Risk

Many modem firmware images are pre-flashed during component manufacturing. This introduces supply chain risk: a compromised distributor could potentially flash malicious baseband firmware before the device reaches the system integrator. Detection is challenging without extracting and reversing the binary.

Recommendation: treat baseband firmware as high-risk binary blob. Apply binary SBOM analysis where feasible, verify signatures against vendor golden images, and consider post-deployment attestation when supported by platform hardware.

Potential riskMitigation approach
Unauthorized firmware modificationCryptographic verification of firmware images
Compromised manufacturing processesAudit requirements for vendors
Malicious firmware implantsRuntime integrity monitoring (limited support)
Weak firmware verificationEnforce secure boot chain
11

AI in Modem Security Research

Large Language Models and machine learning systems are increasingly assisting researchers in:

  • Firmware triage and binary analysis
  • Vulnerability discovery pattern matching
  • Reverse engineering workflows
  • Protocol analysis and documentation generation

At present, AI systems primarily function as force multipliers for researchers rather than autonomous exploit development platforms. No confirmed in-the-wild AI-written baseband malware has been publicly documented as of 2026.

Several capabilities beyond CTF scenarios are now practical for specific tasks: binary abstract-interpretation tooling for memory-safety analysis, LLM-assisted Ghidra scripting for bulk function naming and protocol struct recovery, and ML-based binary diffing for tracking firmware variants across chipset generations. These reduce the manual reversing burden significantly for experienced researchers. Tool names are omitted deliberately — capability maturity varies and should be verified against current releases before relying on any single tool.

CapabilityCurrent maturity
Automated discovery of unsafe memcpy/sprintf patterns in binaryPractical (binary abstract interpretation, CodeQL on source, LLM-assisted Ghidra scripts)
LLM-assisted protocol struct recovery from reversed firmwarePractical – significant time saving in research workflows
AI-generated ARM Cortex-R ROP gadget chainsExperimental – requires human validation
Binary diffing at scale to find cross-vendor variantsAssisted / semi-autonomous (bindiff + ML clustering)
Autonomous end-to-end baseband exploit generationNot demonstrated publicly as of 2026
12

Limitations & Open Challenges

ChallengeDescription
Baseband binary blobsNo source, stripped, proprietary ABIs → reversing is slow and error-prone
JTAG / debug lockProduction devices often disable debug interfaces → limited dynamic analysis
Soft real-time constraintsInstrumentation may alter timing → unreliable fuzzing in some cases
Lack of SBOMVendors rarely disclose third-party RTOS or libraries used in modem firmware
13

Recommendations

PriorityActionRationale
HighEnable baseband firmware version monitoring on all cellular devices where feasibleDetect unexpected modem firmware changes
HighRequire baseband SBOM from vendors as procurement conditionVulnerability correlation & incident response
MediumConsider fuzzing pipeline for incoming modem firmware (if resources permit)Catch memory corruption before deployment
MediumSupport standardization efforts for baseband boot attestationEnable remote integrity verification
14

Responsible Disclosure Policy

GG Advanced IT Security follows a coordinated vulnerability disclosure approach aligned with ISO/IEC 29147 and industry best practices. When a vulnerability is identified during research or engagement:

  • Vendor notification is issued privately with a 90-day remediation window (extendable by mutual agreement)
  • Public disclosure occurs after patch availability or expiry of the disclosure timeline
  • CERT/CC or relevant national CERT may be engaged as coordinator where appropriate
Report vulnerabilities or request research collaboration: research@ggsec.de · PGP key available on request via ggsec.de
15

Appendix & References

14.1 Quick Reference – Baseband Detection Commands

# Check modem firmware version (Qualcomm example) adb shell getprop ro.boot.baseband adb shell getprop gsm.version.baseband # Extract modem firmware from EDL (Qualcomm) edl.py --loader=prog_firehose_ddr.elf --read=modem.bin --partition=modem # Ghidra baseband analysis # Load ELF, apply Cortex-R context, analyze protocol parsers

14.2 Publicly Documented CVEs (verified against NVD / vendor advisories)

CVEDescriptionStatus
CVE-2023-24033Samsung Exynos modem – improper format-type checking in the SDP module; internet-to-baseband, no user interaction. Samsung rates it DoS with code-execution potential; Project Zero classes it among four internet-to-baseband RCE issues. CVSS 9.8.Patched (Mar 2023)
CVE-2023-26496Samsung Exynos modem – memory corruption via improper parameter-length checking while parsing the SDP fmtp attribute. CVSS 8.6.Patched (Mar 2023)
CVE-2023-26497Samsung Exynos modem – memory corruption in SDP parsing (Project Zero internet-to-baseband set)Patched (Mar 2023)
CVE-2023-26498Samsung Exynos modem – memory corruption via improper property checking while parsing the SDP chatroom attributePatched (Mar 2023)
CVE-2024-20082MediaTek modem – possible memory corruption due to a missing bounds check; no user interaction, no extra privilegesPatched (Aug 2024)

14.3 References

  1. 3GPP TS 24.301. "Non-Access-Stratum (NAS) protocol for Evolved Packet System (EPS)."
  2. 3GPP TS 38.331. "NR Radio Resource Control (RRC) protocol specification."
  3. 3GPP TS 44.018. "Mobile radio interface layer 3 specification."
  4. ENISA. (2020). "5G Threat Landscape."
  5. NIST SP 800-193. "Platform Firmware Resiliency Guidelines."
  6. MITRE ATT&CK. "System Firmware (T1542.001) – Baseband variant."
  7. OsmocomBB. "Open Source GSM Baseband Implementation."
  8. Comsecuris. "Baseband Reverse Engineering Methodology."
  9. Qualcomm Security Bulletins (public).
  10. MediaTek Product Security Advisories (public).
  11. Google Project Zero Baseband Research publications.
  12. ETSI Telecommunications Security Standards.
Note: Readers should verify all CVE references directly with MITRE/NVD before operational use. This document is for educational and research purposes.