로직 · 동시성 · 정보노출Logic, concurrency & exposure

CWE-362 경쟁 상태Race Condition

공유 자원에 대한 동기화가 부족해 실행 순서에 따라 결과가 달라지는 결함(TOCTOU 포함).Insufficient synchronization on a shared resource; outcome depends on timing (incl. TOCTOU).

근본 원인 패턴Root-cause pattern

검사와 사용 사이에 다른 스레드/프로세스가 상태를 바꿀 수 있는 창(window)이 있다.A window exists between check and use where another actor can change state.

전형적인 패치Typical fix

락 범위 확장, 원자적 연산, 검사-사용 결합(openat/O_NOFOLLOW 등).Widen locks, use atomics, make check-and-use atomic.

0 편posts

아직 이 클래스의 글이 없습니다. 아래 패턴 요약으로 먼저 학습하세요.No posts in this class yet. Start with the pattern summary below.

✎ CWE-362 퀴즈 풀기Quiz on CWE-362