🔍 CVE-2026-98900

0.0
CVSS Score
UNKNOWN
2026-10-23
2026-10-23 12:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 Xen gntalloc 드라이버에서 gntalloc_ioctl_alloc() 함수가 전역 grant 한도를 확인하기 전에 사용자 입력 크기만큼 메모리를 할당하는 문제가 해결되었습니다. 한도를 초과하는 요청을 할당 전에 거부하도록 검증 로직이 추가되었으며, 덧셈 오버플로우 방지와 64비트 연산 보장도 포함됩니다.

💡 쉬운 설명

사용자가 너무 큰 양의 메모리를 요청하면 커널이 이를 미리 걸러내지 못해 문제가 될 수 있었습니다. 이제 허용 한도를 넘는 요청은 메모리를 잡기 전에 바로 거부됩니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: xen/gntalloc: validate grant count before allocation gntalloc_ioctl_alloc() allocates the grant-id array before checking whether the requested count fits within the global grant limit. Counts above that limit cannot succeed, so reject them before the user-controlled allocation reaches kcalloc(). Use a subtraction-based check while holding gref_mutex so adding the requested count cannot wrap. Also cast the count before advancing the per-file index so the page-size multiplication is performed in 64-bit arithmetic.

📍 영향받는 시스템

Xen 하이퍼바이저 게스트에서 사용되는 gntalloc 드라이버를 포함한 수정 이전의 Linux 커널 버전

⚔️ 공격 벡터

권한이 있는 로컬 사용자가 /dev/xen/gntalloc 장치에 과도한 grant 개수를 지정한 ioctl을 호출하여 커널 메모리 할당 및 정수 오버플로우를 유발

🛡️ 대응 방법

배포판 제공 최신 Linux 커널 업데이트를 적용한 뒤 재부팅

🔧 검증 코드

커널 버전이 수정이 포함된 최신 패치 버전 이상인지 확인하고, CONFIG_XEN_GNTDEV_GNTALLOC 관련 항목이 y 또는 m으로 설정되어 있으면 해당 드라이버가 존재하므로 패치 적용 여부를 우선 점검해야 합니다.

Shell / Script
uname -r && grep -i xen /boot/config-$(uname -r) 2>/dev/null | grep -i gntalloc

💻 영향받는 소프트웨어

Linux Kernel