CISPA
Browse
cispa_all_2587.pdf (372.13 kB)

Precise and Scalable Detection of Double-Fetch Bugs in OS Kernels

Download (372.13 kB)
conference contribution
posted on 2023-11-29, 18:08 authored by Meng Xu, Chenxiong Qian, Kangjie Lu, Michael BackesMichael Backes, Taesoo Kim
During system call execution, it is common for operating system kernels to read userspace memory multiple times (multi-reads). A critical bug may exist if the fetched userspace memory is subject to change across these reads, i.e., a race condition, which is known as a double-fetch bug. Prior works have attempted to detect these bugs both statically and dynamically. However, due to their improper assumptions and imprecise definitions regarding double-fetch bugs, their multiread detection is inherently limited and suffers from significant false positives and false negatives. For example, their approach is unable to support device emulation, inter-procedural analysis, loop handling, etc. More importantly, they completely leave the task of finding real double-fetch bugs from the haystack of multireads to manual verification, which is expensive if possible at all. In this paper, we first present a formal and precise definition of double-fetch bugs and then implement a static analysis system— DEADLINE—to automatically detect double-fetch bugs in OS kernels. DEADLINE uses static program analysis techniques to systematically find multi-reads throughout the kernel and employs specialized symbolic checking to vet each multi-read for double-fetch bugs. We apply DEADLINE to Linux and FreeBSD kernels and find 23 new bugs in Linux and one new bug in FreeBSD. We further propose four generic strategies to patch and prevent double-fetch bugs based on our study and the discussion with kernel maintainers.

History

Preferred Citation

Meng Xu, Chenxiong Qian, Kangjie Lu, Michael Backes and Taesoo Kim. Precise and Scalable Detection of Double-Fetch Bugs in OS Kernels. In: IEEE Symposium on Security and Privacy (S&P). 2018.

Primary Research Area

  • Threat Detection and Defenses

Name of Conference

IEEE Symposium on Security and Privacy (S&P)

Legacy Posted Date

2018-02-28

Open Access Type

  • Unknown

BibTeX

@inproceedings{cispa_all_2587, title = "Precise and Scalable Detection of Double-Fetch Bugs in OS Kernels", author = "Xu, Meng and Qian, Chenxiong and Lu, Kangjie and Backes, Michael and Kim, Taesoo", booktitle="{IEEE Symposium on Security and Privacy (S&P)}", year="2018", }

Usage metrics

    Categories

    No categories selected

    Exports

    RefWorks
    BibTeX
    Ref. manager
    Endnote
    DataCite
    NLM
    DC