CWE-910

Use of Expired File Descriptor
AI Translation Available

The product uses or accesses a file descriptor after it has been closed.

Status
incomplete
Abstraction
base
Likelihood
medium
C C++ Not Language-Specific

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

confidentiality availability
Impacts
read files or directories dos: crash, exit, or restart

Detection Methods

automated static analysis

Potential Mitigations