A buffer overflow is one of the most malicious software vulnerability, mainly exists in C programs. This happens when a program attempts to load input data that is larger than its original reserved space or buffer. Thus, it will write data outside the boundary to an adjacent memory location.