🇰🇷 한글 설명
Linux 커널의 NVMe 드라이버에서 nvme_alloc_ns() 함수 오류 경로 처리 시 SRCU grace period가 누락된 취약점입니다. 이로 인해 네임스페이스 구조체가 해제된 후에도 멀티패스 코드가 해당 메모리에 접근할 수 있어 Use-After-Free 문제가 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터 저장 장치를 관리하는 프로그램이 데이터를 지우는 과정에서, 아직 그 데이터를 읽고 있는 다른 프로그램이 있는지 확인하지 않고 메모리를 비워버리는 문제입니다. 이로 인해 시스템이 갑자기 멈추거나 보안 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
nvme: add missing SRCU grace period in error path
nvme_alloc_ns() error path at out_unlink_ns removes ns from the
namespace head siblings list with list_del_rcu(&ns->siblings) but
does not wait for SRCU readers before freeing the namespace struct.
Multipath code iterates the head->list under srcu_read_lock() in
nvme_find_path() and nvme_mpath_revalidate_paths(), so a concurrent
reader can still hold a reference to ns when kfree(ns) runs.
The normal removal path in nvme_ns_remove() correctly calls
synchronize_srcu(&ns->head->srcu) after list_del_rcu() to wait for
in-progress readers. Add the same grace period in the error path.
📍 영향받는 시스템
Linux kernel (NVMe driver components)
⚔️ 공격 벡터
로컬 공격자가 NVMe 네임스페이스 할당 오류를 유도하여 Use-After-Free를 일으킴
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인