🇰🇷 한글 설명
Linux kernel KVM x86 모듈에서 게스트 OS로부터 받은 배열 인덱스(min, dest_id)가 Spectre 공격에 취약한 임시 실행(speculative execution)을 허용합니다. array_index_nospec() 함수 적용으로 사이드채널 정보 유출을 완화하는 패치입니다.
💡 쉬운 설명
가상머신 환경에서 악의적인 게스트 OS가 CPU의 임시 실행 특성을 악용하여 호스트 메모리 정보를 유출할 수 있습니다. 패치는 이러한 Spectre 공격을 방지하는 방어 메커니즘을 추가합니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
KVM: x86: use array_index_nospec with indices that come from guest
min and dest_id are guest-controlled indices. Using array_index_nospec()
after the bounds checks clamps these values to mitigate speculative execution
side-channels.
📍 영향받는 시스템
Linux kernel 버전 5.4 이상 (KVM 기능이 활성화된 x86 시스템)
⚔️ 공격 벡터
가상머신 게스트에 접근 가능한 공격자가 speculative execution side-channel을 통해 호스트 메모리 정보 유출
🛡️ 대응 방법
Linux kernel을 최신 패치가 적용된 버전으로 업그레이드 (array_index_nospec 패치 포함)
🔧 검증 코드
array_index_nospec가 포함되어 있으면 패치 적용, 결과가 없으면 취약한 버전입니다.
grep -r 'array_index_nospec' /usr/src/linux*/include/ 2>/dev/null | head -1