🇰🇷 한글 설명
리눅스 커널의 NVMe 드라이버에서 keep-alive 프로세스가 적절히 중단되지 않아 발생하는 Use-After-Free 취약점입니다. 컨트롤러 시작 실패 시 keep-alive 작업이 계속 남아있게 되어, 드라이버 언로드 시 커널 패닉을 유발할 수 있습니다.
💡 쉬운 설명
컴퓨터 저장 장치와 통신을 유지하는 기능이 제대로 꺼지지 않아 시스템이 충돌하는 문제입니다. 이로 인해 컴퓨터가 갑자기 멈추거나 재부팅될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
nvme: move stopping keep-alive into nvme_uninit_ctrl()
Commit 4733b65d82bd ("nvme: start keep-alive after admin queue setup")
moves starting keep-alive from nvme_start_ctrl() into
nvme_init_ctrl_finish(), but don't move stopping keep-alive into
nvme_uninit_ctrl(), so keep-alive work can be started and keep pending
after failing to start controller, finally use-after-free is triggered if
nvme host driver is unloaded.
This patch fixes kernel panic when running nvme/004 in case that connection
failure is triggered, by moving stopping keep-alive into nvme_uninit_ctrl().
This way is reasonable because keep-alive is now started in
nvme_init_ctrl_finish().
📍 영향받는 시스템
NVMe 드라이버를 사용하는 리눅스 커널 버전 (커밋 4733b65d82bd 이전 버전)
⚔️ 공격 벡터
로컬 공격자가 NVMe 컨트롤러 연결 실패를 유도하여 드라이버를 언로드할 때 발생
🛡️ 대응 방법
커널 패치(Commit 4733b65d82bd 포함 버전)를 적용하여 최신 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 이후의 버전인지 확인