SecSIGSecurity Special Interest Group of US MensaCuriosity. Perspective. Security.

Research Library · Idea

Buffer overflow

A buffer overflow occurs when software writes beyond the bounds of a region of memory allocated to hold data. The write can change nearby data and cause incorrect results, a crash, or unauthorized code execution. MITRE’s CWE-787 covers out-of-bounds writes and describes their possible effects. Reports often specify whether the buffer was allocated on the stack or the heap. 12

CISA and the FBI advise software producers to use memory-safe languages where feasible and to plan a phased transition for existing products. Priorities include code with extensive privileges and code that handles input from exposed interfaces. The safety properties of a new component cover that component, while any memory-unsafe libraries it uses still need attention. 1

For existing code, the agencies describe using compiler protections, instrumented tests, static analysis, and fuzzing to discover defects or limit their consequences. Recurring findings can point to shared components or practices that deserve repair across more than one product. 1

Source · Secure by Design Alert: Eliminating Buffer Overflow Vulnerabilities (opens in a new tab) · CISA and FBI

References

  1. Secure by Design Alert: Eliminating Buffer Overflow Vulnerabilities (opens in a new tab) · CISA and FBI · February 11, 2025 ↩ ↩ ↩
  2. CWE-787: Out-of-bounds Write (opens in a new tab) · MITRE ↩

Research articles

In the news

See what connects to it on the map of ideas →

See also