CWE-910 · Słabość
Use of Expired File Descriptor
- Abstrakcja
- Bazowa
- Status
- Niekompletny
- Ryzyko wykorzystania
- średnie
- Dodano
- 21 grudnia 2012
- Ostatnia zmiana
- 11 grudnia 2025
Opis
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.
Inne nazwy
- Stale file descriptor
Skutki
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.
Słabość nadrzędna
Kiedy powstaje
- Implementation
Dotyczy
C, C++, Not Language-Specific
Wpis z katalogu CWE 4.20.