🇰🇷 한글 설명
Xen 환경에서 사용되는 Linux 커널 3.2부터 5.10.16 버전 사이에서 Grant mapping 작업 처리 오류가 발견되었습니다. PV 모드로 실행되는 Linux 백엔드 드라이버가 배치 하이퍼콜(batch hypercall) 처리 중 일부 오류를 무시하거나 후속 작업을 제대로 수행하지 못하는 결함이 있습니다. 이로 인해 오류 복구 과정에서 메모리 언맵(unmap)이 정상적으로 이루어지지 않을 수 있습니다.
💡 쉬운 설명
컴퓨터의 메모리 관리 기능 중 일부가 오류를 제대로 처리하지 못해 발생하는 문제입니다. 특히 특정 모드(PV 모드)로 작동할 때 메모리 정리 작업이 누락될 수 있습니다.
🇺🇸 원문 (English)
An issue was discovered in the Linux kernel 3.2 through 5.10.16, as used by Xen. Grant mapping operations often occur in batch hypercalls, where a number of operations are done in a single hypercall, the success or failure of each one is reported to the backend driver, and the backend driver then loops over the results, performing follow-up actions based on the success or failure of each operation. Unfortunately, when running in PV mode, the Linux backend drivers mishandle this: Some errors are ignored, effectively implying their success from the success of related batch elements. In other cases, errors resulting from one batch element lead to further batch elements not being inspected, and hence successful ones to not be possible to properly unmap upon error recovery. Only systems with Linux backends running in PV mode are vulnerable. Linux backends run in HVM / PVH modes are not vulnerable. This affects arch/*/xen/p2m.c and drivers/xen/gntdev.c.
📍 영향받는 시스템
Linux kernel 3.2 ~ 5.10.16 (Xen PV mode 사용 시)
⚔️ 공격 벡터
PV 모드로 실행 중인 Xen 환경의 Linux 백엔드 드라이버를 대상으로 한 메모리 관리 오류 유도
🛡️ 대응 방법
Linux 커널을 5.10.17 이상의 최신 버전으로 업데이트하거나 Xen HVM/PVH 모드로 전환
🔧 검증 코드
출력된 커널 버전이 3.2 이상 5.10.16 이하인지 확인합니다.
uname -r | awk -F. '{print $1" "$2" "$3" "$4}'