Lune

CCS2024Top-tier venue

AutoPatch: Automated Generation of Hotpatches for Real-Time Embedded Devices

Mohsen Salehi, Karthik Pattabiraman

Abstract

Real-time embedded devices like medical or industrial devices are increasingly targeted by cyber-attacks. Prompt patching is crucial to mitigate the serious consequences of such attacks on these devices. Hotpatching is an approach to apply a patch to mission-critical embedded devices without rebooting them. However, existing hotpatching approaches require developers to manually write the hotpatch for target systems, which is time-consuming and error-prone. To address these issues, we propose AutoPatch 1 , a new hotpatching technique that automatically generates functionally equivalent hotpatches via static analysis of the official patches. AutoPatch introduces a new software triggering approach that supports diverse embedded devices, and preserves the functionality of the official patch. In contrast to prior work, AutoPatch does not rely on hardware support for triggering patches, or on executing patches in specialized virtual machines. We implemented AutoPatch using the LLVM compiler, and evaluated its efficiency, effectiveness and generality using 62 real CVEs on four embedded devices with different specifications and architectures running popular RTOSes. We found that AutoPatch can fix more than 90% of CVEs, and resolve the vulnerability successfully. The results revealed an average total delay of less than 12.7 𝜇𝑠 for fixing the vulnerabilities, representing a performance improvement of 50% over RapidPatch, a state-ofthe-art approach. Further, our memory overhead, on average, was slightly lower than theirs (23%). Finally, AutoPatch was able to generate hotpatches for all four devices without any modifications.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

1 top-tier paper has cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Automatic Hot Patch Generation for Android Kernels cites InstaGuard: Instantly Deployable Hot-patches for Vulnerable System Programs on Android
  • Automatic Hot Patch Generation for Android Kernels cites Adaptive Android Kernel Live Patching
  • Dynamic Vulnerability Patching for Heterogeneous Embedded Systems Using Stack Frame Reconstruction cites Automatic Hot Patch Generation for Android Kernels
  • Dynamic Vulnerability Patching for Heterogeneous Embedded Systems Using Stack Frame Reconstruction cites Adaptive Android Kernel Live Patching
  • InstaGuard: Instantly Deployable Hot-patches for Vulnerable System Programs on Android cites Adaptive Android Kernel Live Patching
  • Undo Workarounds for Kernel Bugs cites Automatic Hot Patch Generation for Android Kernels
  • Undo Workarounds for Kernel Bugs cites InstaGuard: Instantly Deployable Hot-patches for Vulnerable System Programs on Android
  • Undo Workarounds for Kernel Bugs cites Adaptive Android Kernel Live Patching
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers1

  1. Dynamic Vulnerability Patching for Heterogeneous Embedded Systems Using Stack Frame ReconstructionMing Zhou, Xupu Hu, Zhihao Wang, Haining Wang et al.CCS 2025 · 1 citation

Builds on8

  1. Adaptive Android Kernel Live PatchingYue Chen, Yulong Zhang, Zhi Wang, Liangzhao Xia et al.USENIX Security 2017 · 60 citations
  2. Your Firmware Has Arrived: A Study of Firmware Update VulnerabilitiesYuhao Wu, Jinwen Wang, Yujie Wang, Shixuan Zhai et al.USENIX Security 2024 · 33 citations
  3. InstaGuard: Instantly Deployable Hot-patches for Vulnerable System Programs on AndroidYaohui Chen, Yuping Li, Long Lu, Yueh-Hsun Lin et al.NDSS 2018 · 32 citations
  4. Undo Workarounds for Kernel BugsSeyed Mohammadjavad Seyed Talebi, Zhihao Yao, Ardalan Amiri Sani, Zhiyun Qian et al.USENIX Security 2021 · 27 citations
  5. Automatic Hot Patch Generation for Android KernelsZhengzi Xu, Yulong Zhang, Longri Zheng, Liangzhao Xia et al.USENIX Security 2020

Related papers

  1. RapidPatch: Firmware Hotpatching for Real-Time Embedded DevicesYi He, Zhenhua Zou, Kun Sun, Zhuotao Liu et al.USENIX Security 2022
  2. HERA: Hotpatching of Embedded Real-time ApplicationsChristian Niesler, Sebastian Surminski, Lucas DaviNDSS 2021
  3. APPATCH: Automated Adaptive Prompting Large Language Models for Real-World Software Vulnerability PatchingYu Nong, Haoran Yang, Long Cheng, Hongxin Hu et al.USENIX Security 2025
  4. Kintsugi: Secure Hotpatching for Code-Shadowing Real-Time Embedded SystemsPhilipp Mackensen, Christian Niesler, Roberto Blanco, Lucas Davi et al.USENIX Security 2025
  5. ICSPatch: Automated Vulnerability Localization and Non-Intrusive Hotpatching in Industrial Control Systems using Data Dependence GraphsPrashant Hari Narayan Rajput, Constantine Doumanidis, Michail ManiatakosUSENIX Security 2023
Dusk over the sea between two cliffs drawn in fine vertical lines