CWE-466 — Return of Pointer Value Outside of Expected Range
CWE-466: Return of Pointer Value Outside of Expected Range
MITRE CWE weakness
| Kind | Weakness |
| Abstraction | Base |
| Status | Draft |
| Likelihood of exploit | — |
Description
A function can return a pointer to memory that is outside of the buffer that the pointer is expected to reference.
Common consequences
- Confidentiality, Integrity: Read Memory, Modify Memory
Mitigations
(none listed)
References
- CWE page: https://cwe.mitre.org/data/definitions/466.html
- CWE list: https://cwe.mitre.org/data/index.html