What it is
The product calls free() on a pointer to memory that was not allocated using associated heap allocation functions such as malloc(), calloc(), or realloc().
Impact on systems
| Scope | Impact |
|---|---|
| Integrity, Confidentiality, Availability | Execute Unauthorized Code or Commands, Modify Memory When free() is called on an invalid pointer, the program's memory management data structures may become corrupted. This corruption can cause the program to crash or, in some circumstances, an attacker may be able to cause free() to operate on controllable memory locations to modify critical program variables or execute code. There is the potential for arbitrary code execution with privileges of the vulnerable program via a write, what where primitive. If pointers to memory that hold user information are freed, a malicious user may be able to write 4 bytes anywhere in memory. |
How to prevent it
Source: MITRE CWE catalog · Official entry on the MITRE website