Open Access iconOpen Access

ARTICLE

crossmark

ADFEmu: Enhancing Firmware Fuzzing with Direct Memory Access (DMA) Input Emulation Using Concolic Execution and Large Language Models (LLMs)

Yixin Ding1, Xinjian Zhao1, Zicheng Wu1, Yichen Zhu2, Longkun Bai2, Hao Han2,*

1 Information and Telecommunication Branch, State Grid Jiangsu Electric Power Co., Ltd., Nanjing, 210024, China
2 College of Computer Science and Technology, Nanjing University of Aeronautics and Astronautics, Nanjing, 210024, China

* Corresponding Author: Hao Han. Email: email

Computers, Materials & Continua 2025, 84(3), 5977-5993. https://doi.org/10.32604/cmc.2025.065672

Abstract

Fuzz testing is a widely adopted technique for uncovering bugs and security vulnerabilities in embedded firmware. However, many embedded systems heavily rely on peripherals, rendering conventional fuzzing techniques ineffective. When peripheral responses are missing or incorrect, fuzzing a firmware may crash or exit prematurely, significantly limiting code coverage. While prior re-hosting approaches have made progress in simulating Memory-Mapped Input/Output (MMIO) and interrupt-based peripherals, they either ignore Direct Memory Access (DMA) or handle it oversimplified. In this work, we present ADFEmu, a novel automated firmware re-hosting framework that enables effective fuzzing of DMA-enabled firmware. ADFEmu integrates concolic execution with large language models (LLMs) to semantically emulate DMA operations and synthesize peripheral input sequences intelligently. Specifically, it learns DMA transfer patterns from the firmware’s context and employs guided symbolic execution to explore deeper and more diverse execution paths. This approach allows firmware to operate stably without hardware dependencies while achieving higher fidelity in emulation. Evaluated on real-world embedded firmware samples, ADFEmu achieves a 100% re-hosting success rate, improves total execution path exploration by 5.31%, and triggers more crashes compared to the state-of-the-art. These results highlight ADFEmu’s effectiveness in overcoming long-standing limitations of DMA emulation and its potential to advance automated vulnerability discovery in peripheral-rich embedded environments.

Keywords

Fuzz testing; firmware rehosting; DMA; concolic execution; LLMs

Cite This Article

APA Style
Ding, Y., Zhao, X., Wu, Z., Zhu, Y., Bai, L. et al. (2025). ADFEmu: Enhancing Firmware Fuzzing with Direct Memory Access (DMA) Input Emulation Using Concolic Execution and Large Language Models (LLMs). Computers, Materials & Continua, 84(3), 5977–5993. https://doi.org/10.32604/cmc.2025.065672
Vancouver Style
Ding Y, Zhao X, Wu Z, Zhu Y, Bai L, Han H. ADFEmu: Enhancing Firmware Fuzzing with Direct Memory Access (DMA) Input Emulation Using Concolic Execution and Large Language Models (LLMs). Comput Mater Contin. 2025;84(3):5977–5993. https://doi.org/10.32604/cmc.2025.065672
IEEE Style
Y. Ding, X. Zhao, Z. Wu, Y. Zhu, L. Bai, and H. Han, “ADFEmu: Enhancing Firmware Fuzzing with Direct Memory Access (DMA) Input Emulation Using Concolic Execution and Large Language Models (LLMs),” Comput. Mater. Contin., vol. 84, no. 3, pp. 5977–5993, 2025. https://doi.org/10.32604/cmc.2025.065672



cc Copyright © 2025 The Author(s). Published by Tech Science Press.
This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
  • 863

    View

  • 515

    Download

  • 0

    Like

Share Link