🔍 CVE-2026-31590

5.5
CVSS Score
MEDIUM
2026-04-24
2026-06-01 17:16
✅ 완료

🇰🇷 한글 설명

Linux 커널의 KVM SEV 구현에서 KVM_MEMORY_ENCRYPT_REG_REGION 호출 시 페이지 수가 int 범위를 초과할 경우 발생하는 경고(WARN) 취약점입니다. 사용자 공간에서 매우 큰 크기 값을 전달함으로써 의도적으로 경고를 발생시킬 수 있는 문제가 해결되었습니다.

💡 쉬운 설명

사용자가 특수한 값을 입력하여 컴퓨터 시스템에 불필요한 경고 메시지를 강제로 띄울 수 있는 결함입니다. 시스템 전체를 파괴하지는 않지만, 로그를 가득 채우거나 시스템 상태를 혼란스럽게 만들 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: KVM: SEV: Drop WARN on large size for KVM_MEMORY_ENCRYPT_REG_REGION Drop the WARN in sev_pin_memory() on npages overflowing an int, as the WARN is comically trivially to trigger from userspace, e.g. by doing: struct kvm_enc_region range = { .addr = 0, .size = -1ul, }; __vm_ioctl(vm, KVM_MEMORY_ENCRYPT_REG_REGION, &range); Note, the checks in sev_mem_enc_register_region() that presumably exist to verify the incoming address+size are completely worthless, as both "addr" and "size" are u64s and SEV is 64-bit only, i.e. they _can't_ be greater than ULONG_MAX. That wart will be cleaned up in the near future. if (range->addr > ULONG_MAX || range->size > ULONG_MAX) return -EINVAL; Opportunistically add a comment to explain why the code calculates the number of pages the "hard" way, e.g. instead of just shifting @ulen.

📍 영향받는 시스템

KVM 및 SEV 기능을 사용하는 Linux 커널 버전

⚔️ 공격 벡터

사용자 공간(Userspace)에서 KVM_MEMORY_ENCRYPT_REG_REGION ioctl 호출 시 매우 큰 size 값을 전달

🛡️ 대응 방법

해당 취약점이 수정된 최신 버전의 Linux 커널로 업데이트

🔧 검증 코드

출력된 커널 버전이 해당 패치가 적용된 보안 업데이트 버전인지 확인

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel