🇰🇷 한글 설명
Linux 커널의 Xen privcmd 드라이버에서 권한이 없는 domU가 임의의 하이퍼콜을 호출할 수 있는 취약점이 발견되었습니다. Secure Boot가 활성화된 환경에서 루트 사용자가 커널 메모리를 수정하여 보안 부팅 기능을 무력화할 수 있는 위험이 있습니다.
💡 쉬운 설명
해커가 보안 기능이 켜진 컴퓨터의 핵심 시스템 영역을 마음대로 수정하여 보안을 뚫을 수 있는 문제입니다. 이를 막기 위해 특정 대상에게만 명령을 내릴 수 있도록 제한하는 보안 패치가 적용되었습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
xen/privcmd: restrict usage in unprivileged domU
The Xen privcmd driver allows to issue arbitrary hypercalls from
user space processes. This is normally no problem, as access is
usually limited to root and the hypervisor will deny any hypercalls
affecting other domains.
In case the guest is booted using secure boot, however, the privcmd
driver would be enabling a root user process to modify e.g. kernel
memory contents, thus breaking the secure boot feature.
The only known case where an unprivileged domU is really needing to
use the privcmd driver is the case when it is acting as the device
model for another guest. In this case all hypercalls issued via the
privcmd driver will target that other guest.
Fortunately the privcmd driver can already be locked down to allow
only hypercalls targeting a specific domain, but this mode can be
activated from user land only today.
The target domain can be obtained from Xenstore, so when not running
in dom0 restrict the privcmd driver to that target domain from the
beginning, resolving the potential problem of breaking secure boot.
This is XSA-482
---
V2:
- defer reading from Xenstore if Xenstore isn't ready yet (Jan Beulich)
- wait in open() if target domain isn't known yet
- issue message in case no target domain found (Jan Beulich)
📍 영향받는 시스템
Xen 하이퍼바이저를 사용하는 Linux 커널 시스템 (Secure Boot 활성화 환경)
⚔️ 공격 벡터
권한이 있는 사용자(root)가 privcmd 드라이버를 통해 하이퍼콜을 호출하여 커널 메모리 조작
🛡️ 대응 방법
Xen privcmd 드라이버가 Xenstore를 통해 타겟 도메인을 확인하고 이를 제한하도록 커널 업데이트 적용
🔧 검증 코드
현재 사용 중인 커널 버전과 Xen 관련 설정이 활성화되어 있는지 확인하여 패치 적용 여부를 검토합니다.
uname -r && grep -i 'xen' /boot/config-$(uname -r) 2>/dev/null