CWE-825Expired Pointer Dereference

PUBLISHEDweakness record
released 2010-09-27 · last modified 2025-12-11

Metadata

CWE ID:
CWE-825
摘要:
Base
结构:
Simple
状态:
Incomplete
发布日期:
2010-09-27
更新日期:
2025-12-11

名称

Expired Pointer Dereference

描述

The product dereferences a pointer that contains a location for memory that was previously valid, but is no longer valid.

When a product releases memory, but it maintains a pointer to that memory, then the memory might be re-allocated at a later time. If the original pointer is accessed to read or write data, then this could cause the product to read or modify data that is in use by a different function or process. Depending on how the newly-allocated memory is used, this could lead to a denial of service, information exposure, or code execution.

常见后果

范围:
Confidentiality
影响:
Read Memory
注释:
If the expired pointer is used in a read operation, an attacker might be able to control data read in by the application.
范围:
Availability
影响:
DoS: Crash, Exit, or Restart
注释:
If the expired pointer references a memory location that is not accessible to the product, or points to a location that is "malformed" (such as NULL) or larger than expected by a read or write operation, then a crash may occur.
范围:
Integrity, Confidentiality, Availability
影响:
Execute Unauthorized Code or Commands
注释:
If the expired pointer is used in a function call, or points to unexpected data in a write operation, then code execution may be possible.

相关 CWE