Lune

CCS2019顶会

Different is Good: Detecting the Use of Uninitialized Variables through Differential Replay

Mengchen Cao, Xiantong Hou, Tao Wang, Hunter Qu, Yajin Zhou, Xiaolong Bai, Fuwei Wang

摘要

The use of uninitialized variables is a common issue. It could cause kernel information leak, which defeats the widely deployed security defense, i.e., kernel address space layout randomization (KASLR). Though a recent system called Bochspwn Reloaded reported multiple memory leaks in Windows kernels, how to effectively detect this issue is still largely behind.

In this paper, we propose a new technique, i.e., differential replay, that could effectively detect the use of uninitialized variables. Specifically, it records and replays a program's execution in multiple instances. One instance is with the vanilla memory, the other one changes (or poisons) values of variables allocated from the stack and the heap. Then it compares program states to find references to uninitialized variables. The idea is that if a variable is properly initialized, it will overwrite the poisoned value and program states in two running instances should be the same. After detecting the differences, our system leverages the symbolic taint analysis to further identify the location where the variable was allocated. This helps us to identify the root cause and facilitate the development of real exploits. We have implemented a prototype called TimePlayer. After applying it to both Windows 7 and Windows 10 kernels (x86/x64), it successfully identified 34 new issues and another 85 ones that had been patched (some of them were publicly unknown.) Among 34 new issues, 17 of them have been confirmed as zero-day vulnerabilities by Microsoft.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • NEZHA: Efficient Domain-Independent Differential Testing 引用了 SFADiff: Automated Evasion Attacks and Fingerprinting Using Black-box Differential Automata Learning
  • Mon CHERI: Mitigating Uninitialized Memory Access with Conditional Capabilities 引用了 UniSan: Proactive Kernel Memory Initialization to Eliminate Data Leakages
  • BoKASAN: Binary-only Kernel Address Sanitizer for Effective Kernel Fuzzing 引用了 UniSan: Proactive Kernel Memory Initialization to Eliminate Data Leakages
  • BoKASAN: Binary-only Kernel Address Sanitizer for Effective Kernel Fuzzing 引用了 kAFL: Hardware-Assisted Feedback Fuzzing for OS Kernels
  • HVLearn: Automated Black-Box Analysis of Hostname Verification in SSL/TLS Implementations 引用了 SFADiff: Automated Evasion Attacks and Fingerprinting Using Black-box Differential Automata Learning
  • Download More RAM: Dismantling Windows Operating System Defences with Mischievous Memory 引用了 kAFL: Hardware-Assisted Feedback Fuzzing for OS Kernels
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper5

  1. Mon CHERI: Mitigating Uninitialized Memory Access with Conditional CapabilitiesMerve Gülmez, Håkan Englund, Jan Tobias Mühlberg, Thomas NymanS&P 2025
  2. PET: Prevent Discovered Errors from Being Triggered in the Linux KernelZicheng Wang, Yueqi Chen, Qingkai ZengUSENIX Security 2023
  3. BoKASAN: Binary-only Kernel Address Sanitizer for Effective Kernel FuzzingMingi Cho, Dohyeon An, Hoyong Jin, Taekyoung KwonUSENIX Security 2023
  4. Download More RAM: Dismantling Windows Operating System Defences with Mischievous MemorySam Collins, Tom Chothia, William Burgess, Marius Muench 等USENIX Security 2026
  5. iLand: An Instruction-Level Dynamic Binary Instrumentation Framework for iOSKaitao Xie, Yizhuo Wang, Xiaolong BaiOSDI 2026

它引用的 Paper7

  1. kAFL: Hardware-Assisted Feedback Fuzzing for OS KernelsSergej Schumilo, Cornelius Aschermann, Robert Gawlik, Sebastian Schinzel 等USENIX Security 2017 · 324 次引用
  2. NEZHA: Efficient Domain-Independent Differential TestingTheofilos Petsios, Adrian Tang, Salvatore J. Stolfo, Angelos D. Keromytis 等S&P 2017 · 132 次引用
  3. HVLearn: Automated Black-Box Analysis of Hostname Verification in SSL/TLS ImplementationsSuphannee Sivakorn, George Argyros, Kexin Pei, Angelos D. Keromytis 等S&P 2017 · 88 次引用
  4. UniSan: Proactive Kernel Memory Initialization to Eliminate Data LeakagesKangjie Lu, Chengyu Song, Taesoo Kim, Wenke LeeCCS 2016 · 81 次引用
  5. SFADiff: Automated Evasion Attacks and Fingerprinting Using Black-box Differential Automata LearningGeorge Argyros, Ioannis Stais, Suman Jana, Angelos D. Keromytis 等CCS 2016 · 65 次引用

相关 Paper

  1. Unleashing Use-Before-Initialization Vulnerabilities in the Linux Kernel Using Targeted Stack SprayingKangjie Lu, Marie-Therese Walter, David Pfaff, Stefan Nümberger 等NDSS 2017 · 58 次引用
  2. Digtool: A Virtualization-Based Framework for Detecting Kernel VulnerabilitiesJianfeng Pan, Guanglu Yan, Xiaocao FanUSENIX Security 2017 · 44 次引用
  3. Breaking Kernel Address Space Layout Randomization with Intel TSXYeongjin Jang, Sangho Lee, Taesoo KimCCS 2016 · 174 次引用
  4. UAFSan: an object-identifier-based dynamic approach for detecting use-after-free vulnerabilitiesBinfa Gui, Wei Song, Jeff HuangISSTA 2021 · 9 次引用
  5. Safelnit: Comprehensive and Practical Mitigation of Uninitialized Read VulnerabilitiesAlyssa Milburn, Herbert Bos, Cristiano GiuffridaNDSS 2017 · 42 次引用
黄昏的海面,两侧是细线勾勒的悬崖