What is a buffer overflow vulnerability?
Keeping this in view, what is a buffer overflow example?
In a buffer-overflow attack, the extra data sometimes holds specific instructions for actions intended by a hacker or malicious user; for example, the data could trigger a response that damages files, changes data or unveils private information.
Then, what type of attack is buffer overflow?
Stack overflow attack - This is the most common type of buffer overflow attack and involves overflowing a buffer on the call stack*. Heap overflow attack - This type of attack targets data in the open memory pool known as the heap*.
Dangers of Buffer overflows. Possible results of a buffer overflow are: core dump, system crash or worst of all a security vulnerability. Security problems can occur when a SUID root program executes code with a buffer overflow and later the program makes a system call such as execl or execv to execute another program.