CWE-822 - Untrusted Pointer Dereference
- 摘要:Base
- 结构:Simple
- 状态:Incomplete
- 发布日期:2010-09-27
- 更新日期:2025-12-11
名称
Untrusted Pointer Dereference
描述
The product obtains a value from an untrusted source, converts this value to a pointer, and dereferences the resulting pointer.
An attacker can supply a pointer for memory locations that the product is not expecting. If the pointer is dereferenced for a write operation, the attack might allow modification of critical state variables, cause a crash, or execute code. If the dereferencing operation is for a read, then the attack might allow reading of sensitive data, cause a crash, or set a variable to an unexpected value (since the value will be read from an unexpected memory location). There are several variants of this weakness, including but not necessarily limited to:
常见后果
范围:Confidentiality
影响:Read Memory
注释:If the untrusted pointer is used in a read operation, an attacker might be able to read sensitive portions of memory.
范围:Availability
影响:DoS: Crash, Exit, or Restart
注释:If the untrusted pointer references a memory location that is not accessible to the product, or points to a location that is "malformed" or larger than expected by a read or write operation, the application may terminate unexpectedly.
范围:Integrity, Confidentiality, Availability
影响:Execute Unauthorized Code or Commands, Modify Memory
注释:If the untrusted pointer is used in a function call, or points to unexpected data in a write operation, then code execution may be possible.