🔍 CVE-2024-35804

8.8
CVSS Score
HIGH
2024-05-17
2026-08-04 11:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 KVM에서 x86 에뮬레이션된 원자적 명령(atomic instruction) 처리 시 대상 GFN을 dirty로 표시하지 않는 취약점이 발견되었습니다. 이로 인해 라이브 마이그레이션 과정에서 사용자 공간에 페이지 변경 사실을 알리지 않고 메모리에 쓰기를 수행하여 게스트 메모리가 손상될 수 있습니다.

💡 쉬운 설명

가상 머신을 다른 서버로 옮기는 과정에서 메모리 데이터가 변경되었음을 제대로 알리지 못해 데이터가 깨질 수 있는 문제입니다. 이로 인해 가상 머신 내부의 데이터가 의도치 않게 변질될 위험이 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: KVM: x86: Mark target gfn of emulated atomic instruction as dirty When emulating an atomic access on behalf of the guest, mark the target gfn dirty if the CMPXCHG by KVM is attempted and doesn't fault. This fixes a bug where KVM effectively corrupts guest memory during live migration by writing to guest memory without informing userspace that the page is dirty. Marking the page dirty got unintentionally dropped when KVM's emulated CMPXCHG was converted to do a user access. Before that, KVM explicitly mapped the guest page into kernel memory, and marked the page dirty during the unmap phase. Mark the page dirty even if the CMPXCHG fails, as the old data is written back on failure, i.e. the page is still written. The value written is guaranteed to be the same because the operation is atomic, but KVM's ABI is that all writes are dirty logged regardless of the value written. And more importantly, that's what KVM did before the buggy commit. Huge kudos to the folks on the Cc list (and many others), who did all the actual work of triaging and debugging. base-commit: 6769ea8da8a93ed4630f1ce64df6aafcaabfce64

📍 영향받는 시스템

Linux kernel (KVM x86 emulated atomic instruction 사용 환경)

⚔️ 공격 벡터

라이브 마이그레이션 중 발생하는 메모리 불일치를 이용한 데이터 손상 유도

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.

🔧 검증 코드

출력된 커널 버전을 확인하여 해당 취약점이 해결된 패치 버전 이상인지 확인합니다.

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel