What it is
The product attempts to close or release a resource or handle more than once, without any successful open between the close operations.
Note that while the implementation for most (if not all) resource reservation allocations involve a unique identifier/pointer/symbolic reference, then if this identifier is reused, checking the identifier for resource closure may result in a false state of openness and closing of the wrong resource. For this reason, reuse of identifiers is discouraged.
Impact on systems
| Scope | Impact |
|---|---|
| Availability, Integrity | DoS: Crash, Exit, or Restart |
| Integrity | Modify Memory, Modify Application Data Depending on the type of resource and the expected API behavior, this could lead to memory corruption, data corruption, or execution path corruption. |
How to prevent it
Source: MITRE CWE catalog · Official entry on the MITRE website