Automatically generating malicious disks using symbolic execution

Junfeng Yang, Can Sar, P. Twohey, C. Cadar, D. Engler
2006 2006 IEEE Symposium on Security and Privacy (S&P'06)  
Many current systems allow data produced by potentially malicious sources to be mounted as a file system. File system code must check this data for dangerous values or invariant violations before using it. Because file system code typically runs inside the operating system kernel, even a single unchecked value can crash the machine or lead to an exploit. Unfortunately, validating file system images is complex: they form DAGs with complex dependency relationships across massive amounts of data
more » ... und together with intricate, undocumented assumptions. This paper shows how to automatically find bugs in such code using symbolic execution. Rather than running the code on manually-constructed concrete input, we instead run it on symbolic input that is initially allowed to be "anything." As the code runs, it observes (tests) this input and thus constrains its possible values. We generate test cases by solving these constraints for concrete values. The approach works well in practice: we checked the disk mounting code of three widely-used Linux file systems: ext2, ext3, and JFS and found bugs in all of them where malicious data could either cause a kernel panic or form the basis of a buffer overflow attack.
doi:10.1109/sp.2006.7 dblp:conf/sp/YangSTCE06 fatcat:rxnhqwgbhfacvi2yztgsw2bgha