arrow
Return

Automatic Permission Check Analysis for Linux Kernel

delete2022-01-01
delete2
PRE
AI
J
Jinmeng Zhou
T
Tong Zhang
W
Wenbo Shen *
D
Dongyoon Lee
C
Changhee Jung
A
Ahmed Azab
R
Ruowen Wang
P
Peng Ning
K
Kui Ren
DOI:10.1109/TDSC.2022.3165368delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Permission checks play an essential role in operating system security by providing access control to privileged functionalities. However, it is challenging for kernel developers to scalably verify the soundness of existing checks due to the large codebase and complexity of the kernel. In fact, Linux kernel contains millions of lines of code with hundreds of permission checks, and even worse, its complexity is fast-growing. This paper presents PeX, a static Permission check error detector for LinuX, which takes as input a kernel source code and reports any missing, inconsistent, and redundant permission checks. PeX uses KIRIN (Kernel InteRface based Indirect call aNalysis), a novel, precise, and scalable indirect call analysis technique. Over the interprocedural control flow graph built by KIRIN, PeX automatically identifies permission checks and infers the mappings between permission checks and privileged functions. For each privileged function, PeX examines all possible paths to the function to check if necessary permission checks are correctly enforced. We evaluated PeX on the latest stable Linux kernel v4.18.5 for three types of permission checks: Discretionary Access Controls (DAC), Capabilities, and Linux Security Modules (LSM). PeX reported 45 new permission check errors, 17 of which have been confirmed by the kernel developers.
Keywords:
Kernel
Linux
Permission
Codes
Access control
Computer science
Computer bugs
Linux kernel
static analysis
permission check
bug detection

Journal

IEEE Transactions on Dependable and Secure Computing cover
IEEE Transactions on Dependable and Secure Computing
IF:
7.5
Papers:
2.4K
Citations:
9.6K

Organization

S
samsung
Scholars:
8.6K
Papers: 6.4K
Citations: 8
S
stony brook university
Scholars:
1.3W
Papers: 1.0W
Citations: 20
F
facebook inc
Scholars:
588
Papers: 381
Citations: 0
Purdue University System cover
Purdue University System
Scholars:
3.9W
Papers: 3.6W
Citations: 66
P
Purdue University
Scholars:
2.6W
Papers: 2.1W
Citations: 147
Z
zhejiang university
Scholars:
17.4W
Papers: 12.0W
Citations: 152
researcher View more organizations