CWE-773: Missing Reference to Active File Descriptor or Handle
The product does not properly maintain references to a file descriptor or handle, which prevents that file descriptor/handle from being reclaimed.
Last updated
Overview
CWE-773 (Missing Reference to Active File Descriptor or Handle) is a variant-level software weakness catalogued by MITRE in the Common Weakness Enumeration (CWE). It describes a recurring type of mistake that can lead to exploitable security vulnerabilities.
Common consequences
What can happen when CWE-773 is exploited.
DoS: Crash, Exit, or Restart, DoS: Resource Consumption (Other)
Affects: Availability
This can cause the product to consume all available file descriptors or handles, which can cause the process to crash due to unexpected errors. This could also prevent other processes from performing critical file processing operations.
How it happens
When it is introduced
Typically introduced during these phases of the software lifecycle.
How to prevent it
Practical mitigations for CWE-773, grouped by where in the lifecycle they apply.