🔍 CVE-2024-0564

5.3
CVSS Score
MEDIUM
2024-01-30
2026-11-06 14:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 메모리 중복 제거 메커니즘인 KSM(Kernel Samepage Merging)의 max page sharing 기능에서 결함이 발견되었습니다. 같은 호스트를 공유하는 공격자가 페이지 unmap 시간을 측정해 피해자의 페이지 내용을 유출할 수 있는 사이드 채널이 생깁니다. 기본 설정(max page sharing=256)에서 이 공격이 가능합니다.

💡 쉬운 설명

같은 서버를 쓰는 다른 사용자가 메모리에 올려둔 데이터의 내용을 몰래 알아낼 수 있는 취약점입니다. 공격자는 메모리 처리 속도의 미세한 차이를 관찰하여 정보를 훔칩니다.

🇺🇸 원문 (English)

A flaw was found in the Linux kernel's memory deduplication mechanism. The max page sharing of Kernel Samepage Merging (KSM), added in Linux kernel version 4.4.0-96.119, can create a side channel. When the attacker and the victim share the same host and the default setting of KSM is "max page sharing=256", it is possible for the attacker to time the unmap to merge with the victim's page. The unmapping time depends on whether it merges with the victim's page and additional physical pages are created beyond the KSM's "max page share". Through these operations, the attacker can leak the victim's page.

📍 영향받는 시스템

KSM의 max page sharing 기능이 포함된 Linux 커널 4.4.0-96.119 이후 버전 (기본 설정 사용 시)

⚔️ 공격 벡터

같은 물리 호스트에서 실행되는 공격자가 KSM 페이지 병합 시 unmap 소요 시간을 측정하여 피해자 메모리 페이지 내용을 추론

🛡️ 대응 방법

Linux 커널을 벤더가 제공하는 최신 보안 업데이트로 갱신하거나, KSM을 사용하지 않는 경우 비활성화(echo 0 > /sys/kernel/mm/ksm/run)

🔧 검증 코드

첫 번째 출력값이 1이면 KSM이 활성화된 상태이고 0이면 비활성화된 상태입니다. 두 번째 출력값은 현재 커널 버전으로, 패치 적용 여부를 벤더 공지와 대조해 확인하세요.

Shell / Script
cat /sys/kernel/mm/ksm/run 2>/dev/null && uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel