Use of Expired File Descriptor

Incomplete Base
Structure: Simple
Description

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

Extended Description

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
Scope: Confidentiality

Impact: Read Files or Directories

The program could read data from the wrong file.

Scope: Availability

Impact: DoS: Crash, Exit, or Restart

Accessing a file descriptor that has been closed can cause a crash.

Likelihood of Exploit

Medium

Applicable Platforms
Languages:
C : SometimesC++ : SometimesNot Language-Specific : Undetermined
Modes of Introduction
Implementation
Alternate Terms

Stale file descriptor

Taxonomy Mapping
  • CERT C Secure Coding