logo

CWE-910 - Use of Expired File Descriptor

CWE-910 Medium

  • Abstraction:
  • Base
  • Structure:
  • Simple
  • Status:
  • Incomplete
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
  • Release Date:
  • 2013-02-21
  • Latest Modification Date:
  • 2023-06-29

Free security scan for your website