🇰🇷 한글 설명
Linux 커널의 zram 구성 요소에서 부분적 discard 요청 시 endio 처리를 누락하여 발생하는 취약점입니다. 이로 인해 blkdiscard 명령을 실행할 경우 시스템이 무한 대기 상태에 빠지는 문제가 발생합니다.
💡 쉬운 설명
컴퓨터의 메모리 압축 기술인 zram을 사용할 때, 특정 명령을 내리면 시스템이 응답하지 않고 멈춰버리는 현상이 발생할 수 있습니다. 이는 작업이 끝났다는 신호를 제대로 보내지 않아 컴퓨터가 계속 기다리기 때문에 발생합니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
zram: do not forget to endio for partial discard requests
As reported by Qu Wenruo and Avinesh Kumar, the following
getconf PAGESIZE
65536
blkdiscard -p 4k /dev/zram0
takes literally forever to complete. zram doesn't support partial
discards and just returns immediately w/o doing any discard work in such
cases. The problem is that we forget to endio on our way out, so
blkdiscard sleeps forever in submit_bio_wait(). Fix this by jumping to
end_bio label, which does bio_endio().
📍 영향받는 시스템
zram 기능을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
로컬 사용자가 특정 크기의 블록 삭제(blkdiscard) 명령을 실행하여 시스템 서비스 거부(DoS) 유발
🛡️ 대응 방법
zram의 endio 처리가 수정된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 보안 업데이트 버전인지 확인