🇰🇷 한글 설명
Linux 커널의 md/raid5 모듈에서 retry_aligned_read() 함수가 중첩된 스트라이프를 처리할 때 발생하는 소프트 락업(soft lockup) 취약점입니다. 잘못된 스트라이프 해제 방식으로 인해 특정 IO 상황에서 무한 루프가 발생하여 시스템이 응답하지 않게 됩니다.
💡 쉬운 설명
리눅스 시스템에서 RAID5 저장 장치를 사용할 때, 특정 데이터 읽기 오류가 발생하면 컴퓨터가 멈춰버리는 현상이 발생할 수 있습니다. 이는 데이터 처리 순서가 꼬이면서 시스템이 무한 반복 작업에 빠지기 때문입니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
md/raid5: fix soft lockup in retry_aligned_read()
When retry_aligned_read() encounters an overlapped stripe, it releases
the stripe via raid5_release_stripe() which puts it on the lockless
released_stripes llist. In the next raid5d loop iteration,
release_stripe_list() drains the stripe onto handle_list (since
STRIPE_HANDLE is set by the original IO), but retry_aligned_read()
runs before handle_active_stripes() and removes the stripe from
handle_list via find_get_stripe() -> list_del_init(). This prevents
handle_stripe() from ever processing the stripe to resolve the
overlap, causing an infinite loop and soft lockup.
Fix this by using __release_stripe() with temp_inactive_list instead
of raid5_release_stripe() in the failure path, so the stripe does not
go through the released_stripes llist. This allows raid5d to break out
of its loop, and the overlap will be resolved when the stripe is
eventually processed by handle_stripe().
📍 영향받는 시스템
Linux kernel (md/raid5 모듈을 사용하는 시스템)
⚔️ 공격 벡터
특수하게 조작된 I/O 요청을 통해 RAID5 스트라이프 중첩 상황을 유도하여 시스템 가용성을 침해 (DoS)
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인하십시오.