CWE-910: Use of Expired File Descriptor

Base Incomplete Simple

CWE版本: 4.18

更新日期: 2025-09-09

弱点描述

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.

引入模式

阶段 说明
Implementation -

适用平台

编程语言
C (Sometimes) C++ (Sometimes) Not Language-Specific (Undetermined)

分类映射

分类名称 条目ID 条目名称 映射适配度
CERT C Secure Coding FIO46-C Do not access a closed file Exact
关键信息

CWE ID: CWE-910

抽象级别: Base

结构: Simple

状态: Incomplete

利用可能性: Medium

相关弱点