🇰🇷 한글 설명
리눅스 커널의 filelock 구성 요소에서 posix_lock_inode 함수 호출 시 발생할 수 있는 Use-After-Free(UAF) 취약점입니다. 경합 조건(Race Condition)으로 인해 트레이스포인트가 실행되기 전 다른 작업이 잠금 항목을 해제하여 메모리 오류가 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터가 파일에 자물쇠를 채우는 과정에서, 자물쇠를 확인하기도 전에 다른 프로그램이 자물쇠를 치워버려 발생하는 오류입니다. 이로 인해 시스템이 충돌하거나 보안 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
filelock: fix potential use-after-free in posix_lock_inode
Light Hsieh reported a KASAN UAF warning in trace_posix_lock_inode().
The request pointer had been changed earlier to point to a lock entry
that was added to the inode's list. However, before the tracepoint could
fire, another task raced in and freed that lock.
Fix this by moving the tracepoint inside the spinlock, which should
ensure that this doesn't happen.
📍 영향받는 시스템
Linux Kernel (posix_lock_inode 관련 파일 잠금 기능을 사용하는 모든 버전)
⚔️ 공격 벡터
특정 타이밍에 파일 잠금 요청을 반복하여 메모리 경합을 유도하는 로컬 공격
🛡️ 대응 방법
리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인하십시오.