System Call Vulnerabilities in Linux Storage Stack
Nima Mohammadi Sepand Haghighi Fall - 2016
System Call Vulnerabilities in Linux Storage Stack Nima Mohammadi - - PowerPoint PPT Presentation
System Call Vulnerabilities in Linux Storage Stack Nima Mohammadi Sepand Haghighi Fall - 2016 Outline Introduction Static Code Analysis Static Analyzer List Kernels Static Analysis Report Conclusion 2 System
Nima Mohammadi Sepand Haghighi Fall - 2016
2 System Call Vulnerabilities in Linux Storage Stack – Nima Mohammadi , Sepand Haghighi
3 System Call Vulnerabilities in Linux Storage Stack – Nima Mohammadi , Sepand Haghighi
4 System Call Vulnerabilities in Linux Storage Stack – Nima Mohammadi , Sepand Haghighi
5 System Call Vulnerabilities in Linux Storage Stack – Nima Mohammadi , Sepand Haghighi
6 System Call Vulnerabilities in Linux Storage Stack – Nima Mohammadi , Sepand Haghighi
7 System Call Vulnerabilities in Linux Storage Stack – Nima Mohammadi , Sepand Haghighi
8 System Call Vulnerabilities in Linux Storage Stack – Nima Mohammadi , Sepand Haghighi
9 System Call Vulnerabilities in Linux Storage Stack – Nima Mohammadi , Sepand Haghighi
10 System Call Vulnerabilities in Linux Storage Stack – Nima Mohammadi , Sepand Haghighi
bar() { free(g_p); } baz() { free(g_p); } foo() { if (x) bar(); else baz(); }
if (use_malloc) p = malloc(); /* … */ if (use_malloc) free(p);
– Exponential number of paths – Loops – Heap is unbounded
11 System Call Vulnerabilities in Linux Storage Stack – Nima Mohammadi , Sepand Haghighi
12 System Call Vulnerabilities in Linux Storage Stack – Nima Mohammadi , Sepand Haghighi
13 System Call Vulnerabilities in Linux Storage Stack – Nima Mohammadi , Sepand Haghighi
14 System Call Vulnerabilities in Linux Storage Stack – Nima Mohammadi , Sepand Haghighi
flawfinder directory_with_source_code
15 System Call Vulnerabilities in Linux Storage Stack – Nima Mohammadi , Sepand Haghighi
16 System Call Vulnerabilities in Linux Storage Stack – Nima Mohammadi , Sepand Haghighi
– Automatic Variable – Memory Leaks – Resources Leaks – Bounds Checking – Invalid usage of standard library
17 System Call Vulnerabilities in Linux Storage Stack – Nima Mohammadi , Sepand Haghighi
18 System Call Vulnerabilities in Linux Storage Stack – Nima Mohammadi , Sepand Haghighi
19 System Call Vulnerabilities in Linux Storage Stack – Nima Mohammadi , Sepand Haghighi
ext2 Second Extended FileSystem ext4 Fourth Extended Filesystem with extents btfrs B-Tree filesystem hfs Macintosh HFS Filesystem jffs2 The Journalling Flash File System, v2 reiserfs ReiserFS journaled filesystem ubifs UBIFS - UBI File System udf Universal Disk Format Filesystem
20 System Call Vulnerabilities in Linux Storage Stack – Nima Mohammadi , Sepand Haghighi
FS
Line of Code Smatch
CppChek
Sparse FlawFindr Blast Frama-C
ext2 6840 3
32754 30
82450 84
191
4618 22
13771 40
45
21742 40
159
21988 6
8980 26
21 System Call Vulnerabilities in Linux Storage Stack – Nima Mohammadi , Sepand Haghighi
22 System Call Vulnerabilities in Linux Storage Stack – Nima Mohammadi , Sepand Haghighi