🇰🇷 한글 설명
리눅스 커널의 NBD(Network Block Device) 드라이버에서 타임아웃 처리와 정상 완료 처리 간의 경쟁 상태(Race Condition)가 발견되었습니다. 이로 인해 이미 재큐에 삽입된 요청이 다시 완료되면서 Use-After-Free 취약점이 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터가 작업을 처리하는 과정에서 두 가지 명령이 동시에 충돌하여 이미 끝난 작업을 다시 건드리는 오류가 발생할 수 있습니다. 이 오류를 이용하면 시스템의 메모리 관리 체계에 혼란을 주어 보안 문제를 일으킬 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
nbd: fix race between timeout and normal completion
If request timetout is handled by nbd_requeue_cmd(), normal completion
has to be stopped for avoiding to complete this requeued request, other
use-after-free can be triggered.
Fix the race by clearing NBD_CMD_INFLIGHT in nbd_requeue_cmd(), meantime
make sure that cmd->lock is grabbed for clearing the flag and the
requeue.
📍 영향받는 시스템
NBD 드라이버를 사용하는 리눅스 커널 버전
⚔️ 공격 벡터
네트워크 블록 장치(NBD)를 통한 정교하게 설계된 타임아웃 및 요청 완료 시점의 경쟁 상태 유도
🛡️ 대응 방법
NBD 드라이버의 race condition 패치가 적용된 최신 리눅스 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인