Lune

NDSS2021顶会

KUBO: Precise and Scalable Detection of User-triggerable Undefined Behavior Bugs in OS Kernel

Changming Liu, Yaohui Chen, Long Lu

摘要

—Undefined Behavior bugs (UB) often refer to a wide range of programming errors that mainly reside in software implemented in relatively low-level programming languages e.g., C/C++. OS kernels are particularly plagued by UB due to their close interactions with the hardware. A triggered UB can often lead to exploitation from unprivileged userspace programs and cause critical security and reliability issues inside the OS. The previous works on detecting UB in kernels had to sacrifice precision for scalability, and in turn, suffered from extremely high false positives which severely impaired their usability. We propose a novel static UB detector for Linux kernel, called KUBO which simultaneously achieves high precision and whole-kernel scalability. KUBO is focused on detecting critical UB that can be triggered by userspace input. The high precision comes from KUBO ’s verification of the satisfiability of the UB-triggering paths and conditions. The whole-kernel scalability is enabled by an efficient inter-procedural analysis, which incrementally walks backward along callchains in an on-demand manner. We evaluate KUBO on several versions of whole Linux kernels (including drivers). KUBO found 23 critical UBs that were previously unknown in the latest Linux kernel. KUBO ’s false detection rate is merely 27.5%, which is significantly lower than that of the state-of-the-art kernel UB detectors (91%). Our evaluation also shows the bug reports generated by KUBO are easy to triage.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 15 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Where Does It Go?: Refining Indirect-Call Targets with Multi-Layer Type Analysis 引用了 APISan: Sanitizing API Usages through Semantic Cross-Checking
  • Where Does It Go?: Refining Indirect-Call Targets with Multi-Layer Type Analysis 引用了 Precise and Scalable Detection of Double-Fetch Bugs in OS Kernels
  • PeriScope: An Effective Probing and Fuzzing Framework for the Hardware-OS Boundary 引用了 Precise and Scalable Detection of Double-Fetch Bugs in OS Kernels
  • One Bug, Hundreds Behind: LLMs for Large-Scale Bug Discovery 引用了 APISan: Sanitizing API Usages through Semantic Cross-Checking
  • One Bug, Hundreds Behind: LLMs for Large-Scale Bug Discovery 引用了 Precise and Scalable Detection of Double-Fetch Bugs in OS Kernels
  • Improving Indirect-Call Analysis in LLVM with Type and Data-Flow Co-Analysis 引用了 Where Does It Go?: Refining Indirect-Call Targets with Multi-Layer Type Analysis
  • Improving Indirect-Call Analysis in LLVM with Type and Data-Flow Co-Analysis 引用了 Precise and Scalable Detection of Double-Fetch Bugs in OS Kernels
  • Holistic Concolic Execution for Dynamic Web Applications via Symbolic Interpreter Analysis 引用了 Precise and Scalable Detection of Double-Fetch Bugs in OS Kernels
  • CO3: Concolic Co-execution for Firmware 引用了 Precise and Scalable Detection of Double-Fetch Bugs in OS Kernels
  • CO3: Concolic Co-execution for Firmware 引用了 SAVIOR: Towards Bug-Driven Hybrid Testing
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper15

  1. Improving Indirect-Call Analysis in LLVM with Type and Data-Flow Co-AnalysisDinghao Liu, Shouling Ji, Kangjie Lu, Qinming HeUSENIX Security 2024 · 13 次引用
  2. CO3: Concolic Co-execution for FirmwareChangming Liu, Alejandro Mera, Engin Kirda, Meng Xu 等USENIX Security 2024 · 7 次引用
  3. Holistic Concolic Execution for Dynamic Web Applications via Symbolic Interpreter AnalysisPenghui Li, Wei Meng, Mingxue Zhang, Chenlin Wang 等S&P 2024 · 6 次引用
  4. One Bug, Hundreds Behind: LLMs for Large-Scale Bug DiscoveryQiushi Wu, Yue Xiao, Dhilung Kirat, Kevin Eykholt 等ICML 2026 · 5 次引用
  5. WBSan: WebAssembly Bug Detection for Sanitization and Binary-Only FuzzingXiao Wu, Junzhou He, Liyan Huang, Cai Fu 等WWW 2025 · 5 次引用

它引用的 Paper6

  1. SAVIOR: Towards Bug-Driven Hybrid TestingYaohui Chen, Peng Li, Jun Xu, Shengjian Guo 等S&P 2020 · 186 次引用
  2. Where Does It Go?: Refining Indirect-Call Targets with Multi-Layer Type AnalysisKangjie Lu, Hong HuCCS 2019 · 142 次引用
  3. PeriScope: An Effective Probing and Fuzzing Framework for the Hardware-OS BoundaryDokyung Song, Felicitas Hetzelt, Dipanjan Das, Chad Spensky 等NDSS 2019 · 114 次引用
  4. APISan: Sanitizing API Usages through Semantic Cross-CheckingInsu Yun, Changwoo Min, Xujie Si, Yeongjin Jang 等USENIX Security 2016 · 107 次引用
  5. Precise and Scalable Detection of Double-Fetch Bugs in OS KernelsMeng Xu, Chenxiong Qian, Kangjie Lu, Michael Backes 等S&P 2018 · 95 次引用

相关 Paper

  1. UBITect: a precise and scalable method to detect use-before-initialization bugs in Linux kernelYizhuo Zhai, Yu Hao, Hang Zhang, Daimeng Wang 等FSE 2020 · 34 次引用
  2. Detecting Missing-Check Bugs via Semantic- and Context-Aware Criticalness and Constraints InferencesKangjie Lu, Aditya Pakki, Qiushi WuUSENIX Security 2019 · 97 次引用
  3. DR. CHECKER: A Soundy Analysis for Linux Kernel DriversAravind Machiry, Chad Spensky, Jake Corina, Nick Stephens 等USENIX Security 2017 · 126 次引用
  4. Precise Divide-By-Zero Detection with Affirmative EvidenceYiyuan Guo, Jinguo Zhou, Peisen Yao, Qingkai Shi 等ICSE 2022 · 4 次引用
  5. Statically Discovering High-Order Taint Style Vulnerabilities in OS KernelsHang Zhang, Weiteng Chen, Yu Hao, Guoren Li 等CCS 2021 · 23 次引用
黄昏的海面,两侧是细线勾勒的悬崖