🇰🇷 한글 설명
Linux 커널의 arm64 아키텍처에서 huge_ptep_get 함수가 정렬되지 않은 주소를 처리할 때 발생하는 취약점입니다. 주소 정렬 문제로 인해 잘못된 페이지 테이블 정보를 반환할 수 있으며, 이로 인해 커널이 소유하지 않은 물리 메모리에 접근하거나 잘못된 포인터를 참조하여 커널 패닉을 유발할 수 있습니다.
💡 쉬운 설명
컴퓨터의 메모리 주소를 계산할 때 기준점에 딱 맞지 않는 주소가 들어오면 계산 오류가 발생합니다. 이 오류로 인해 시스템이 엉뚱한 메모리 영역을 건드리게 되어 컴퓨터가 갑자기 멈추거나 꺼질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
arm64: make huge_ptep_get handled unaligned addresses
huge_ptep_get() can be handed a virtual address pointing to the middle
of a contpmd/contpte mapped hugetlb folio (examples of callers are
pagemap_hugetlb_range, page_mapped_in_vma).
The arm64 helper rewalks the pgtables in find_num_contig to answer
whether the huge pte we have maps a contpmd or a contpte hugetlb folio,
and returns CONT_PMDS or CONT_PTES, so that it can collect a/d bits over
the contiguous ptes. We can falsely return CONT_PTES instead of
CONT_PMDS if the addr is not aligned. On systems where CONT_PTES !=
CONT_PMDS (meaning page size is 16K), we could collect excess A/D bit
state, meaning extra work for the kernel. Even worse, we may iterate
beyond the PTE table and dereference a garbage ptep pointer to access
physical memory we don't own. Since the ptep pointer is a linear map
address, we may run off the end of the linear map or into a hole,
dereference a VA not mapped into the kernel pgtables and cause kernel
panic.
Fix this by aligning the pmdp pointer down to a contpmd base before
checking equality with the passed huge pte pointer, to correctly answer
whether the huge pte is the base of a contpmd block.
📍 영향받는 시스템
arm64 아키텍처를 사용하는 Linux 커널 시스템
⚔️ 공격 벡터
정렬되지 않은 가상 주소를 전달하여 커널의 메모리 관리 로직을 교란시키는 방식
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 pmdp 포인터 정렬 로직을 적용해야 합니다.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인합니다.
📊 CVSS Vector String
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
💻 영향받는 소프트웨어
NVIDIA vGPU Guest Driver for Linux