CWE-910: Use of Expired File Descriptor
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 | - |
适用平台
编程语言
分类映射
| 分类名称 | 条目ID | 条目名称 | 映射适配度 |
|---|---|---|---|
| CERT C Secure Coding | FIO46-C | Do not access a closed file | Exact |