CWE-910Use of Expired File Descriptor

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

Metadata

CWE ID:
CWE-910
摘要:
Base
结构:
Simple
状态:
Incomplete
发布日期:
2013-02-21
更新日期:
2025-12-11

名称

Use of Expired File Descriptor

描述

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.

常见后果

范围:
Confidentiality
影响:
Read Files or Directories
注释:
The program could read data from the wrong file.
范围:
Availability
影响:
DoS: Crash, Exit, or Restart
注释:
Accessing a file descriptor that has been closed can cause a crash.

相关 CWE