CWE-910β€”Use of Expired File Descriptor

PUBLISHEDweakness recordMedium
released 2013-02-21 Β· last modified 2025-12-11

Metadata

CWE ID:
CWE-910
Abstraction:
Base
Structure:
Simple
Status:
Incomplete
Release Date:
2013-02-21
Latest Modification Date:
2025-12-11

Weakness Name

Use of Expired File Descriptor

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

Scope:
Confidentiality
Impact:
Read Files or Directories
Notes:
The program could read data from the wrong file.
Scope:
Availability
Impact:
DoS: Crash, Exit, or Restart
Notes:
Accessing a file descriptor that has been closed can cause a crash.

Related Weaknesses