BaseIncomplete
CWE-910Use of Expired File Descriptor
Category: other
Description
The product uses or accesses a file descriptor after it has been closed.
After a file descriptor for a particular file or device has been released, it can be reused. The code might not write to the original file, since the reused file descriptor might reference a different file or device.
Common consequences· 2
- Confidentiality — Read Files or DirectoriesThe program could read data from the wrong file.
- Availability — DoS: Crash, Exit, or RestartAccessing a file descriptor that has been closed can cause a crash.
References
Related by meaning· 6
Nearest entities by semantic similarity across the cs-graph corpus.