🔍 CVE-2026-98639

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

🇰🇷 한글 설명

Linux 커널의 KVM RISC-V 구현에서 NACL hfence 엔트리 업데이트 순서가 잘못되어 발생하는 취약점입니다. Config 워드를 먼저 업데이트함으로써 이전 데이터가 남은 상태에서 Pending 비트가 설정되어 잘못된 TLB 플러시 범위가 발생할 수 있습니다.

💡 쉬운 설명

컴퓨터가 메모리 관리 정보를 업데이트할 때 순서가 뒤바뀌어 엉뚱한 영역을 지우거나 잘못된 정보를 읽을 수 있는 문제입니다. 이로 인해 시스템의 보안 경계가 제대로 작동하지 않을 위험이 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: KVM: riscv: Fix NACL hfence entry update order The SBI v3.0 specification (section 15.1.2) requires a nested HFENCE entry to be populated as follows: 1) find an unused entry with Config.Pending == 0 2) update the Page_Number and Page_Count words 3) update the Config word with Config.Pending set __kvm_riscv_nacl_hfence() writes the Config word first, so the SBI implementation (or NACL hardware) can observe a pending entry with pnum/pcount values left over from the previous use of that entry, resulting in incorrect TLB flush ranges. Write pnum and pcount first and the Config word last. Since the consumer is an external agent on coherent shared memory, use WRITE_ONCE() to stop the compiler from reordering the stores and smp_wmb() to make the parameter words globally visible before the Pending bit is set.

📍 영향받는 시스템

RISC-V 아키텍처를 사용하는 Linux 커널 기반 시스템 (KVM 사용 시)

⚔️ 공격 벡터

특정 조건에서 잘못된 TLB 플러시를 유도하여 메모리 격리 우회 시도 가능

🛡️ 대응 방법

최신 보안 패치가 적용된 Linux 커널로 업데이트

🔧 검증 코드

출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인

Shell / Script
uname -r

💻 영향받는 소프트웨어

Linux Kernel