🇰🇷 한글 설명
Linux 커널의 mshv_map_user_memory 함수 오류 경로에서 Use-After-Free 취약점이 발견되었습니다. 오류 발생 시 MMU 노티파이어가 해제되지 않은 상태로 메모리가 해제되어, 이후 메모리 해제 시도 시 커널 패닉을 유발할 수 있습니다.
💡 쉬운 설명
컴퓨터의 핵심 운영체제인 리눅스에서 메모리를 관리하는 과정 중 실수가 발생하여 시스템이 갑자기 멈출 수 있는 문제입니다. 잘못된 방식으로 메모리를 정리하여 이미 사용이 끝난 영역을 다시 건드리려 할 때 문제가 생깁니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
mshv: Fix use-after-free in mshv_map_user_memory error path
In the error path of mshv_map_user_memory(), calling vfree() directly on
the region leaves the MMU notifier registered. When userspace later unmaps
the memory, the notifier fires and accesses the freed region, causing a
use-after-free and potential kernel panic.
Replace vfree() with mshv_partition_put() to properly unregister
the MMU notifier before freeing the region.
📍 영향받는 시스템
Linux Kernel (mshv 관련 모듈 사용 버전)
⚔️ 공격 벡터
사용자 공간(Userspace)에서 특정 메모리 매핑 오류를 유도하여 커널의 Use-After-Free를 트리거함
🛡️ 대응 방법
vfree() 대신 mshv_partition_put()을 사용하여 MMU 노티파이어를 올바르게 해제하도록 커널 패치 적용
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 최신 패치 버전인지 확인