🔍 CVE-2020-8834

6.5
CVSS Score
MEDIUM
2020-04-09
2026-06-17 03:27
✅ 완료

🇰🇷 한글 설명

Power8 프로세서를 사용하는 Linux 커널의 KVM에서 HSTATE_HOST_R1 사용 충돌로 인해 스택 오염이 발생할 수 있는 취약점입니다. 게스트 VM의 커널 공간에서 코드를 실행할 수 있는 공격자가 호스트 커널을 패닉 상태로 만들어 시스템을 중단시킬 수 있습니다.

💡 쉬운 설명

가상 머신을 사용하는 컴퓨터에서, 가상 머신 내부의 사용자가 특수한 동작을 통해 실제 컴퓨터(호스트)의 시스템을 강제로 멈추게 만들 수 있는 결함입니다.

🇺🇸 원문 (English)

KVM in the Linux kernel on Power8 processors has a conflicting use of HSTATE_HOST_R1 to store r1 state in kvmppc_hv_entry plus in kvmppc_{save,restore}_tm, leading to a stack corruption. Because of this, an attacker with the ability run code in kernel space of a guest VM can cause the host kernel to panic. There were two commits that, according to the reporter, introduced the vulnerability: f024ee098476 ("KVM: PPC: Book3S HV: Pull out TM state save/restore into separate procedures") 87a11bb6a7f7 ("KVM: PPC: Book3S HV: Work around XER[SO] bug in fake suspend mode") The former landed in 4.8, the latter in 4.17. This was fixed without realizing the impact in 4.18 with the following three commits, though it's believed the first is the only strictly necessary commit: 6f597c6b63b6 ("KVM: PPC: Book3S PR: Add guest MSR parameter for kvmppc_save_tm()/kvmppc_restore_tm()") 7b0e827c6970 ("KVM: PPC: Book3S HV: Factor fake-suspend handling out of kvmppc_save/restore_tm") 009c872a8bc4 ("KVM: PPC: Book3S PR: Move kvmppc_save_tm/kvmppc_restore_tm to separate file")

📍 영향받는 시스템

Power8 프로세서를 사용하는 Linux 커널 (4.8 버전부터 4.18 버전 사이의 특정 커밋 포함)

⚔️ 공격 벡터

게스트 VM 내 커널 권한을 획득한 공격자가 조작된 상태 저장/복구 동작을 수행하여 호스트 커널에 스택 오염 유발

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전(6f597c6b63b6 등 포함 버전)으로 업데이트

🔧 검증 코드

출력된 커널 버전이 취약점이 해결된 패치 버전 이후인지 확인

Shell / Script
uname -r

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H

💻 영향받는 소프트웨어

Linux Kernel