BaseIncomplete
CWE-826Premature Release of Resource During Expected Lifetime
Category: logic
Description
The product releases a resource that is still intended to be used by itself or another actor.
Common consequences· 3
- Confidentiality — Read Application Data, Read MemoryIf the released resource is subsequently reused or reallocated, then a read operation on the original resource might access sensitive data that is associated with a different user or entity.
- Availability — DoS: Crash, Exit, or RestartWhen the resource is released, the software might modify some of its structure, or close associated channels (such as a file descriptor). When the software later accesses the resource as if it is valid, the resource might not be in an expected state, leading to resultant errors that may lead to a crash.
- Integrity / Confidentiality / Availability — Execute Unauthorized Code or Commands, Modify Application Data, Modify MemoryWhen the resource is released, the software might modify some of its structure. This might affect logic in the sections of code that still assume the resource is active. If the released resource is related to memory and is used in a function call, or points to unexpected data in a write operation, then code execution may be possible upon subsequent accesses.
References
Related by meaning· 6
Nearest entities by semantic similarity across the cs-graph corpus.