search menu icon-carat-right cmu-wordmark

Certifying the Absence of Buffer Overflows

Technical Note
In this report, the authors present a technique for certifying the safety of buffer manipulations in C programs.
Publisher

Software Engineering Institute

CMU/SEI Report Number
CMU/SEI-2006-TN-030
DOI (Digital Object Identifier)
10.1184/R1/6572210.v1

Abstract

Despite increased awareness and efforts to reduce buffer overflows, they continue to be the cause of most software vulnerabilities. In large part, these problems are due to the widespread use of unsafe library routines among programmers. For reasons like efficiency, such routines will continue to be used, even during the development of mission-critical and safety-critical software systems. Effective certification techniques are needed to ascertain whether unsafe routines are used in a safe manner. 

This report presents a technique for certifying the safety of buffer manipulations in C programs. The approach is based on two key ideas: (1) using a certifying model checker to automatically verify that a buffer manipulation is safe and (2) validating the resulting invariant and proving it with a decision procedure based on Boolean satisfiability. This report also discusses the advantages and limitations of the approach with respect to today's existing solutions for buffer-overflow detection. Experimental results are presented that position the technique favorably against other static overflow-detection tools and indicate that the procedure can complement and augment these tools from a purely verification perspective.

Cite This Technical Note

Chaki, S., & Hissam, S. (2006, September 1). Certifying the Absence of Buffer Overflows. (Technical Note CMU/SEI-2006-TN-030). Retrieved April 19, 2024, from https://doi.org/10.1184/R1/6572210.v1.

@techreport{chaki_2006,
author={Chaki, Sagar and Hissam, Scott},
title={Certifying the Absence of Buffer Overflows},
month={Sep},
year={2006},
number={CMU/SEI-2006-TN-030},
howpublished={Carnegie Mellon University, Software Engineering Institute's Digital Library},
url={https://doi.org/10.1184/R1/6572210.v1},
note={Accessed: 2024-Apr-19}
}

Chaki, Sagar, and Scott Hissam. "Certifying the Absence of Buffer Overflows." (CMU/SEI-2006-TN-030). Carnegie Mellon University, Software Engineering Institute's Digital Library. Software Engineering Institute, September 1, 2006. https://doi.org/10.1184/R1/6572210.v1.

S. Chaki, and S. Hissam, "Certifying the Absence of Buffer Overflows," Carnegie Mellon University, Software Engineering Institute's Digital Library. Software Engineering Institute, Technical Note CMU/SEI-2006-TN-030, 1-Sep-2006 [Online]. Available: https://doi.org/10.1184/R1/6572210.v1. [Accessed: 19-Apr-2024].

Chaki, Sagar, and Scott Hissam. "Certifying the Absence of Buffer Overflows." (Technical Note CMU/SEI-2006-TN-030). Carnegie Mellon University, Software Engineering Institute's Digital Library, Software Engineering Institute, 1 Sep. 2006. https://doi.org/10.1184/R1/6572210.v1. Accessed 19 Apr. 2024.

Chaki, Sagar; & Hissam, Scott. Certifying the Absence of Buffer Overflows. CMU/SEI-2006-TN-030. Software Engineering Institute. 2006. https://doi.org/10.1184/R1/6572210.v1