CRJul 5, 2020

Static Detection of Uninitialized Stack Variables in Binary Code

arXiv:2007.02314v113 citations
Originality Incremental advance
AI Analysis

This addresses a critical security issue for software developers and users by identifying unpredictable vulnerabilities in binary executables, though it is incremental as it builds on existing source-code techniques.

The paper tackles the problem of detecting uninitialized stack variables in binary code, which are prevalent memory corruption vulnerabilities, and presents a static analysis framework that detected 7 novel bugs in complex binaries like web browsers and OS kernels.

More than two decades after the first stack smashing attacks, memory corruption vulnerabilities utilizing stack anomalies are still prevalent and play an important role in practice. Among such vulnerabilities, uninitialized variables play an exceptional role due to their unpleasant property of unpredictability: as compilers are tailored to operate fast, costly interprocedural analysis procedures are not used in practice to detect such vulnerabilities. As a result, complex relationships that expose uninitialized memory reads remain undiscovered in binary code. Recent vulnerability reports show the versatility on how uninitialized memory reads are utilized in practice, especially for memory disclosure and code execution. Research in recent years proposed detection and prevention techniques tailored to source code. To date, however, there has not been much attention for these types of software bugs within binary executables. In this paper, we present a static analysis framework to find uninitialized variables in binary executables. We developed methods to lift the binaries into a knowledge representation which builds the base for specifically crafted algorithms to detect uninitialized reads. Our prototype implementation is capable of detecting uninitialized memory errors in complex binaries such as web browsers and OS kernels, and we detected 7 novel bugs.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes