🇰🇷 한글 설명
Linux 커널의 af_unix 구성 요소에서 가비지 컬렉션(GC) 프로세스가 실행 중임에도 불구하고 gc_in_progress 플래그가 false로 유지될 수 있는 레이스 컨디션 취약점이 발견되었습니다. 이로 인해 가비지 컬렉션 작업이 중복 스케줄링되거나 데이터 처리에 혼선이 생길 수 있습니다.
💡 쉬운 설명
청소 작업이 이미 진행 중인데도 시스템이 청소 작업이 필요하다고 착각하여 청소 명령을 여러 번 내리는 문제입니다. 이 과정에서 데이터가 꼬이거나 시스템 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
af_unix: Set gc_in_progress to true in unix_gc().
Igor Ushakov reported that unix_gc() could run with gc_in_progress
being false if the work is scheduled while running:
Thread 1 Thread 2 Thread 3
-------- -------- --------
unix_schedule_gc() unix_schedule_gc()
`- if (!gc_in_progress) `- if (!gc_in_progress)
|- gc_in_progress = true |
`- queue_work() |
unix_gc() <----------------/ |
| |- gc_in_progress = true
... `- queue_work()
| |
`- gc_in_progress = false |
|
unix_gc() <---------------------------------------------'
|
... /* gc_in_progress == false */
|
`- gc_in_progress = false
unix_peek_fpl() relies on gc_in_progress not to confuse GC
by MSG_PEEK.
Let's set gc_in_progress to true in unix_gc().
📍 영향받는 시스템
Linux Kernel (af_unix 모듈을 사용하는 모든 시스템)
⚔️ 공격 벡터
로컬 공격자가 특정 타이밍에 가비지 컬렉션을 유도하는 시스템 호출을 반복하여 레이스 컨디션을 유발
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이상인지 확인